forked from canonical/juju.is
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
37 lines (37 loc) · 1.85 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
{
"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",
"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",
"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/global-nav": "3.6.1",
"autoprefixer": "10.4.16",
"concurrently": "8.2.1",
"postcss": "8.4.31",
"postcss-cli": "10.1.0",
"prettier": "3.0.3",
"sass": "1.69.3",
"stylelint": "15.10.3",
"stylelint-config-prettier": "9.0.5",
"stylelint-config-recommended-scss": "13.0.0",
"stylelint-order": "6.0.3",
"stylelint-prettier": "4.0.2",
"vanilla-framework": "4.4.0",
"watch-cli": "0.2.3"
}
}