forked from cozy/cozy-drive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
236 lines (236 loc) · 9.23 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
{
"name": "cozy-drive",
"version": "1.9.1",
"main": "src/main.jsx",
"scripts": {
"build:drive": "npm run build:drive:browser",
"build:drive:browser": "npm run internal:build -- --env.app=drive --env.target=browser --env.production",
"build:drive:mobile": "npm run internal:build -- --env.app=drive --env.target=mobile --env.production",
"build:photos": "npm run build:photos:browser",
"build:photos:browser": "npm run internal:build -- --env.app=photos --env.target=browser --env.production",
"clean:drive:browser": "rm -rf build/drive/*",
"clean:photos:browser": "rm -rf build/photos/*",
"clean:mobile": "rm -rf targets/*/mobile/www/*",
"deploy:drive": "cozy-app-publish --token $REGISTRY_TOKEN --build-dir 'build/drive/' --prepublish downcloud --postpublish rundeck,mattermost",
"deploy:photos": "cozy-app-publish --token $REGISTRY_TOKEN --build-dir 'build/photos/' --prepublish downcloud --postpublish rundeck,mattermost",
"internal:build": "webpack --config webpack.config.js --bail",
"internal:watch": "webpack --config webpack.config.js --watch --progress",
"tx": "tx pull --all || true",
"preinternal:build": "npm-run-all lint tx",
"prebuild:drive:browser": "npm run clean:drive:browser",
"prebuild:photos:browser": "npm run clean:photos:browser",
"prebuild:drive:mobile": "npm run clean:mobile",
"prewatch:drive:browser": "npm run clean:drive:browser",
"prewatch:photos:browser": "npm run clean:photos:browser",
"prewatch:drive:mobile": "npm run clean:mobile",
"lint": "npm-run-all --parallel 'lint:*'",
"lint:styles": "stylint src/drive/styles --config ./.stylintrc",
"lint:js": "eslint --ignore-pattern node_modules \"{src,test}/**/*.{js,jsx}\"",
"precommit": "lint-staged",
"test": "node_modules/.bin/jest --coverage --config=jest.config.json",
"watch:drive": "npm run watch:drive:browser",
"watch:drive:browser": "npm run internal:watch -- --env.app=drive --env.target=browser",
"watch:drive:mobile": "npm run internal:watch -- --env.app=drive --env.target=mobile",
"watch:drive:standalone": "webpack-dev-server --config webpack.config.js --env.app=drive --env.target=mobile --port 8084 --inline --hot",
"watch:photos": "npm run watch:photos:browser",
"watch:photos:browser": "npm run internal:watch -- --env.app=photos --env.target=browser",
"genicon:drive:mobile": "(cd targets/drive/mobile && rm -Rf ./res/icons ./res/screens && splashicon-generator --imagespath='./res/model' && cp res/model/splash.png res/screens/ios/Default@2x~universal~anyany.png)",
"prepare:drive:mobile": "(cd targets/drive/mobile && rm -rf platforms && rm -rf plugins && cordova prepare)",
"run:drive:android": "(cd targets/drive/mobile && cordova run android --device)",
"run:drive:android:emulator": "(cd targets/drive/mobile && cordova run android --emulator)",
"build:drive:android": "npm run build:drive:mobile && (cd targets/drive/mobile && cordova build android --release)",
"sign:drive:android": "(cd targets/drive/mobile && apksigner sign --ks keys/android/cozy-drive-release-key.jks --out build/android/cozy-drive.apk platforms/android/build/outputs/apk/release/android-release-unsigned.apk)",
"buildsigned:drive:android": "npm run build:drive:android && npm run sign:drive:android",
"publish:drive:android": "(cd targets/drive/mobile && fastlane supply)",
"publishbeta:drive:android": "(cd targets/drive/mobile && fastlane android pushbeta)",
"run:drive:ios": "(cd targets/drive/mobile && cordova run ios --device)",
"run:drive:ios:emulator": "(cd targets/drive/mobile && cordova run ios --emulator)",
"publish:drive:ios": "npm run build:drive:mobile && (cd targets/drive/mobile && fastlane ios pushtest)",
"sentry:drive:mobile": "sentry-cli releases -o sentry -p cozy-drive-v3 files $npm_package_version upload-sourcemaps ./targets/drive/mobile/www",
"version:drive:manifest": "replace '\\d+\\.\\d+\\.\\d+' $npm_package_version ./targets/drive/manifest.webapp",
"version:drive:config": "replace 'version=\"\\d+\\.\\d+\\.\\d+\"' 'version=\"'$npm_package_version'\"' ./targets/drive/mobile/config.xml",
"version:drive:iosbuild": "replace 'CFBundleVersion=\"\\d+\\.\\d+\\.\\d+.\\d+\"' 'CFBundleVersion=\"'$npm_package_version'.0\"' ./targets/drive/mobile/config.xml",
"version:drive:useragent": "replace 'value=\"(.+)\\d+\\.\\d+\\.\\d+\"' 'value=\"$1'$npm_package_version'\"' ./targets/drive/mobile/config.xml",
"version:drive": "npm-run-all --parallel 'version:drive:*'",
"version:photos": "replace '\\d+\\.\\d+\\.\\d+' $npm_package_version ./targets/photos/manifest.webapp"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cozy/cozy-drive.git"
},
"author": "Cozy Cloud <contact@cozycloud.cc> (https://cozy.io/)",
"contributors": [
"CPatchane",
"enguerran",
"GoOz",
"goldoraf",
"gregorylegarec",
"kossi",
"m4dz",
"nono",
"ptbrowne",
"y_lohse"
],
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/cozy/cozy-drive/issues"
},
"homepage": "https://github.com/cozy/cozy-drive#readme",
"devDependencies": {
"@sentry/cli": "1.34.0",
"autoprefixer": "9.1.0",
"babel-core": "6.26.3",
"babel-eslint": "8.2.6",
"babel-jest": "21.2.0",
"babel-loader": "6.4.1",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-runtime": "6.23.0",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.7.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"babel-runtime": "6.26.0",
"btoa": "1.2.1",
"copy-webpack-plugin": "4.5.2",
"cordova": "6.5.0",
"css-loader": "0.28.11",
"css-mqpacker": "6.0.2",
"csswring": "6.0.3",
"enzyme": "2.9.1",
"eslint": "4.19.1",
"eslint-config-prettier": "2.9.0",
"eslint-config-standard": "10.2.1",
"eslint-config-standard-react": "5.0.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-node": "5.2.1",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-promise": "3.8.0",
"eslint-plugin-react": "7.10.0",
"eslint-plugin-standard": "3.1.0",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.11",
"fs-extra": "5.0.0",
"git-directory-deploy": "1.5.1",
"html-webpack-plugin": "2.30.1",
"husky": "0.14.3",
"identity-obj-proxy": "3.0.0",
"imports-loader": "0.8.0",
"jest": "21.2.1",
"json-loader": "0.5.7",
"lint-staged": "6.1.1",
"npm-run-all": "4.1.3",
"postcss": "5.2.18",
"postcss-assets-webpack-plugin": "1.1.0",
"postcss-discard-duplicates": "2.1.0",
"postcss-loader": "2.1.6",
"prettier": "1.11.1",
"react": "15.6.2",
"react-addons-test-utils": "15.6.2",
"react-dom": "15.6.2",
"react-test-renderer": "15.6.2",
"replace": "1.0.0",
"script-ext-html-webpack-plugin": "1.8.8",
"splashicon-generator": "0.2.12",
"style-loader": "0.21.0",
"stylint": "1.5.9",
"stylus": "0.54.5",
"stylus-loader": "3.0.2",
"svg-sprite-loader": "3.8.0",
"tostr": "0.1.0",
"webpack": "3.12.0",
"webpack-dev-server": "2.11.2",
"webpack-merge": "1.1.2",
"xml2js": "0.4.19"
},
"dependencies": {
"classnames": "2.2.6",
"cozy-bar": "5.0.8",
"cozy-client": "^2.10.4",
"cozy-client-js": "0.10.0",
"cozy-realtime": "1.1.0",
"cozy-ui": "10.8.1",
"create-react-context": "0.2.2",
"date-fns": "1.29.0",
"diacritics": "1.3.0",
"filesize": "3.6.1",
"hammerjs": "2.0.8",
"intersection-observer": "0.5.0",
"justified-layout": "2.1.1",
"localforage": "1.7.2",
"lodash": "4.17.10",
"mime-types": "2.1.19",
"node-polyglot": "2.3.0",
"node-uuid": "1.4.8",
"piwik-react-router": "0.8.2",
"popper.js": "^1.14.4",
"pouchdb": "6.4.2",
"pouchdb-find": "0.10.5",
"preact": "8.3.0",
"preact-compat": "3.18.0",
"prop-types": "15.6.2",
"raven-js": "3.26.4",
"react-autosuggest": "9.3.4",
"react-copy-to-clipboard": "5.0.1",
"react-dropzone": "4.2.13",
"react-markdown": "3.4.1",
"react-measure": "2.1.0",
"react-redux": "5.0.7",
"react-router": "3.2.0",
"react-tooltip": "3.6.1",
"redux": "3.7.2",
"redux-logger": "3.0.6",
"redux-mock-store": "1.5.1",
"redux-raven-middleware": "1.2.0",
"redux-thunk": "2.3.0",
"url-polyfill": "1.0.13",
"webpack-node-externals": "1.7.2"
},
"eslintConfig": {
"extends": [
"standard",
"standard-react",
"prettier",
"prettier/react",
"prettier/standard"
],
"plugins": [
"react",
"prettier",
"standard"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"prettier/prettier": "error",
"react/prop-types": [
2,
{
"skipUndeclared": true
}
],
"react/jsx-no-bind": 1,
"camelcase": "off"
},
"env": {
"browser": true,
"jest": true
}
},
"prettier": {
"semi": false,
"singleQuote": true
},
"lint-staged": {
"{src,test}/**/*.{js,jsx}": [
"prettier --write",
"git add"
]
}
}