-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
117 lines (117 loc) · 4.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "network-pulse",
"version": "2.0.0",
"description": "",
"main": "dist/server.bundle.js",
"engines": {
"node": ">=14.4.0"
},
"scripts": {
"bootstrap": "shx rm -rf dist && shx mkdir dist",
"start": "npm run build:dev && run-p server watch:**",
"build": "run-s bootstrap build:**",
"heroku-postbuild": "npm run build:prod",
"build:prod": "run-s bootstrap build-client:** build-js:prod:**",
"build:dev": "run-s bootstrap build-client:** build-js:dev:**",
"build-js:prod:server": "webpack --config webpack.server.prod.js --display-error-details --colors",
"build-js:prod:client": "webpack --config webpack.client.prod.js --display-error-details --colors",
"build-js:dev:server": "webpack --config webpack.server.dev.js --display-error-details --colors",
"build-js:dev:client": "webpack --config webpack.client.dev.js --display-error-details --colors",
"build:client": "run-s build-client:**",
"build-client:scss": "sass scss/main.scss dist/css/main.css",
"build-client:prefix:main": "postcss --use autoprefixer -o dist/css/main.css dist/css/main.css",
"build-client:static": "run-s copy:**",
"copy:styling-dependency": "run-s bootstrap:fontawesome",
"bootstrap:fontawesome": "shx cp -r node_modules/font-awesome/css/font-awesome.min.css dist/css && shx cp -r node_modules/font-awesome/fonts dist",
"copy:manifest": "shx cp manifest.json dist",
"copy:contributejson": "shx cp contribute.json dist",
"copy:assets": "shx cp -r assets dist",
"server": "node dist/server.bundle.js",
"optimize": "run-p optimize:**",
"optimize:svg": "svgo assets/svg --multipass --pretty --enable=removeTitle",
"optimize:png": "find assets -type f -name \"*.png\" -print0 | xargs -0 -n 1 -P 6 optipng",
"watch:css": "chokidar \"components/**/*.scss\" \"pages/**/*.scss\" \"scss/**/*.scss\" -c \"npm run build-client:scss\"",
"watch:js": "chokidar \"app.jsx\" \"main.jsx\" \"js/**/*.js\" \"components/**/*.js?(x)\" \"pages/**/*.js?(x)\" \"webpack.**.js\" -c \"npm run build-js:dev:client\"",
"fix": "run-s fix:*",
"fix:js": "npm run test:eslint -- --fix",
"fix:css": "npm run test:scss -- --fix",
"test": "run-s test:**",
"test:eslint": "eslint --config ./.eslintrc.json \"*.js\" \"*.jsx\" \"js/**/*.js\" \"components/**/*.jsx\" \"pages/**/*.jsx\" \"pages/**/*.js\" webpack.**.js",
"test:scss:styleguide:color": "stylelint \"components/**/*.scss\" \"pages/**/*.scss\" \"scss/**/*.scss\" \"!scss/foundation-styles/_variables.scss\" \"!scss/**/variables.scss\" \"!scss/overrides/_variables.scss\" \"!scss/mofo-bootstrap/**/*.scss\" --syntax scss --config .stylelintrc-colors.js",
"test:scss": "stylelint --config .stylelintrc \"components/**/*.scss\" \"pages/**/*.scss\" \"scss/**/*.scss\" --syntax scss"
},
"babel": {
"presets": [
"@babel/env",
"@babel/react"
]
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"repository": {
"type": "git",
"url": "git+https://github.com/mozilla/network-pulse.git"
},
"author": "Mozilla",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/mozilla/network-pulse/issues"
},
"homepage": "https://github.com/mozilla/network-pulse#readme",
"devDependencies": {
"chokidar": "^3.5.0",
"chokidar-cli": "^2.1.0",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.3",
"optipng-bin": "^7.0.0",
"prettier": "^2.2.1",
"sass": "^1.32.8",
"stylelint": "^13.8.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-prettier": "^1.1.2",
"svgo": "^1.3.2",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-merge": "^4.2.2"
},
"dependencies": {
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"autoprefixer": "^9.8.6",
"babel-core": "^6.26.3",
"babel-loader": "^8.2.2",
"bootstrap": "^4.5.3",
"browserslist": "^4.16.1",
"classnames": "^2.2.5",
"document-env-vars": "^2.1.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"font-awesome": "^4.7.0",
"helmet": "^3.23.3",
"lodash": "^4.17.20",
"moment": "^2.29.1",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.2",
"prop-types": "^15.7.2",
"qs": "^6.9.4",
"react": "^16.14.0",
"react-debounce-input": "^3.2.3",
"react-dom": "^16.13.1",
"react-formbuilder": "^0.11.1",
"react-ga": "^3.3.0",
"react-helmet": "^6.1.0",
"react-markdown": "^4.3.1",
"react-modal": "^3.12.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-select": "^1.3.0",
"react-tag-autocomplete": "^6.1.0",
"shx": "^0.3.3",
"url": "^0.11.0"
}
}