forked from karrot-dev/karrot-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
205 lines (205 loc) · 6.79 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
{
"private": true,
"name": "karrot-frontend",
"productName": "karrot",
"version": "5.0.0",
"description": "Modern website for organization of foodsaving groups worldwide",
"author": "Foodsaving Worldwide Dev Team <foodsaving@yunity.org>",
"homepage": "https://karrot.world/",
"license": "MIT",
"keywords": [
"foodsharing",
"foodsaving",
"community",
"organization"
],
"repository": {
"type": "git",
"url": "https://github.com/yunity/karrot-frontend"
},
"bugs": "https://github.com/yunity/karrot-frontend/issues",
"scripts": {
"clean": "shx rm -rf dist",
"dev": "webpack-serve --config build/serve.config.js",
"build": "npm run clean && npm run build:main && npm run build:statics && npm run build:service-worker",
"build:main": "NODE_ENV=production webpack",
"build:statics": "shx cp -r src/statics dist/",
"build:service-worker": "NODE_ENV=production webpack --config build/webpack.service-worker.conf.js",
"build:cordova:dev": "npm run clean && NODE_ENV=production KARROT_THEME=dev BACKEND=https://dev.karrot.world CORDOVA=true webpack && npm run build:statics",
"build:cordova:prod": "npm run clean && NODE_ENV=production BACKEND=https://karrot.world CORDOVA=true webpack && npm run build:statics",
"serve": "node build/script.serve.js",
"test": "node test/jestUTC.js",
"test:update": "node test/jestUTC.js --verbose --updateSnapshot",
"test:watch": "node test/jestUTC.js --verbose --watchAll --notify",
"e2e": "node e2e/testcafe.js",
"lint": "eslint --ext .js,.vue build scripts src test",
"fix": "npm run lint -- --fix",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"locales:pull": "updateLocalesHelper/env/bin/python updateLocalesHelper/updateLocales.py",
"locales:push": "updateLocalesHelper/env/bin/tx push -s",
"docs": "gitbook install docs && gitbook serve docs",
"build-docs": "gitbook install docs && gitbook build docs docs-dist"
},
"dependencies": {
"axios": "^0.18.0",
"clone-deep": "4.0.0",
"date-fns": "^1.29.0",
"deep-equal": "^1.0.1",
"deepmerge": "^2.0.1",
"element-closest": "^2.0.2",
"escape-string-regexp": "^1.0.5",
"firebase": "^5.1.0",
"intl": "^1.2.5",
"jstimezonedetect": "^1.0.6",
"loglevel": "^1.6.0",
"markdown-it": "^8.4.0",
"markdown-it-emoji": "^1.4.0",
"markdown-it-link-attributes": "^2.0.0",
"quasar-extras": "2.0.4",
"quasar-framework": "0.17.5",
"raven-js": "^3.20.1",
"reconnecting-websocket": "^4.0.0-rc5",
"twemoji": "^11.0.0",
"typeface-cabin-sketch": "^0.0.54",
"vue": "~2.5.17",
"vue-croppa": "^1.2.0",
"vue-i18n": "^8.0.0",
"vue-router": "^3.0.1",
"vue2-leaflet": "1.0.2",
"vuelidate": "^0.7.4",
"vuex": "^3.0.0",
"vuex-connect": "^2.0.1",
"vuex-persistedstate": "^2.0.0",
"vuex-router-sync": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.56",
"@babel/plugin-syntax-dynamic-import": "^7.0.0-beta.56",
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.56",
"@babel/plugin-transform-runtime": "^7.0.0-beta.56",
"@babel/preset-env": "^7.0.0-beta.56",
"@babel/runtime": "^7.0.0-beta.56",
"@octokit/rest": "^15.9.5",
"@storybook/addon-actions": "^4.0.0-alpha",
"@storybook/addon-links": "^4.0.0-alpha",
"@storybook/vue": "^4.0.0-alpha",
"@vue/test-utils": "1.0.0-beta.11",
"autoprefixer": "^9.0.2",
"axios-mock-adapter": "^1.12.0",
"babel-core": "^7.0.0-0",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.4.2",
"babel-loader": "^8.0.0-beta",
"babel-plugin-dynamic-import-node": "^2.0.0",
"babel-plugin-transform-imports": "^1.5.0",
"compression": "^1.7.3",
"connect-history-api-fallback": "^1.1.0",
"css-loader": "^1.0.0",
"dotenv": "^6.0.0",
"eslint": "^5.2.0",
"eslint-config-standard": "^12.0.0-alpha.0",
"eslint-loader": "^2.1.0",
"eslint-plugin-html": "^4.0.2",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"eslint-plugin-testcafe": "^0.2.1",
"eslint-plugin-vue": "4.7.1",
"express": "^4.15.4",
"file-loader": "^1.1.6",
"gitbook-cli": "^2.3.2",
"glob": "^7.1.2",
"hard-source-webpack-plugin": "^0.12.0",
"html-webpack-plugin": "^4.0.0-alpha",
"http-proxy-middleware": "^0.18.0",
"jest": "^23.4.2",
"jest-canvas-mock": "^1.0.2",
"jest-localstorage-mock": "^2.1.0",
"jest-serializer-vue": "^2.0.2",
"json-loader": "^0.5.7",
"koa-connect": "^2.0.1",
"koa-mount": "^3.0.0",
"koa-static": "^5.0.0",
"lolex": "^2.3.2",
"mini-css-extract-plugin": "^0.4.1",
"optimize-css-assets-webpack-plugin": "^5.0.0",
"postcss-loader": "^2.1.6",
"raf": "^3.4.0",
"shx": "^0.3.2",
"style-loader": "^0.21.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"testcafe": "^0.21.0",
"testcafe-browser-provider-saucelabs": "^1.3.0",
"uglifyjs-webpack-plugin": "^1.2.7",
"url-loader": "^1.0.1",
"vue-jest": "^2.6.0",
"vue-loader": "^15.2.6",
"vue-server-renderer": "^2.5.17",
"vue-template-compiler": "^2.5.17",
"webpack": "^4.16.4",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-command": "^0.4.1",
"webpack-serve": "^2.0.2"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"jest": {
"roots": [
"<rootDir>/src/"
],
"moduleDirectories": [
"node_modules",
"<rootDir>/src"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/fileMock.js",
"\\.(css|less|styl|stylus)$": "<rootDir>/test/styleMock.js",
"@/(.*)$": "<rootDir>/src/$1",
">/(.*)$": "<rootDir>/test/$1",
"^quasar$": "<rootDir>/node_modules/quasar-framework/dist/quasar.mat.esm.js",
"^quasar-vue-plugin$": "<rootDir>/node_modules/quasar-framework/dist/quasar.mat.esm.js"
},
"moduleFileExtensions": [
"js",
"json",
"node",
"vue"
],
"transform": {
"^.+\\.js$": "babel-jest",
".*\\.(vue)$": "vue-jest"
},
"snapshotSerializers": [
"jest-serializer-vue"
],
"transformIgnorePatterns": [
"/node_modules/(?!quasar-framework)"
],
"coverageDirectory": "./coverage/",
"coverageReporters": [
"json",
"lcov"
],
"collectCoverage": true,
"setupFiles": [
"<rootDir>/test/setup/unhandledPromiseRejectionHandler.js",
"<rootDir>/test/setup/mockRandom.js",
"jest-localstorage-mock",
"jest-canvas-mock"
],
"globals": {
"__ENV": {
"CORDOVA": false,
"DEV": true,
"KARROT_THEME": "dev",
"FCM_SENDER_ID": "test-fcm-sender-id"
}
}
}
}