From a739950a3d8f606207a5ccc0ccdefbc09279b261 Mon Sep 17 00:00:00 2001 From: Matthew Ma Date: Thu, 7 Dec 2017 11:36:34 -0500 Subject: [PATCH] Add setup instruction to the webiste README.md file --- package.json | 2 +- website/README.md | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e61df800e..e5e19543d7 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "stop-test": "forever stop ./testing/test-runners/server.js", "docs": "jsdoc --pedantic -d dist/apidocs -r src -c jsdoc.conf.json", "website": "cd website && npx hexo server", - "install-website": "cd website && npm install", + "setup-website": "cd website && npm install", "build-website": "npm run build && cp -a dist/built/. website/source/built && npm run build-website-examples && npm run build-website-tutorials && npm run docs && cp -ar dist/data/. website/source/data && cp -ar dist/apidocs/. website/source/apidocs && cd website && npm install && rm -f db.json && npx hexo generate" }, "keywords": [ diff --git a/website/README.md b/website/README.md index ec34354005..91c7f875ee 100644 --- a/website/README.md +++ b/website/README.md @@ -1,3 +1,7 @@ +Setup environment +================= +- Run ```npm run setup-website``` + Update website ============== - Run ```npm run build-website``` to build the website, the output will be available under ```website\public``` @@ -6,4 +10,4 @@ Update website Develop website =============== - Run ```npm run build-website``` -- Run ```npm run website``` and navigate to ```localhost:4000```. The website will update when there is a file change. \ No newline at end of file +- Run ```npm run website``` and navigate to ```localhost:4000```. The website will update when there is a file change.