-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
56 lines (56 loc) · 3.31 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
{
"name": "extension",
"version": "2.4.5",
"private": true,
"dependencies": {
"ref_name": "file:src/zeeguu-react/"
},
"scripts": {
"updateZeeguuReact": "git submodule update --remote --merge && (cd src/zeeguu-react/ && npm install)",
"installDepsWindows": "cd .\\src\\zeeguu-react && npm install && cd ..\\..\\. && mklink /d .\\node_modules .\\src\\zeeguu-react\\node_modules",
"installDeps": "(cd src/zeeguu-react/ && npm install) && ln -s src/zeeguu-react/node_modules .",
"start": "react-scripts start",
"prebuild": "rm -rf build",
"build": "npm-run-all buildUnix:* && npm-run-all build:* && rm ./build/manifest.* && cp ./public/manifest.chrome.json ./build/manifest.json",
"buildWindows": "npm-run-all buildWindows:* && npm-run-all build:* && copy .\\public\\manifest.chrome.json .\\build\\manifest.json /Y",
"buildUnix:popup": "INLINE_RUNTIME_CHUNK=false DISABLE_ESLINT_PLUGIN=true react-scripts build",
"buildWindows:popup": "SET INLINE_RUNTIME_CHUNK=false && SET DISABLE_ESLINT_PLUGIN=true && react-scripts build",
"build:content": "webpack --mode production ./src/JSInjection/main.js --output-path ./build/",
"build:bg": "webpack --mode production ./src/background/background.js --output-path ./build/ --output-filename background.js",
"build:izo": "webpack --mode production ./src/injectOnZeeguuOrg/injectOnZeeguuOrg.js --output-path ./build/ --output-filename injectOnZeeguuOrg.js",
"pub": "zip -FSr build.zip build && open https://chrome.google.com/webstore/devconsole/7f6da896-c12c-4cb3-8ad7-b1641fc8efbc/ckncjmaednfephhbpeookmknhmjjodcd/edit/package",
"buildFirefox": "npm-run-all buildUnix:* && npm-run-all build:* && rm ./build/manifest.* && cp ./public/manifest.firefox.json ./build/manifest.json",
"buildFirefoxWindows": "npm-run-all buildWindows:* && npm-run-all build:* && copy .\\public\\manifest.firefox.json .\\build\\manifest.json /Y",
"pubFirefox": "(cd build && zip -FSr ../build.zip *) && npm-run-all zipSources && open https://addons.mozilla.org/en-US/developers/addons",
"pub-ci": "(cd src && git clone -b development https://github.com/zeeguu-ecosystem/zeeguu-react.git && cd zeeguu-react && npm ci) && cp ./public/manifest.chrome.json ./build/manifest.json && npm-run-all build:* && zip -FSr build.zip build",
"pub-ci-firefox": "(cd src && git clone -b development https://github.com/zeeguu-ecosystem/zeeguu-react.git && cd zeeguu-react && npm ci) && npm run buildFirefox && zip -FSr build.zip build",
"zip-build": "(cd build && zip -FSr ../build.zip *)",
"buildZipChrome": "npm run build && npm run zip-build",
"buildZipFirefox": "npm run buildFirefox && npm run zip-build",
"zipSources": "zip -FSr zeeguu-reader-source-code.zip . -x 'build/*' 'node_modules/*' 'src/zeeguu-react/node_modules/*' 'src/zeeguu-react/build/*' '.git/*' build.zip '.idea/*'",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"npm-run-all": "^4.1.5"
}
}