diff --git a/.travis.yml b/.travis.yml index 68d22c7ae..7852a0c81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,7 @@ language: node_js node_js: - "node" script: -- npm i -- npm start setup +- npm run setup - npm start packages.core.test - npm start packages.core.build diff --git a/README.md b/README.md index a0b4d1726..7f2bb8a14 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,8 @@ TypeScript driven development for native platform api's. # Develop ``` -// install workspace dependencies -npm i // setup workspace for development -npm start setup +npm run setup ``` Need help? diff --git a/package.json b/package.json index 2861880dd..426ace419 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "7.0.0-rc.29", "license": "MIT", "scripts": { + "setup": "npx rimraf -- hooks node_modules package-lock.json && npm i && ts-patch install && nx run core:setup", "start": "nps", "help": "nps-i" }, diff --git a/tools/workspace-scripts.js b/tools/workspace-scripts.js index d97078d65..1adaf0533 100644 --- a/tools/workspace-scripts.js +++ b/tools/workspace-scripts.js @@ -10,10 +10,6 @@ module.exports = { format: { script: 'nx format:write', description: 'Format the source code of the entire workspace (auto-run on precommit hook)' - }, - setup: { - script: 'npx rimraf -- hooks node_modules package-lock.json && npm i && ts-patch install && nx run core:setup', - description: 'Setup the workspace for development' }, // app testing targets apps: {