forked from MozillaFoundation/donate-wagtail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
72 lines (72 loc) · 3.25 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
62
63
64
65
66
67
68
69
70
71
72
{
"repository": "https://github.com/mozilla/donate-wagtail",
"issues": "https://github.com/mozilla/donate-wagtail/issues",
"description": "Mozilla donate platform",
"scripts": {
"autoprefix": "postcss --use autoprefixer -o donate/frontend/_css/main.compiled.css donate/frontend/_css/main.compiled.css",
"build:common": "shx rm -rf donate/frontend && shx mkdir -p donate/frontend/_js && run-p build:images build:sass",
"build:images": "shx rm -rf donate/frontend/_images && shx cp -r source/images donate/frontend/_images",
"build:js-uncompressed": "webpack --mode=development",
"build:js": "webpack -p",
"build:sass": "shx mkdir -p donate/frontend/_css && node-sass source/sass/main.scss donate/frontend/_css/main.compiled.css --output-style compressed && npm run autoprefix",
"build": "npm run build:common && npm run build:js",
"build-uncompressed": "npm run build:common && npm run build:js-uncompressed",
"heroku-postbuild": "npm run build",
"optimize:svg": "find source/images -type f -name '*.svg' -print0 | xargs -0 -n 1 -P 6 svgo --multipass --pretty --enable=removeTitle",
"optimize:jpg": "find source/images -type f -name '*.jpg' -print0 | xargs -0 -n 1 -P 6 -I '{}' guetzli --quality 93 '{}' '{}'",
"optimize:png": "find source/images -type f -name '*.png' -print0 | xargs -0 -n 1 -P 6 optipng",
"optimize": "run-p optimize:**",
"server": "pipenv run python manage.py runserver",
"start": "run-p build-uncompressed server watch:**",
"test:eslint": "eslint --config ./.eslintrc.json \"source/js/**/*.js\" webpack.config.js",
"test:scss": "stylelint \"source/sass/**/*.scss\" \"source/js/**/*.scss\" --syntax scss",
"test:scss:styleguide:color": "stylelint \"source/sass/**/*.scss\" \"source/js/**/*.scss\" \"!source/sass/**/_variables.scss\" \"!source/sass/**/_normalize.scss\" --syntax scss --config .stylelintrc-colors.js",
"test": "run-s test:** build",
"watch": "npm run build && run-p watch:**",
"watch:images": "chokidar \"source/images/**/*\" -c \"npm run build:images\"",
"watch:js": "chokidar \"source/js/**/*.js\" -c \"npm run build:js-uncompressed\"",
"watch:sass": "chokidar \"source/**/*.scss\" -c \"npm run build:sass\""
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"author": "Mozilla",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@sentry/browser": "^5.12.1",
"autoprefixer": "^9.7.4",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.6",
"babel-polyfill": "^6.26.0",
"braintree-web": "^3.57.0",
"intersection-observer": "^0.7.0",
"node-sass": "^4.13.1",
"npm-run-all": "^4.1.3",
"postcss": "^7.0.27",
"postcss-cli": "^7.1.0",
"scrollama": "^2.1.3",
"shx": "^0.3.2",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11"
},
"engines": {
"node": "^8.9.0"
},
"devDependencies": {
"browserslist": "^4.8.7",
"chokidar-cli": "^2.1.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"optipng-bin": "^6.0.0",
"prettier": "^1.19.1",
"shelljs": "^0.8.3",
"stylelint": "^13.2.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-prettier": "^1.1.2",
"svgo": "^1.3.2"
}
}