From 5481919f5c8668f74332c4fe83fea8628905841c Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sat, 26 Mar 2022 15:47:14 +0100 Subject: [PATCH] add nojekyll + clear tutorial on rebuild --- .nojekyll | 0 repl/package.json | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .nojekyll diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/repl/package.json b/repl/package.json index 5754606e..8ccfce08 100644 --- a/repl/package.json +++ b/repl/package.json @@ -19,11 +19,11 @@ }, "scripts": { "start": "react-scripts start", - "build": "BUILD_PATH='../docs' react-scripts build && npm run build-tutorial", + "build": "BUILD_PATH='../docs' react-scripts build && npm run build-tutorial && cp ../.nojekyll ../docs", "test": "react-scripts test", "eject": "react-scripts eject", "tutorial": "parcel src/tutorial/index.html --no-cache", - "build-tutorial": "parcel build src/tutorial/index.html --dist-dir ../docs/tutorial --public-url /tutorial --no-optimize --no-scope-hoist --no-cache", + "build-tutorial": "rm -rf ../docs/tutorial && parcel build src/tutorial/index.html --dist-dir ../docs/tutorial --public-url /tutorial --no-scope-hoist --no-cache", "predeploy": "npm run build", "deploy": "gh-pages -d ../docs", "static": "npx serve ../docs"