-
Notifications
You must be signed in to change notification settings - Fork 26
/
package.json
42 lines (42 loc) · 2.21 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
{
"author": "Canonical webteam",
"license": "LGPL v3",
"scripts": {
"clean": "rm -rf node_modules yarn-error.log css static/css static/js/build *.log *.sqlite _site/ build/ .jekyll-metadata .bundle",
"watch": "watch -p 'static/sass/**/*.scss' -c 'yarn run build'",
"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 --use autoprefixer --no-map --replace 'static/css/**/*.css'",
"build-js": "yarn run build-global-nav && yarn run build-cookie-policy && yarn run copy-discourse-rad-parser",
"build-global-nav": "mkdir -p static/js/build/global-nav && cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/build/global-nav",
"build-cookie-policy": "mkdir -p static/js/build/cookie-policy && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/build/cookie-policy",
"copy-discourse-rad-parser": "mkdir -p static/js/build/discourse-rad-parser && cp -a node_modules/@canonical/discourse-rad-parser/build/js/. static/js/build/discourse-rad-parser",
"format-python": "black --line-length 79 webapp",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"lint-scss": "stylelint static/**/*.scss",
"test-python": "python3 -m unittest discover tests",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"start": "yarn run build && concurrently --raw 'yarn run watch' 'yarn run serve'",
"test": "yarn run lint-scss && yarn run lint-python && yarn run test-python"
},
"dependencies": {
"@canonical/cookie-policy": "3.5.0",
"@canonical/discourse-rad-parser": "1.0.2",
"@canonical/global-nav": "3.6.4",
"autoprefixer": "10.4.19",
"concurrently": "8.2.2",
"postcss": "8.4.38",
"postcss-cli": "11.0.0",
"prettier": "3.2.5",
"sass": "1.75.0",
"stylelint": "16.3.1",
"stylelint-config-prettier": "9.0.5",
"stylelint-config-recommended-scss": "14.0.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.0",
"vanilla-framework": "4.14.0",
"watch-cli": "0.2.3"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
}
}