Skip to content

Commit

Permalink
run build in prestart (not start)
Browse files Browse the repository at this point in the history
also rename install-web.js to install-examples.js
  • Loading branch information
nicolodavis committed May 2, 2020
1 parent 555c1bd commit 0cc348a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -4,9 +4,9 @@
"description": "library for turn-based games",
"repository": "https://github.com/nicolodavis/boardgame.io",
"scripts": {
"prestart": "node scripts/install-web.js",
"start": "run-p build dev:server dev:client",
"predev": "node scripts/install-web.js",
"prestart": "run-p examples:install build",
"start": "run-p dev:server dev:client",
"predev": "npm run examples:install",
"dev": "run-p build:watch dev:server dev:client",
"dev:client": "node scripts/dev-client.js",
"dev:server": "cross-env NODE_ENV=development nodemon -w src -w examples -e js,ts --exec babel-node --extensions \".ts,.js\" --ignore \"src/**/*.test.ts\" --presets @babel/preset-env examples/react-web/server.js",
Expand All @@ -15,6 +15,7 @@
"benchmark": "babel-node --extensions .ts,.js --presets @babel/preset-env,@babel/preset-typescript benchmark/index.js",
"docs": "docsify serve docs",
"examples": "npm run start",
"examples:install": "node scripts/install-examples.js",
"pretest": "npm run lint",
"test": "cross-env NODE_ENV=test jest --no-cache",
"test:watch": "cross-env NODE_ENV=test jest --watch",
Expand Down
File renamed without changes.

0 comments on commit 0cc348a

Please sign in to comment.