-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
85 lines (85 loc) · 3.43 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
{
"name": "rollup-react-example",
"version": "1.1.0",
"description": "An example React application using rollup, with ES modules, dynamic imports, and Flow.",
"main": "public/index.html",
"scripts": {
"build": "run-s buildrollup workbox",
"builddev": "run-s buildrollupdev workbox",
"buildrollup": "npm-run-all --parallel \"buildrollup:*\"",
"buildrollup:legacy": "env ROLLUP_BUILD_TYPE=\"legacy\" rollup -c --prod --mini",
"buildrollup:modern": "env ROLLUP_BUILD_TYPE=\"modern\" rollup -c --prod --mini",
"buildrollupdev": "npm-run-all --parallel \"buildrollupdev:*\"",
"buildrollupdev:legacy": "env ROLLUP_BUILD_TYPE=\"legacy\" rollup -c --mini",
"buildrollupdev:modern": "env ROLLUP_BUILD_TYPE=\"modern\" rollup -c --mini",
"workbox:modern": "workbox injectManifest workbox-config-esm.js",
"workbox:legacy": "workbox injectManifest workbox-config-system.js",
"workbox": "run-p \"workbox:*\"",
"watch": "env ROLLUP_BUILD_TYPE=\"modern\" rollup -c -w",
"serve": "serve",
"test": "run-s jest builddev testci",
"testci": "start-server-and-test serve http://localhost:5000 cypress:run",
"cypress:open": "npx cypress open",
"cypress:run": "npx cypress run",
"cypress:install": "npx cypress install",
"jest": "jest",
"pretest": "rm -rf .nyc_output || true",
"posttest": "npm run report:combined",
"mkdir:reports": "mkdir reports || true",
"precopy:reports": "npm run mkdir:reports",
"copy:reports": "cp cypress-coverage/coverage-final.json reports/from-cypress.json && cp jest-coverage/coverage-final.json reports/from-jest.json",
"precombine:reports": "npm run copy:reports && mkdir .nyc_output || true",
"combine:reports": "nyc merge reports && mv coverage.json .nyc_output/out.json",
"prereport:combined": "npm run combine:reports",
"report:combined": "nyc report --reporter lcov --reporter text --report-dir coverage"
},
"repository": {
"type": "git",
"url": "git+https://github.com/camille-hdl/rollup-react-example.git"
},
"keywords": [
"rollup"
],
"author": "Camille Hodoul <[email protected]> (http://twitter.com/Eartz_HC)",
"license": "MIT",
"bugs": {
"url": "https://github.com/camille-hdl/rollup-react-example/issues"
},
"homepage": "https://github.com/camille-hdl/rollup-react-example#readme",
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"@babel/preset-flow": "^7.13.13",
"@babel/preset-modules": "^0.1.4",
"@babel/preset-react": "^7.13.13",
"@cypress/code-coverage": "^3.9.5",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-replace": "^2.4.2",
"babel-jest": "^27.0.1",
"babel-plugin-istanbul": "^6.0.0",
"flow-bin": "^0.152.0",
"jest": "^27.0.1",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"rollup": "^2.50.3",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-clear": "^2.0.7",
"rollup-plugin-polyfill-node": "^0.6.2",
"rollup-plugin-terser": "^7.0.2",
"serve": "^11.3.2",
"start-server-and-test": "^1.12.3",
"workbox-cli": "^6.1.5"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"nyc": {
"report-dir": "cypress-coverage"
}
}