forked from canonical/maas.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
37 lines (37 loc) · 2.09 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
{
"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",
"copy-cookie-policy": "mkdir -p static/js/modules/cookie-policy && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/modules/cookie-policy",
"copy-global-nav": "mkdir -p static/js/modules/global-nav && cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/modules/global-nav",
"copy-latest-news": "mkdir -p static/js/modules/latest-news && cp node_modules/@canonical/latest-news/dist/latest-news.js static/js/modules/latest-news",
"lint-python": "flake8 --exclude '*env*,node_modules' && black --line-length 79 --check --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": {
"autoprefixer": "10.2.1",
"postcss": "8.2.10",
"stylelint": "13.12.0",
"stylelint-config-standard": "20.0.0",
"stylelint-order": "4.1.0"
},
"dependencies": {
"@canonical/cookie-policy": "3.3.0",
"@canonical/global-nav": "2.5.0",
"@canonical/latest-news": "1.3.0",
"sass": "1.27.0",
"vanilla-framework": "2.37.0"
}
}