This repository has been archived by the owner on Jul 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
28 lines (28 loc) · 1.67 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
{
"scripts": {
"test": "yarn run build && yarn run lint-scss && yarn run lint-python && yarn run test-python",
"lint-scss": "sass-lint 'static/**/*.scss' --verbose --no-exit",
"lint-python": "flake8 --exclude '*env*,node_modules' && black --exclude '(node_modules/.*|[^/]*env[0-9]?/.*)' --check --line-length 79 .",
"test-python": "python3 -m unittest discover tests",
"build": "yarn run build-js && yarn run build-css",
"build-dev": "yarn run build-js && yarn run build-dev-css",
"copy-css": "cp node_modules/cookie-policy/build/css/cookie-policy.css static/css/modules",
"build-dev-css": "yarn run copy-css && node-sass --include-path node_modules static/sass --output static/css && postcss --use autoprefixer --replace 'static/css/**/*.css'",
"build-css": "yarn run copy-css && node-sass --include-path node_modules static/sass --output-style compressed --output static/css && postcss --use autoprefixer --no-map --replace 'static/css/**/*.css'",
"build-js": "cp node_modules/cookie-policy/build/js/cookie-policy.js static/js/modules && cp node_modules/global-nav/dist/iife.js static/js/modules/global-nav.js",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"watch": "watch -p 'static/sass/**/*.scss' -c 'yarn run build-dev'",
"clean": "rm -rf node_modules yarn-error.log static/css/**/*.css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle static/js/modules/*.js"
},
"author": "Canonical webteam",
"devDependencies": {
"autoprefixer": "9.5.1",
"cookie-policy": "1.1.0",
"global-nav": "2.0.2",
"node-sass": "4.12.0",
"postcss-cli": "6.1.2",
"sass-lint": "1.13.1",
"vanilla-framework": "1.8.1",
"watch-cli": "0.2.3"
}
}