-
Notifications
You must be signed in to change notification settings - Fork 29
/
package.json
57 lines (57 loc) · 2.23 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"scripts": {
"start": "yarn run build && yarn run serve",
"build": "yarn run build-css && yarn run build-js",
"build-css": "sass static/sass/styles.scss static/css/styles.css --load-path=node_modules --style=compressed && postcss --map false --use autoprefixer --replace 'static/css/**/*.css'",
"build-js": "webpack",
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle",
"format-python": "black --line-length 79 tests webapp",
"check-prettier": "prettier --check ./static/**.*",
"lint-js": "eslint static/js/src/**/*.js",
"lint-scss": "stylelint static/**/*.scss",
"lint-python": "flake8 webapp tests && black --check --line-length 79 tests webapp",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"test": "yarn run lint-scss && yarn run lint-js && yarn run lint-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests",
"test-js": "jest --passWithNoTests",
"update-test-json": "python3 scripts/update_test_json.py",
"watch": "concurrently \"yarn run watch-scss\" \"yarn run watch-js\"",
"watch-scss": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-css'",
"watch-js": "watch -p 'static/js/src/**/*.js' -c 'yarn run build-js'"
},
"dependencies": {
"@babel/core": "7.20.12",
"@babel/preset-env": "7.20.2",
"@canonical/cookie-policy": "^3.6.4",
"@canonical/global-nav": "3.6.4",
"@sentry/browser": "5.30.0",
"autoprefixer": "10.4.13",
"babel-loader": "8.3.0",
"braces": "3.0.2",
"concurrently": "5.3.0",
"postcss": "8.4.32",
"postcss-cli": "8.3.1",
"sass": "1.79.0",
"terser-webpack-plugin": "5.3.6",
"vanilla-framework": "4.17.1",
"watch-cli": "0.2.3",
"webpack": "5.76.0",
"webpack-cli": "4.10.0"
},
"devDependencies": {
"eslint": "7.32.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-import": "2.27.5",
"jest": "26.6.3",
"prettier": "2.8.3",
"stylelint": "13.13.1",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-standard": "20.0.0",
"stylelint-order": "4.1.0"
},
"resolutions": {
"lodash": "^4.17.15",
"minimatch": "^3.0.2"
}
}