|
21 | 21 | ],
|
22 | 22 | "scripts": {
|
23 | 23 | "test": "jest --coverage --no-cache&& tsc -p test/ts",
|
24 |
| - "build": "npm run bundle && npm run minify", |
25 |
| - "bundle": "rollup -i src/index.js -o dist/router.js -f umd -mn hyperappRouter -g hyperapp:hyperapp", |
26 |
| - "minify": "uglifyjs dist/router.js -o dist/router.js -mc pure_funcs=['Object.defineProperty'] --source-map includeSources,url=router.js.map", |
| 24 | + "build": "parcel build ./src/index.js --out-dir dist --out-file router.js --global hyperappRouter --no-autoinstall", |
27 | 25 | "prepublish": "npm run build",
|
| 26 | + "prepare": "npm run build", |
28 | 27 | "format": "prettier --semi false --write '{src,test}/**/*.js'",
|
29 | 28 | "release": "npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
|
30 | 29 | },
|
31 | 30 | "babel": {
|
32 | 31 | "presets": [
|
33 |
| - "env" |
34 |
| - ], |
35 |
| - "plugins": [ |
36 | 32 | [
|
37 |
| - "transform-react-jsx", |
| 33 | + "@babel/preset-env", |
38 | 34 | {
|
39 |
| - "pragma": "h" |
| 35 | + "forceAllTransforms": true |
40 | 36 | }
|
41 | 37 | ]
|
| 38 | + ], |
| 39 | + "plugins": [ |
| 40 | + "@babel/plugin-transform-runtime" |
42 | 41 | ]
|
43 | 42 | },
|
44 | 43 | "jest": {
|
45 | 44 | "testURL": "http://localhost"
|
46 | 45 | },
|
47 | 46 | "devDependencies": {
|
| 47 | + "@babel/core": "^7.2.2", |
| 48 | + "@babel/plugin-transform-runtime": "^7.2.0", |
| 49 | + "@babel/preset-env": "^7.2.3", |
48 | 50 | "babel-jest": "^22.4.3",
|
49 |
| - "babel-plugin-transform-react-jsx": "^6.24.1", |
50 |
| - "babel-preset-env": "^1.6.1", |
51 |
| - "hyperapp": "^2.0.0", |
| 51 | + "hyperapp": "github:jorgebucaran/hyperapp#V2", |
52 | 52 | "jest": "^22.4.3",
|
53 |
| - "path-to-regexp": "^2.4.0", |
| 53 | + "parcel-bundler": "^1.11.0", |
54 | 54 | "prettier": "^1.11.1",
|
55 |
| - "rollup": "^0.57.1", |
56 |
| - "uglify-js": "^3.3.16", |
57 | 55 | "typescript": "2.8.1"
|
58 | 56 | },
|
| 57 | + "dependencies": { |
| 58 | + "path-to-regexp": "^2.4.0" |
| 59 | + }, |
59 | 60 | "peerDependencies": {
|
60 | 61 | "hyperapp": "2.0.0"
|
61 | 62 | }
|
|
0 commit comments