aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-css-plugin/css-bundle/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-css-plugin/css-bundle/package.json')
-rw-r--r--sonar-css-plugin/css-bundle/package.json22
1 files changed, 20 insertions, 2 deletions
diff --git a/sonar-css-plugin/css-bundle/package.json b/sonar-css-plugin/css-bundle/package.json
index 18f1343..d47397f 100644
--- a/sonar-css-plugin/css-bundle/package.json
+++ b/sonar-css-plugin/css-bundle/package.json
@@ -4,11 +4,29 @@
"description": "Simple node project to run stylelint from SonarCSS",
"main": "index.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "build": "yarn install && yarn check-format && yarn clear && yarn compile",
+ "prepare-package": "rm -rf node_modules && yarn install --prod",
+ "clear": "tsc -b . --clean",
+ "compile": "tsc -b .",
+ "check-format": "prettier --list-different \"{src,tests}/**/*.ts\"",
+ "format": "prettier --write \"{src,tests}/**/*.ts\"",
+ "test": "jest"
},
"author": "",
"license": "LGPL-3.0",
"dependencies": {
- "stylelint": "10.1.0"
+ "express": "4.17.1",
+ "stylelint": "10.1.0",
+ "body-parser": "1.18.3"
+ },
+ "devDependencies": {
+ "@types/express": "4.17.2",
+ "@types/jest": "23.3.2",
+ "@types/stylelint": "9.10.1",
+ "jest": "24.9.0",
+ "jest-sonar-reporter": "1.3.0",
+ "prettier": "1.19.1",
+ "ts-jest": "24.1.0",
+ "typescript": "3.7.3"
}
}