This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
81 lines (81 loc) · 3.71 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
73
74
75
76
77
78
79
80
81
{
"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 && sass source/sass/main.scss donate/frontend/_css/main.compiled.css --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",
"fix": "npm run fix:js && npm run fix:css",
"fix:js": "npm run test:eslint -- --fix",
"fix:css": "npm run test:scss -- --fix",
"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:**",
"playwright:install": "playwright install chromium firefox webkit",
"playwright:ci": "run-p --race server playwright:integration",
"playwright:integration": "wait-on -i 3000 http://localhost:8000/admin/ && playwright test ./tests/integration.spec.js",
"server": "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.12.9",
"@babel/preset-env": "^7.12.7",
"@sentry/browser": "^5.17.0",
"autoprefixer": "^9.8.6",
"babel-core": "^6.26.3",
"babel-loader": "^8.2.2",
"babel-polyfill": "^6.26.0",
"braintree-web": "^3.62.2",
"intersection-observer": "^0.10.0",
"npm-run-all": "^4.1.3",
"postcss": "^7.0.32",
"postcss-cli": "^7.1.1",
"sass": "^1.48.0",
"scrollama": "^2.2.1",
"shx": "^0.3.3",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12"
},
"engines": {
"node": "^14.4.0"
},
"devDependencies": {
"@playwright/test": "^1.17.2",
"browserslist": "^4.14.7",
"chokidar-cli": "^2.1.0",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"optipng-bin": "^7.0.0",
"playwright": "^1.17.2",
"prettier": "^2.0.5",
"shelljs": "^0.8.4",
"stylelint": "^13.8.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-prettier": "^1.1.2",
"svgo": "^1.3.2",
"wait-on": "^5.2.1"
}
}