This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
34 lines (34 loc) · 1.71 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
{
"scripts": {
"start": "yarn run build && concurrently --raw 'yarn run watch' 'yarn run serve'",
"clean": "rm -rf node_modules yarn-error.log *.log *.sqlite",
"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 --map false --use autoprefixer --replace 'static/css/**/*.css'",
"build-js": "yarn run build-global-nav && yarn run build-cookie-policy",
"build-global-nav": "mkdir -p static/js/modules && cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/modules/global-nav.js",
"build-cookie-policy": "mkdir -p static/js/modules && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/modules/cookie-policy.js",
"watch-css": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-css'",
"watch-js": "watch -p 'node_modules/global-nav/dist/index.js' -c 'yarn run build-js'",
"format-python": "black --line-length 79 webapp",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"test": "yarn run lint-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests"
},
"dependencies": {
"@canonical/global-nav": "2.4.5",
"@canonical/cookie-policy": "3.2.0",
"vanilla-framework": "2.29.0"
},
"devDependencies": {
"autoprefixer": "9.8.6",
"concurrently": "5.3.0",
"sass": "1.27.0",
"postcss-cli": "7.1.2",
"stylelint": "13.8.0",
"stylelint-config-standard": "20.0.0",
"stylelint-order": "4.1.0",
"watch-cli": "0.2.3"
}
}