-
Notifications
You must be signed in to change notification settings - Fork 54
/
package.json
247 lines (247 loc) · 8.72 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
{
"name": "@voluntarily/vly2",
"version": "1.1.0",
"description": "Voluntarily.nz Client based on Next.js",
"author": "Andrew Watkins",
"license": "MPL-2.0",
"main": "server/server.js",
"scripts": {
"test": "npx cross-env NODE_ENV=test PORT=8080 ENV_ENVIRONMENT='development' ENV_SECRET='mwmBqNcTWiKxDHygMiKhwyffaKQCVoRQ' nyc --reporter=lcov --reporter=text ava",
"test:root": "npx cross-env NODE_ENV=test PORT=8080 ENV_ENVIRONMENT='development' ENV_SECRET='mwmBqNcTWiKxDHygMiKhwyffaKQCVoRQ' nyc --reporter=lcov --reporter=text ava `find __tests__/ -name \"*.spec.js\"`",
"test:server": "npx cross-env NODE_ENV=test PORT=8080 ENV_ENVIRONMENT='development' ENV_SECRET='mwmBqNcTWiKxDHygMiKhwyffaKQCVoRQ' nyc --reporter=lcov --reporter=text ava `find server/ -name \"*.spec.js\"`",
"test:components": "npx cross-env NODE_ENV=test PORT=8080 ENV_ENVIRONMENT='development' ENV_SECRET='mwmBqNcTWiKxDHygMiKhwyffaKQCVoRQ' nyc --reporter=lcov --reporter=text ava `find components/ -name \"*.spec.js\"`",
"test:lib": "npx cross-env NODE_ENV=test PORT=8080 ENV_ENVIRONMENT='development' ENV_SECRET='mwmBqNcTWiKxDHygMiKhwyffaKQCVoRQ' nyc --reporter=lcov --reporter=text ava `find lib/ -name \"*.spec.js\"`",
"watch:test": "npm run test -- --watch",
"end-to-end-test": "run-p -r dev testcafe-tests",
"testcafe-tests": "wait-on -t 60000 -w 2000 -l http://localhost:3122 && node node_modules/testcafe/bin/testcafe.js --skip-js-errors firefox:headless systemtest/landing.test.js",
"lint": "standard",
"lint:next": "next lint",
"lint:fix": "standard --fix",
"dev": "cross-env ENV_ENVIRONMENT='development' ENV_SECRET='mwmBqNcTWiKxDHygMiKhwyffaKQCVoRQ' nodemon -w lang -w server -w package.json server/server.js",
"build": "next build && npm run build:lang",
"build:analyze": "ANALYZE=true next build && npm run build:lang",
"build:lang": "npm run build:lang-extract && npm run build:lang-compile-en",
"build:lang-extract": "formatjs extract $(find . -type f -name '*.js' ! -path './node_modules/*' ! -path './.next/*' ! -path './.storybook/*' ! -path './coverage/*' ! -path './docs/*' ! -path './x/*') --out-file lang/src.json --flatten --id-interpolation-pattern '[sha512:contenthash:base64:6]' ",
"build:lang-compile-en": "formatjs compile 'lang/src.json' --out-file lang/en.json",
"prod-build": "next build",
"heroku-postbuild": "next build",
"start": "NODE_ENV=production node --experimental-modules server/server.js",
"start:local": "NODE_ENV=production ENV_ENVIRONMENT='development' ENV_SECRET='mwmBqNcTWiKxDHygMiKhwyffaKQCVoRQ' node server/server.js",
"check-coverage": "nyc check-coverage --statements 90 --branches 90 --functions 90 --lines 90",
"docker-test:build": "docker build -t vly-test:latest -f Dockerfile-test . ",
"docker-test": "npm run docker-test:build && docker run vly-test:latest ",
"remote": "APP_URL=http://$(ifconfig | grep -A 1 ‘en0’ | tail -1 | cut -d ' ' -f 2):3122 nodemon -w server -w package.json server/server.js",
"storybook": "start-storybook -s ./public -p 6006",
"build-storybook": "build-storybook",
"mongo": "mongod --dbpath ./data",
"pretest": "rimraf .test",
"pretest-all": "rimraf .test",
"posttest": "rimraf .test",
"posttest-all": "rimraf .test",
"e2e:tests": "npx codeceptjs run --tests -c e2e_tests/codecept.test.js",
"e2e:features": "npx codeceptjs run --features -c e2e_tests/codecept.conf.js",
"e2e:ci": "cross-env CI=TRUE npx codeceptjs run --features -c e2e_tests/codecept.conf.js",
"e2e:shell": "npx codeceptjs shell -c e2e_tests/codecept.conf.js"
},
"dependencies": {
"@ant-design/compatible": "^1.0.8",
"@ant-design/icons": "^4.7.0",
"@babel/polyfill": "^7.8.3",
"@casl/ability": "^5.4.3",
"@casl/mongoose": "^5.0.0",
"@mdx-js/loader": "^1.6.22",
"@next/bundle-analyzer": "^11.1.2",
"@next/mdx": "^11.1.2",
"@storybook/addon-knobs": "^6.3.1",
"@types/react-intl": "^3.0.0",
"@uppy/core": "^2.1.0",
"@uppy/react": "^2.1.0",
"@uppy/webcam": "^2.0.3",
"@voluntarily/mongoose-crudify": "^1.0.1",
"accepts": "^1.3.7",
"antd": "4.16.13",
"auth0-js": "^9.16.4",
"aws-sdk": "^2.1007.0",
"babel-plugin-import": "^1.13.3",
"babel-plugin-react-intl": "^5.1.18",
"babel-plugin-styled-components": "^1.13.2",
"cookie-parser": "^1.4.5",
"cuid": "^2.1.8",
"dotenv": "^10.0.0",
"dotenv-expand": "^5.1.0",
"email-templates": "^8.0.8",
"eslint-plugin-html": "^6.2.0",
"express": "^4.17.1",
"fs-extra": "^10.0.0",
"full-icu": "^1.4.0",
"glob": "^7.2.0",
"ical-generator": "^3.0.1",
"intl": "^1.2.5",
"isomorphic-fetch": "^3.0.0",
"js-cookie": "^3.0.1",
"js-sha256": "^0.9.0",
"jsdom": "^18.0.0",
"jsonwebtoken": "^8.5.1",
"jwks-rsa": "^2.0.4",
"jwt-decode": "^3.1.2",
"less": "^4.1.2",
"lodash": "^4.17.21",
"lodash.pick": "^4.4.0",
"markdown-to-jsx": "^7.1.3",
"mock-express-request": "^0.2.2",
"mock-express-response": "^0.3.0",
"moment": "^2.29.2",
"mongoose": "^5.13.9",
"mongoose-id-validator": "^0.6.0",
"morgan": "^1.10.0",
"natural": "^5.1.1",
"next": "latest",
"next-redux-wrapper": "^7.0.5",
"next-with-less": "^1.0.1",
"node-cipher": "^6.3.3",
"nodemailer": "^6.7.0",
"nodemailer-mock": "^1.5.11",
"pubsub-js": "^1.9.3",
"quill": "1.3.7",
"raygun": "^0.13.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-ga": "^3.3.0",
"react-intl": "^5.20.12",
"react-quill": "^2.0.0-beta.4",
"react-redux": "^7.2.5",
"react-share": "^4.4.0",
"recharts": "^2.1.4",
"redux": "^4.1.1",
"redux-api": "^0.12.0",
"redux-devtools-extension": "^2.13.9",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"rimraf": "^3.0.2",
"run": "^1.4.0",
"sanitize-html": "^2.5.2",
"slug": "^5.1.0",
"stopword": "^1.0.11",
"string-similarity": "^4.0.4",
"styled-components": "^5.3.1",
"uuid": "^8.3.2"
},
"devDependencies": {
"@ava/babel": "^2.0.0",
"@babel/plugin-syntax-jsx": "^7.14.5",
"@babel/register": "^7.15.3",
"@codeceptjs/configure": "^0.7.0",
"@formatjs/cli": "^4.3.1",
"@istanbuljs/nyc-config-babel": "^3.0.0",
"@testing-library/dom": "^8.9.0",
"@wdio/selenium-standalone-service": "^7.14.1",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
"ava": "^3.15.0",
"axios": "^0.23.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.2.2",
"babel-plugin-istanbul": "^6.0.0",
"codeceptjs": "^3.1.3",
"codecov": "^3.8.3",
"cross-env": "^7.0.3",
"enzyme": "^3.11.0",
"eslint": "^7.32.0",
"eslint-config-next": "11.1.2",
"fetch-mock": "^9.11.0",
"mongodb-memory-server": "^7.4.3",
"nodemon": "^2.0.13",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"objectid": "^3.2.1",
"puppeteer": "^10.4.0",
"redux-ava": "^2.2.0",
"redux-mock-store": "^1.5.4",
"sinon": "^11.1.2",
"standard": "^16.0.4",
"supertest": "^6.1.6",
"testcafe": "^1.16.1",
"testcafe-react-selectors": "^4.1.5",
"wait-on": "^6.0.0",
"webdriverio": "^7.14.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/voluntarily/vly2.git"
},
"bugs": {
"url": "https://github.com/voluntarily/vly2/issues"
},
"homepage": "https://github.com/voluntarily/vly2#readme",
"nyc": {
"extends": "@istanbuljs/nyc-config-babel",
"ignore-class-method": "GetInitialProps",
"watermarks": {
"lines": [
80,
95
],
"functions": [
80,
95
],
"branches": [
80,
95
],
"statements": [
80,
95
]
},
"include": [
"pages/**/*.js",
"pages/api/*.js",
"components/**/*.js",
"server/**/*.js",
"lib/**/*.js"
],
"exclude": [
"**/__tests__/**",
"**/*.stories.js",
"**/*.spec.js",
"**/*.fixture.js",
"**/*.init.js",
"**/__init__/*.js",
"server/util/*.js",
"server/util/__tests__/*.js",
"lib/react-intl-test*.js",
"lib/auth/auth0.js",
"server/config.js",
"components/examples/**/*.js",
"**/*-md.js",
"pages/_*.js",
"pages/test/**/*.js",
"pages/todo.js",
"pages/admin/admin.js",
"pages/admin/goals/*.js",
"pages/teachers/*.js",
"pages/business/*.js",
"pages/content/*.js",
"server/api/image/cloudImageUpload.js",
"server/services/email/email.js",
"reference",
"systemtest",
"x",
"public"
],
"reporter": [
"lcov",
"text",
"html"
]
},
"standard": {
"plugins": [
"html"
],
"ignore": [
"/e2e_tests/**/*.js"
],
"parser": "babel-eslint"
}
}