npm run production
- Build task that generates minified scripts for productionnpm run precommit
- Run the unit tests,, and generate a minified scriptnpm run clean
- Remove thedist
foldernpm run eslint:source
- Lint the sourcenpm run eslint:common
- Lint the unit tests shared by Karma and Mochanpm run eslint:server
- Lint the unit tests for servernpm run eslint:browser
- Lint the unit tests for browsernpm run clean
- Remove the coverage report and the dist foldernpm run test
- Runs unit tests for both server and the browsernpm run test:browser
- Runs the unit tests for browser / clientnpm run test:server
- Runs the unit tests on the servernpm run watch:server
- Run all unit tests for server & watch files for changesnpm run watch:browser
- Run all unit tests for browser & watch files for changesnpm run karma:firefox
- Run all unit tests with Karma & Firefoxnpm run karma:chrome
- Run all unit tests with Karma & Chromenpm run karma:ie
- Run all unit tests with Karma & Internet Explorernpm run packages
- List installed packagesnpm run package:purge
- Remove all dependenciesnpm run package:reinstall
- Reinstall all dependenciesnpm run package:updates
- shows a list over dependencies with a higher version number then the current one - if anynpm run package:upgrade
- Automaticly upgrade all dependencies and update package.jsonnpm run asset-server
- starts a asset server with hot module replacement (WDS) on port 8080
Last active
November 16, 2015 11:41
-
-
Save kulakowka/8394d853fc96218c1667 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"precommit": "npm test && npm run build", | |
"clean": "rimraf dist", | |
"production": "npm run clean && set NODE_ENV=production && webpack --config ./config/webpack/webpack.production.config.js --progress --profile --colors", | |
"test": "npm run test:server && npm run test:browser", | |
"test:server": "mocha --opts config/mocha.opts", | |
"test:browser": "./node_modules/.bin/karma start --single-run", | |
"watch:server": "npm run test:server -- --watch", | |
"watch:browser": "./node_modules/.bin/karma start --auto-watch --no-single-run", | |
"eslint:source": "eslint ./src/**/*.js", | |
"eslint:common": "eslint ./test/**/*.common.js", | |
"eslint:server": "eslint ./test/**/*.server.js", | |
"eslint:browser": "eslint ./test/**/*.browser.js", | |
"karma:firefox": "./node_modules/.bin/karma start --browsers=Firefox", | |
"karma:chrome": "./node_modules/.bin/karma start --browsers=Chrome", | |
"karma:ie": "./node_modules/.bin/karma start --browsers=IE", | |
"karma:all": "./node_modules/.bin/karma start --browsers=PhantomJS,Chrome,Firefox", | |
"packages": "npm list --depth=0", | |
"package:purge": "rm -rf node_modules", | |
"package:reinstall": "npm run package:purge && npm install", | |
"package:updates": "./node_modules/.bin/ncu", | |
"package:upgrade": "npm run package:updates -u", | |
"asset-server": "node config/webpack/webpack.hot.assets.config" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment