Merge pull request #375 from williamboman/chore/npm-scripts

package.json: use `npm-run-all` in scripts
This commit is contained in:
Jérémie Astori 2016-06-06 22:57:27 -04:00
commit 8f9da57d65
3 changed files with 3 additions and 11 deletions

View File

@ -18,9 +18,3 @@ deploy:
node: '4'
tags: true
repo: thelounge/lounge
script:
- npm run test:mocha
- npm run lint:js
- npm run lint:css

View File

@ -18,9 +18,6 @@ test_script:
- node --version
- npm --version
- npm test
- npm run test:mocha
- npm run lint:js
- npm run lint:css
# cache npm modules
cache:

View File

@ -17,9 +17,9 @@
"build:font-awesome": "node scripts/build-fontawesome.js",
"build:grunt": "grunt",
"build:handlebars": "handlebars client/views/ -e tpl -f client/js/lounge.templates.js",
"test": "(npm run test:mocha || true) && npm run lint",
"test": "npm-run-all -c test:mocha lint",
"test:mocha": "mocha -r test/fixtures/env.js test/**/*.js",
"lint": "(npm run lint:js || true) && (npm run lint:css || true)",
"lint": "npm-run-all -c lint:js lint:css",
"lint:js": "eslint .",
"lint:css": "stylelint \"**/*.css\"",
"prepublish": "npm run build"
@ -63,6 +63,7 @@
"grunt-contrib-watch": "1.0.0",
"handlebars": "4.0.5",
"mocha": "2.4.5",
"npm-run-all": "2.1.1",
"stylelint": "6.2.2"
}
}