This repository has been archived by the owner on Apr 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
39 lines (39 loc) · 1.55 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
{
"scripts": {
"build": "mkdir -p static/js && yarn run build-js && yarn run build-css",
"build-js": "./scripts/build-js",
"build-css": "node-sass --include-path node_modules static/sass --output static/css && postcss --use autoprefixer --replace 'static/css/**/*.css' && postcss --use cssnano --dir static/minified 'static/css/**/*.css' && cp node_modules/@canonical/cookie-policy/build/css/cookie-policy.css static/css/cookie-policy.css",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"watch": "watch -p 'static/sass/**/*.scss' -p 'static/js/**/*.js' -c 'yarn run build'",
"watch-scss": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-css'",
"clean": "rm -rf node_modules yarn-error.log css static/css *.log",
"test": "yarn run lint-scss && yarn run lint-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"lint-scss": "sass-lint static/**/*.scss --verbose --no-exit"
},
"lint-staged": {
"**/*.py": [
"./run exec black --line-length 79",
"git add"
],
"**/*.js": [
"prettier --write",
"git add"
]
},
"dependencies": {
"@canonical/cookie-policy": "3.0.4",
"@canonical/global-nav": "2.4.1",
"autoprefixer": "9.7.6",
"cssnano": "4.1.10",
"husky": "4.2.5",
"lint-staged": "10.2.2",
"node-sass": "4.14.0",
"postcss-cli": "7.1.1",
"prettier": "2.0.5",
"sass-lint": "1.13.1",
"vanilla-framework": "2.10.1",
"watch-cli": "0.2.3"
}
}