Просмотр исходного кода

Add scripts for running linting

Alasdair Smith 8 лет назад
Родитель
Сommit
325f91ed2e
2 измененных файлов с 5 добавлено и 1 удалено
  1. 3 0
      services/web/Makefile
  2. 2 1
      services/web/package.json

+ 3 - 0
services/web/Makefile

@@ -222,6 +222,9 @@ ci:
 	MOCHA_ARGS="--reporter tap" \
 	$(MAKE) test
 
+lint:
+	npm -q run lint
+
 .PHONY:
 	all add install update test test_unit test_frontend test_acceptance \
 	test_acceptance_start_service test_acceptance_stop_service \

+ 2 - 1
services/web/package.json

@@ -20,7 +20,8 @@
     "start": "npm -q run compile && node app.js",
     "nodemon": "nodemon --config nodemon.json",
     "nodemon:frontend": "nodemon --config nodemon.frontend.json",
-    "webpack": "webpack-dev-server --config webpack.config.dev.js"
+    "webpack": "webpack-dev-server --config webpack.config.dev.js",
+    "lint": "eslint -f unix ."
   },
   "dependencies": {
     "archiver": "0.9.0",