diff --git a/package.json b/package.json index 3eba461..a5a40ce 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,9 @@ "node-sass": "^4.5.3", "npm-run-all": "^4.0.2", "postcss-loader": "^2.0.5", + "pre-commit": "^1.2.2", "rimraf": "^2.6.1", + "sass-lint": "^1.10.2", "sass-loader": "^6.0.5", "simulant": "^0.2.2", "smart-banner-webpack-plugin": "^3.0.1", @@ -55,9 +57,13 @@ }, "scripts": { "prebuild": "rimraf static/js/webslide*", - "build": "npm run build:min && npm run build:normal", - "build:normal": "webpack", + "build": "npm-run-all -s build:*", "build:min": "webpack --output-filename [name].min.js -p", + "build:normal": "webpack", + "lint": "npm-run-all -p lint:*", + "lint:js": "eslint ./src/js --cache --ignore-pattern .gitignore", + "lint:tests": "eslint ./test --cache --ignore-pattern .gitignore", + "lint:css": "sass-lint -v -f stylish", "dev": "webpack-dev-server", "test": "jest && codecov" },