/
package.json
55 lines (55 loc) · 1.97 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
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"scripts": {
"test": "yarn run lint-scss && yarn run lint-python && yarn run test-python",
"lint-python": "flake8 webapp/ && black --check --line-length 79 webapp/",
"lint-scss": "sass-lint 'static/sass/**/*.scss' --verbose --no-exit -i static/sass/prism.scss",
"test-python": "python3 manage.py test",
"test-links": "python3 manage.py runserver && sleep 2 && linkchecker --threads 2 --ignore-url /usn --ignore-url /resources --ignore-url /search --no-warnings http://127.0.0.1:8000",
"build-css": "node-sass --include-path node_modules static/sass --source-map true --output-style compressed --output static/css && postcss --use autoprefixer --replace 'static/css/**/*.css' --no-map",
"build-js-bundle": "webpack",
"build": "yarn run build-css && yarn run build-js-bundle",
"watch": "watch -p 'static/sass/**/*.scss' -p 'node_modules/vanilla-framework/scss/*.scss' -c 'yarn run build'",
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle static/js/build",
"serve": "./entrypoint 0.0.0.0:${PORT}"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.scss": "./run exec yarn run lint-scss",
"*.py": "./run exec yarn run lint-python"
},
"keywords": [
"website",
"ubuntu"
],
"author": "Canonical webteam",
"license": "LGPL v3",
"devDependencies": {
"@babel/core": "7.4.0",
"@babel/preset-env": "7.4.2",
"autoprefixer": "9.5.0",
"babel-loader": "8.0.5",
"exports-loader": "0.7.0",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"node-sass": "4.11.0",
"postcss-cli": "6.1.2",
"sass-lint": "1.12.1",
"watch-cli": "0.2.3",
"webpack": "4.29.6",
"webpack-cli": "3.3.0"
},
"dependencies": {
"@canonical/global-nav": "2.0.5",
"cookie-policy": "1.1.0",
"vanilla-framework": "1.8.1"
},
"resolutions": {
"lodash": "4.17.11",
"minimatch": "3.0.2",
"merge": "1.2.1"
}
}