-
Notifications
You must be signed in to change notification settings - Fork 28
/
package.json
50 lines (50 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
{
"scripts": {
"test": "yarn run lint-scss && yarn run lint-python && yarn run test-python && yarn run lint-js",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"lint-scss": "stylelint static/**/*.scss",
"lint-js": "eslint static/js",
"format-js": "prettier -w 'static/js/**/*.{js,jsx,ts,tsx}'",
"test-python": "python3 -m unittest discover tests",
"format-python": "black --line-length 79 webapp tests",
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite static/js/dist static/css/modules static/js/modules",
"watch": "yarn run watch-css && yarn run watch-js",
"watch-js": "watch -p 'static/js/**/*.js' -p 'static/js/third-party/**/*.js' -c 'webpack --env=development'",
"watch-css": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-css'",
"build-css": "sass static/sass/styles.scss static/css/styles.css --load-path=node_modules --style=compressed && postcss --no-map --use autoprefixer --replace 'static/css/**/*.css'",
"build-js": "mkdir -p static/dist && webpack && yarn run build-cookie-policy",
"build-cookie-policy": "cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/dist/",
"build": "yarn run build-js && yarn run build-css",
"serve": "./entrypoint 0.0.0.0:$PORT",
"start": "yarn run build && concurrently --kill-others --raw 'yarn run watch-css' 'yarn run watch-js' 'yarn run serve'",
"test-js": "jest"
},
"devDependencies": {
"@babel/core": "7.20.12",
"@babel/preset-env": "7.20.2",
"autoprefixer": "10.4.13",
"babel-jest": "29.3.1",
"babel-loader": "9.1.2",
"concurrently": "7.6.0",
"eslint": "8.31.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-prettier": "4.2.1",
"jest": "29.3.1",
"postcss": "8.4.21",
"postcss-cli": "10.1.0",
"prettier": "2.8.2",
"sass": "1.57.1",
"stylelint": "14.16.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard-scss": "6.1.0",
"stylelint-order": "6.0.1",
"watch-cli": "0.2.3",
"webpack": "5.76.0",
"webpack-cli": "5.0.1"
},
"dependencies": {
"@canonical/cookie-policy": "^3.6.4",
"@canonical/global-nav": "3.4.0",
"vanilla-framework": "4.14.0"
}
}