This repository has been archived by the owner on Jan 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
34 lines (34 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
29
30
31
32
33
34
{
"scripts": {
"build": "yarn run copy-3rd-party && node-sass --include-path node_modules static/sass --output static/css && postcss --use autoprefixer --replace 'static/css/**/*.css' && postcss --use cssnano --dir static/minified 'static/css/**/*.css'",
"clean": "rm -rf node_modules yarn-error.log css static/css static/sass/modules static/js/modules *.log *.sqlite _site/ build/ .jekyll-metadata .bundle",
"copy-3rd-party": "yarn run copy-3rd-party-js && yarn run copy-3rd-party-css",
"copy-3rd-party-css": "mkdir -p static/sass/modules && cp node_modules/@canonical/cookie-policy/build/css/cookie-policy.css static/sass/modules/",
"copy-3rd-party-js": "mkdir -p static/js/modules && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js static/js/modules/ && cp node_modules/@canonical/global-nav/dist/global-nav.js static/js/modules/",
"lint-python": "flake8 --exclude '*env*,node_modules'",
"lint-scss": "sass-lint static/**/*.scss --verbose --no-exit",
"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",
"watch": "watch -p 'static/sass/**/*.scss' -c 'yarn run build'"
},
"dependencies": {
"@canonical/global-nav": "2.3.0",
"autoprefixer": "9.7.3",
"@canonical/cookie-policy": "2.0.2",
"cssnano": "4.1.10",
"node-sass": "4.13.0",
"postcss": "7.0.26",
"postcss-cli": "6.1.3",
"vanilla-framework": "1.8.1"
},
"devDependencies": {
"sass-lint": "1.13.1",
"watch-cli": "0.2.3"
},
"resolutions": {
"lodash": "4.17.11",
"minimatch": "3.0.4",
"merge": "1.2.1"
}
}