-
Notifications
You must be signed in to change notification settings - Fork 35
/
package.json
61 lines (61 loc) · 2.68 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
{
"name": "netplan.io",
"description": "Codebase for https://netplan.io",
"main": "_site/index.html",
"scripts": {
"clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle",
"watch": "watch -p 'static/sass/**/*' -p 'static/js/**/*.js' -c 'yarn run build'",
"watch-js": "watch -p 'static/js/src/**/!(*.test)*.{js,jsx,ts,tsx}' -p 'static/js/data/**/*.js' -p 'static/js/third-party/**/*.js' -c 'yarn run build-js && tsc -noEmit'",
"watch-scss": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-scss'",
"build": "yarn run build-css && yarn run build-js",
"build-css": "sass static/sass:static/css --load-path=node_modules --style=compressed && postcss --use autoprefixer --replace 'static/css/**/*.css' --no-map",
"build-js": "node build.js && yarn run build-global-nav && yarn run build-cookie-policy",
"build-cookie-policy": "mkdir -p static/js/build/ && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/build/",
"build-global-nav": "mkdir -p static/js/build/ && cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/build/",
"format-python": "black --line-length 79 webapp",
"lint-python": "flake8 webapp tests && black --check --line-length 79 webapp tests",
"lint-js": "eslint static/js",
"lint-scss": "stylelint static/**/*.scss",
"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",
"test-python": "python3 -m unittest discover tests"
},
"repository": {
"type": "git",
"url": "https://github.com/canonical-websites/netplan.io"
},
"author": "Anthony Dillon <anthony.dillon@canonical.com>",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/ubuntudesign/netplan.io/issues"
},
"homepage": "https://netplan.io",
"dependencies": {
"@canonical/cookie-policy": "3.6.4",
"@canonical/global-nav": "3.2.4",
"vanilla-framework": "3.14.0"
},
"devDependencies": {
"autoprefixer": "10.4.1",
"babel-core": "6.26.3",
"babel-eslint": "10.1.0",
"babel-loader": "^9.0.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "6.24.1",
"concurrently": "7.6.0",
"esbuild": "0.14.10",
"eslint": "8.31.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-prettier": "4.2.1",
"lazysizes": "5.3.2",
"postcss": "8.4.5",
"postcss-cli": "10.1.0",
"prettier": "2.0.2",
"sass": "1.46.0",
"stylelint": "14.16.1",
"stylelint-config-standard-scss": "^6.1.0",
"stylelint-order": "5.0.0",
"watch-cli": "0.2.3"
}
}