set up node lint run script

pull/32/head
HardiReady 2018-03-12 10:44:42 +01:00
parent 140ba2f254
commit 73fa23567c
3 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,8 @@
"scripts": {
"start": "DEBUG='cc:*' NODE_ENV=production node server.js",
"dev": "DEBUG='cc:*' NODE_ENV=dev nodemon server.js",
"eslint" : "$(npm bin)/eslint",
"lint": "eslint '**/*.js'",
"test": "mocha --require ./test/config/spec_helper.js",
"e2e": "NODE_ENV=test node server.js"
},

View File

@ -9,7 +9,7 @@
"deploy-static": "cd ./static && $(npm bin)/ng build && ln -s ../api/resource/ ../public/resource",
"deploy-static:prod": "cd ./static && $(npm bin)/ng build --prod --aot && ln -s ../api/resource/ ../public/resource",
"postinstall": "npm install --prefix ./static && npm install --prefix ./api",
"mongodb": "mkdir -p mongodb-data && mongod --dbpath ./mongodb-data",
"lint": "npm run lint --prefix=api && npm run lint --prefix=static",
"test": "npm test --prefix ./api",
"e2e": "npm run deploy-static && concurrently \"npm run e2e --prefix ./api\" \"wait-on -t 60000 http://localhost:3001/ && npm run e2e --prefix ./static\" --success first --kill-others",
"start-e2e": "npm run deploy-static && npm run e2e --prefix ./api",

View File

@ -5,8 +5,9 @@
"private": true,
"angular-cli": {},
"scripts": {
"ng": "ng",
"ng": "$(npm bin)/ng",
"start": "ng serve",
"lint": "ng lint",
"test": "ng test",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "ng e2e --serve=false"