forked from MozillaFoundation/foundation.mozilla.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·88 lines (88 loc) · 4.03 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
82
83
84
85
86
87
88
{
"name": "network",
"repository": "https://github.com/mozilla/network",
"issues": "https://github.com/mozilla/network/issues",
"version": "1.0.0",
"description": "Mozilla Network",
"scripts": {
"autoprefix": "postcss --use autoprefixer -o network-api/networkapi/frontend/_css/main.compiled.css network-api/networkapi/frontend/_css/main.compiled.css",
"build:common": "shx rm -rf network-api/networkapi/frontend && shx mkdir -p network-api/networkapi/frontend/_js && npm run fetch && run-p build:images build:pug build:sass && npm run build:contribute",
"build:contribute": "shx cp contribute.json network-api/networkapi/frontend/",
"build:images": "shx rm -rf network-api/networkapi/frontend/_images && shx cp -r source/images network-api/networkapi/frontend/_images",
"build:js-uncompressed": "webpack",
"build:js": "webpack -p",
"build:pug": "node scripts/build-pug.js",
"build:sass": "shx mkdir -p network-api/networkapi/frontend/_css && node-sass source/sass/main.scss network-api/networkapi/frontend/_css/main.compiled.css && npm run autoprefix",
"build": "npm run build:common && npm run build:js",
"build-uncompressed": "npm run build:common && npm run build:js-uncompressed",
"fetch": "node scripts/fetch-json.js",
"heroku-postbuild": "npm run build",
"migrate": "cd network-api && source venv/bin/activate && python ./manage.py migrate",
"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": "cd network-api && source venv/bin/activate && python ./manage.py runserver",
"start": "npm i && npm run build-uncompressed && run-p server watch:**",
"snyk": "snyk test --file=package.json && snyk test --file=requirements.txt",
"test:eslint": "eslint --config ./.eslintrc.yaml scripts/**/*.js source/js/**/*.js source/js/components/**/*.jsx",
"test:pug": "pug-lint source/pug/partials/ source/pug/templates/ source/pug/partials/",
"test:scss": "stylelint \"source/sass/**/*.scss\" \"source/js/components/**/*.scss\" --syntax scss",
"test": "npm run build && run-s test:**",
"watch:images": "chokidar 'source/images/**/*' -c 'npm run build:images'",
"watch:js": "chokidar 'source/js/**/*.js' 'source/js/**/*.jsx' -c 'npm run build:js-uncompressed'",
"watch:pug": "chokidar 'source/pug/**/*.pug' 'locales/**/*.properties' 'source/json/**/*.json' -c 'npm run build:pug'",
"watch:sass": "chokidar 'source/**/*.scss' -c 'npm run build:sass'"
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"author": "Mozilla",
"license": "MPL-2.0",
"dependencies": {
"ajv-cli": "^2.1.0",
"autoprefixer": "^7.1.6",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"browserslist": "^2.7.0",
"chalk": "^2.3.0",
"chokidar-cli": "^1.2.0",
"classnames": "2.2.5",
"dotenv": "^4.0.0",
"eslint-plugin-react": "^7.4.0",
"eslint": "^4.10.0",
"guetzli": "^1.0.1",
"html-entities": "^1.2.1",
"java.properties.js": "^1.1.0",
"js-cookie": "2.2.0",
"json-schema-faker-cli": "^2.0.0",
"mofo-bootstrap": "4.0.1",
"mofo-style": "^2.4.0",
"moment": "^2.20.0",
"node-sass": "^4.5.3",
"npm-run-all": "^4.1.1",
"optipng-bin": "^4.0.0",
"postcss-cli": "^4.1.1",
"postcss": "^6.0.14",
"pug-lint": "^2.5.0",
"pug": "^2.0.0-rc.4",
"react-dom": "16.0.0",
"react-ga": "2.3.5",
"react-markdown": "2.5.0",
"react": "16.0.0",
"request": "^2.83.0",
"shelljs": "^0.7.8",
"shx": "^0.2.2",
"snyk": "^1.47.0",
"stylelint-config-standard": "^17.0.0",
"stylelint": "^8.2.0",
"svgo": "^1.0.2",
"webpack": "^3.8.1"
},
"engines": {
"node": "^8.9.0"
}
}