-
Notifications
You must be signed in to change notification settings - Fork 43
/
package.json
45 lines (45 loc) · 2.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
{
"name": "ubuntu-maas",
"description": "Static Django website blueprint",
"scripts": {
"start": "yarn run build && yarn run serve",
"build": "yarn run build-css && yarn run build-js",
"build-css": "sass static/sass/main.scss static/css/main.css --load-path=node_modules --style=compressed && postcss --map false --use autoprefixer --replace 'static/css/**/*.css'",
"build-js": "yarn run copy-3rd-party-js",
"clean": "rm -rf node_modules yarn-error.log static/css *.log *.sqlite _site/ build/ .jekyll-metadata",
"copy-3rd-party-js": "yarn run copy-global-nav && yarn run copy-latest-news && yarn run copy-cookie-policy && yarn run copy-venobox && yarn run copy-discourse-rad-parser",
"copy-cookie-policy": "mkdir -p static/js/modules/cookie-policy && cp -a node_modules/@canonical/cookie-policy/build/js/. static/js/modules/cookie-policy",
"copy-global-nav": "mkdir -p static/js/modules/global-nav && cp -a node_modules/@canonical/global-nav/dist/. static/js/modules/global-nav",
"copy-latest-news": "mkdir -p static/js/modules/latest-news && cp -a node_modules/@canonical/latest-news/dist/. static/js/modules/latest-news",
"copy-venobox": "mkdir -p static/js/modules/venobox && cp node_modules/venobox/dist/venobox.min.js static/js/modules/venobox/venobox.min.js",
"copy-discourse-rad-parser": "mkdir -p static/js/modules/discourse-rad-parser && cp -a node_modules/@canonical/discourse-rad-parser/build/js/. static/js/modules/discourse-rad-parser",
"lint-python": "flake8 --exclude '*env*,node_modules' && black --line-length 79 --check --exclude '(node_modules/.*|[^/]*env[0-9]?/.*)' .",
"lint-python-fix": "black --line-length 79 --exclude '(node_modules/.*|[^/]*env[0-9]?/.*)' .",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"test": "yarn run lint-scss && yarn run lint-python && yarn run test-python",
"test-python": "python3 -m unittest discover tests",
"lint-scss": "stylelint static/**/*.scss",
"watch": "sass static/sass/main.scss static/css/main.css --load-path=node_modules --style=compressed --watch && postcss --map false --use autoprefixer --replace 'static/css/**/*.css'"
},
"author": "Canonical webteam",
"license": "LGPL v3",
"devDependencies": {
"@testing-library/cypress": "9.0.0",
"cypress": "12.17.4",
"stylelint": "14.16.1",
"stylelint-config-recommended-scss": "5.0.2",
"stylelint-order": "5.0.0"
},
"dependencies": {
"@canonical/cookie-policy": "3.4.0",
"@canonical/discourse-rad-parser": "1.0.1",
"@canonical/global-nav": "3.2.4",
"@canonical/latest-news": "1.4.1",
"autoprefixer": "10.4.19",
"postcss": "8.4.31",
"postcss-cli": "9.1.0",
"sass": "1.77.1",
"vanilla-framework": "4.5.1",
"venobox": "2.1.8"
}
}