forked from TEAMMATES/teammates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
32 lines (32 loc) · 1.47 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"devDependencies": {
"babel-cli": "6.23.0",
"babel-preset-env": "1.2.1",
"eslint": "3.17.1",
"eslint-config-airbnb-base": "11.1.1",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-json": "1.2.0",
"lintspaces-cli": "0.6.0",
"stylelint": "7.9.0"
},
"babel": {
"presets": [
["env", {
"targets": {
"browsers": ["ie >= 9"]
}
}]
]
},
"scripts": {
"build:test": "babel src/main/webapp/dev/ -x \".es6\" -d src/main/webapp/dev/",
"build:src": "babel src/main/webapp/js/ -x \".es6\" -d src/main/webapp/js/",
"build": "npm run build:src && npm run build:test",
"lint:src": "eslint src/main/webapp/js -c static-analysis/teammates-eslint.yml --ext .es6",
"lint:test": "eslint src/main/webapp/dev -c static-analysis/teammates-eslint.yml --ext .es6",
"lint:json": "eslint src/main/webapp/js/*.json src/main/resources/*.json src/test/resources/data/*.json -c static-analysis/teammates-eslint-json.yml",
"lint:css": "stylelint src/main/webapp/stylesheets/*.css --config static-analysis/teammates-stylelint.yml",
"lint:spaces": "lintspaces -n -t -d spaces -l 1 -. \"src/**/*.jsp\" \"src/**/*.tag\" \"src/main/**/*.html\" \"src/**/*.xml\" \"src/**/*.json\" \"src/**/*.css\" \"src/**/*.java\" \"src/**/*.es6\" \"src/**/*.properties\" \"*.yml\" \"*.gradle\" \"static-analysis/*.*ml\"",
"lint": "npm run lint:src && npm run lint:test && npm run lint:json && npm run lint:css && npm run lint:spaces"
}
}