Merge pull request #375 from williamboman/chore/npm-scripts
package.json: use `npm-run-all` in scripts
This commit is contained in:
commit
8f9da57d65
@ -18,9 +18,3 @@ deploy:
|
|||||||
node: '4'
|
node: '4'
|
||||||
tags: true
|
tags: true
|
||||||
repo: thelounge/lounge
|
repo: thelounge/lounge
|
||||||
|
|
||||||
script:
|
|
||||||
- npm run test:mocha
|
|
||||||
- npm run lint:js
|
|
||||||
- npm run lint:css
|
|
||||||
|
|
||||||
|
@ -18,9 +18,6 @@ test_script:
|
|||||||
- node --version
|
- node --version
|
||||||
- npm --version
|
- npm --version
|
||||||
- npm test
|
- npm test
|
||||||
- npm run test:mocha
|
|
||||||
- npm run lint:js
|
|
||||||
- npm run lint:css
|
|
||||||
|
|
||||||
# cache npm modules
|
# cache npm modules
|
||||||
cache:
|
cache:
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
"build:font-awesome": "node scripts/build-fontawesome.js",
|
"build:font-awesome": "node scripts/build-fontawesome.js",
|
||||||
"build:grunt": "grunt",
|
"build:grunt": "grunt",
|
||||||
"build:handlebars": "handlebars client/views/ -e tpl -f client/js/lounge.templates.js",
|
"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",
|
"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:js": "eslint .",
|
||||||
"lint:css": "stylelint \"**/*.css\"",
|
"lint:css": "stylelint \"**/*.css\"",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
@ -63,6 +63,7 @@
|
|||||||
"grunt-contrib-watch": "1.0.0",
|
"grunt-contrib-watch": "1.0.0",
|
||||||
"handlebars": "4.0.5",
|
"handlebars": "4.0.5",
|
||||||
"mocha": "2.4.5",
|
"mocha": "2.4.5",
|
||||||
|
"npm-run-all": "2.1.1",
|
||||||
"stylelint": "6.2.2"
|
"stylelint": "6.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user