-
Notifications
You must be signed in to change notification settings - Fork 29
/
package.json
41 lines (41 loc) · 2.1 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
{
"author": "Canonical webteam",
"license": "LGPL v3",
"scripts": {
"start": "yarn run build & yarn run serve",
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle",
"watch": "yarn run watch-css & yarn run watch-js",
"watch-css": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-css'",
"watch-js": "watch -p 'static/js/**/*.js' -c 'yarn run build-js'",
"build": "yarn run build-css && yarn run build-js",
"build-css": "sass static/sass/main.scss static/css/main.css --load-path=node_modules --style=compressed && postcss --no-map --use autoprefixer --replace 'static/css/**/*.css'",
"build-js": "yarn run copy-cookie-policy && yarn run copy-global-nav && yarn run copy-discourse-rad-parser",
"copy-cookie-policy": "mkdir -p static/js/modules && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/modules",
"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",
"copy-global-nav": "mkdir -p static/js/modules && cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/modules",
"format-python": "black --line-length 79 webapp",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"lint-scss": "stylelint static/**/*.scss",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"test": "yarn run lint-scss && yarn run lint-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests"
},
"dependencies": {
"@canonical/cookie-policy": "3.6.4",
"@canonical/global-nav": "3.6.4",
"@canonical/discourse-rad-parser": "1.0.1",
"autoprefixer": "10.4.13",
"sass": "1.57.1",
"postcss": "8.4.31",
"postcss-cli": "10.1.0",
"vanilla-framework": "4.16.0"
},
"devDependencies": {
"prettier": "2.8.8",
"stylelint": "14.16.1",
"stylelint-config-prettier": "9.0.5",
"stylelint-config-standard-scss": "6.1.0",
"stylelint-order": "6.0.4",
"watch-cli": "0.2.3"
}
}