forked from canonical/ubuntu.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
88 lines (88 loc) · 3.72 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"scripts": {
"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",
"format-python": "black --line-length 79 webapp tests",
"lint-scss": "stylelint static/sass/**/*.scss",
"lint-js": "eslint static/js/src/**/*.js",
"test-js": "NODE_ICU_DATA=node_modules/full-icu jest",
"test-links": "./entrypoint 0.0.0.0:${PORT} && sleep 2 && linkchecker --threads 2 --ignore-url /usn --ignore-url /resources --ignore-url /search --ignore-url /server/docs --no-warnings http://127.0.0.1:8000",
"copy-global-nav": "cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/dist/",
"copy-latest-news": "cp node_modules/@canonical/latest-news/dist/latest-news.js static/js/dist",
"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": "webpack && yarn run copy-global-nav && yarn run copy-latest-news",
"build": "yarn run build-css && yarn run build-js && yarn copy-global-nav",
"watch": "yarn run watch-css && yarn run watch-js",
"watch-css": "watch -p 'static/sass/**/*.scss' -p 'node_modules/vanilla-framework/scss/**/*.scss' -c 'yarn run build-css'",
"watch-js": "watch -p 'static/js/src/**/*.js' -p 'static/js/data/**/*.js' -p 'static/js/third-party/**/*.js' -c 'yarn run build-js'",
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle static/js/dist etc/",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"start": "yarn run build && concurrently --kill-others --raw 'yarn run watch-css' 'yarn run watch-js' 'yarn run serve'",
"cypress:run": "cypress run --config-file tests/cypress/cypress.json --config baseUrl=http://$(hostname -I | awk '{print $1;}'):${PORT}",
"cypress:open": "cypress open --config-file tests/cypress/cypress.json --config baseUrl=http://$(hostname -I | awk '{print $1;}'):${PORT}"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.scss": "./run exec yarn run lint-scss",
"*.py": "./run exec yarn run lint-python",
"*.js": [
"./run exec yarn run lint-js",
"prettier --write"
]
},
"keywords": [
"website",
"ubuntu"
],
"author": "Canonical webteam",
"license": "LGPL v3",
"devDependencies": {
"@babel/core": "7.11.1",
"@babel/plugin-transform-runtime": "7.11.0",
"@babel/preset-env": "7.11.0",
"autoprefixer": "9.8.6",
"babel-jest": "26.2.2",
"babel-loader": "8.1.0",
"concurrently": "5.2.0",
"cypress": "4.12.1",
"eslint": "7.6.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-cypress": "2.11.1",
"exports-loader": "1.1.0",
"full-icu": "1.3.1",
"husky": "4.2.5",
"jest": "26.2.2",
"lint-staged": "10.2.11",
"node-sass": "4.14.1",
"postcss-cli": "7.1.1",
"prettier": "2.0.5",
"stylelint": "13.6.1",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-standard": "20.0.0",
"stylelint-order": "4.1.0",
"stylelint-prettier": "1.1.2",
"stylelint-scss": "3.18.0",
"terser-webpack-plugin": "4.0.0",
"watch-cli": "0.2.3",
"webpack": "4.44.1",
"webpack-cli": "3.3.12"
},
"dependencies": {
"@canonical/cookie-policy": "2.1.0",
"@canonical/global-nav": "2.4.3",
"@canonical/latest-news": "1.0.3",
"url-polyfill": "1.1.10",
"url-search-params-polyfill": "8.1.0",
"vanilla-framework": "2.15.0"
},
"resolutions": {
"lodash": "4.17.19",
"minimatch": "3.0.4",
"merge": "1.2.1"
}
}