|
3 | 3 | "version": "4.1.0", |
4 | 4 | "description": "ReactJS Powered Presentation Framework", |
5 | 5 | "main": "lib/index.js", |
| 6 | + "module": "es/index.js", |
| 7 | + "jsnext:main": "es/index.js", |
6 | 8 | "scripts": { |
7 | 9 | "preversion": "npm run test && npm run lint", |
8 | 10 | "version": "npm run build:publish", |
9 | 11 | "clean:lib": "rimraf lib", |
10 | 12 | "clean:dist": "rimraf dist", |
11 | 13 | "clean": "npm run clean:lib && npm run clean:dist", |
12 | | - "build:lib": "cross-env NODE_ENV=production babel src -d lib --copy-files && rimraf 'lib/**/__snapshots__' 'lib/**/*.test.js'", |
13 | | - "build:dist": "cross-env NODE_ENV=production webpack --config webpack.config.production.js", |
14 | | - "build:dist-umd": "webpack --config webpack.config.umd.js", |
15 | | - "build:dist-umd-prod": "cross-env NODE_ENV=production webpack --config webpack.config.umd.production.js", |
16 | | - "build:publish": "npm run clean && npm run build:lib && npm run build:dist-umd && npm run build:dist-umd-prod", |
17 | | - "lint": "eslint src *.js", |
| 14 | + "build-babel": "babel src --ignore \"/__snapshots__/,/**/*.test.js/\"", |
| 15 | + "build:es": "builder run --env \"{\\\"BABEL_ENV\\\":\\\"esm\\\"}\" build-babel -- -d es", |
| 16 | + "build:lib": "builder run build-babel -- -d lib", |
| 17 | + "build-webpack": "webpack", |
| 18 | + "build:dist": "builder run build-webpack --env \"{\\\"NODE_ENV\\\":\\\"production\\\"}\" -- --config webpack.config.production.js", |
| 19 | + "build:dist-umd": "builder run build-webpack -- --config webpack.config.umd.js", |
| 20 | + "build:dist-umd-prod": "builder run build-webpack --env \"{\\\"NODE_ENV\\\":\\\"production\\\"}\" -- --config webpack.config.umd.production.js", |
| 21 | + "build": "builder concurrent --buffer build:es build:lib build:dist build:dist-umd build:dist-umd-prod", |
| 22 | + "build:publish": "npm run clean && npm run build", |
| 23 | + "lint": "eslint src example *.js", |
18 | 24 | "deploy": "npm run build:dist && surge -p .", |
19 | 25 | "start": "node server.js", |
20 | 26 | "test": "jest --verbose", |
21 | | - "test-debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand" |
| 27 | + "test-debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand", |
| 28 | + "check": "npm run lint && npm run test" |
22 | 29 | }, |
23 | 30 | "author": "", |
24 | 31 | "license": "MIT", |
|
50 | 57 | "react-dom": "^16.0.0" |
51 | 58 | }, |
52 | 59 | "devDependencies": { |
53 | | - "babel-cli": "^6.24.1", |
54 | | - "babel-core": "^6.24.1", |
| 60 | + "@babel/cli": "^7.0.0-beta.42", |
| 61 | + "@babel/core": "^7.0.0-beta.42", |
| 62 | + "@babel/plugin-proposal-class-properties": "^7.0.0-beta.42", |
| 63 | + "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.42", |
| 64 | + "@babel/polyfill": "^7.0.0-beta.42", |
| 65 | + "@babel/preset-env": "^7.0.0-beta.42", |
| 66 | + "@babel/preset-react": "^7.0.0-beta.42", |
55 | 67 | "babel-eslint": "^7.2.3", |
56 | | - "babel-jest": "^20.0.3", |
| 68 | + "babel-jest": "^22.1.0", |
57 | 69 | "babel-loader": "^7.0.0", |
58 | | - "babel-plugin-emotion": "^8.0.6", |
59 | | - "babel-plugin-react-transform": "^2.0.0-beta1", |
60 | | - "babel-plugin-transform-decorators-legacy": "^1.2.0", |
61 | | - "babel-plugin-transform-react-constant-elements": "^6.23.0", |
62 | | - "babel-plugin-transform-react-inline-elements": "^6.22.0", |
63 | | - "babel-plugin-transform-react-remove-prop-types": "^0.4.5", |
64 | | - "babel-plugin-transform-runtime": "^6.23.0", |
65 | | - "babel-polyfill": "^6.23.0", |
66 | | - "babel-preset-es2015": "^6.24.1", |
67 | | - "babel-preset-react": "^6.24.1", |
68 | | - "babel-preset-stage-0": "^6.24.1", |
69 | | - "babel-runtime": "^6.23.0", |
70 | | - "cross-env": "^5.0.0", |
| 70 | + "babel-plugin-emotion": "^9.0.1", |
| 71 | + "builder": "^4.0.0", |
71 | 72 | "css-loader": "^0.28.2", |
72 | 73 | "enzyme": "^3.1.0", |
73 | 74 | "enzyme-adapter-react-16": "^1.0.1", |
|
79 | 80 | "eslint-plugin-react": "^7.0.1", |
80 | 81 | "express": "^4.15.3", |
81 | 82 | "file-loader": "^0.11.1", |
82 | | - "jest": "^20.0.4", |
| 83 | + "jest": "^22.4.2", |
83 | 84 | "jest-serializer-enzyme": "^1.0.0", |
84 | 85 | "node-libs-browser": "^2.0.0", |
85 | 86 | "prop-types": "^15.5.10", |
86 | 87 | "raw-loader": "^0.5.1", |
87 | 88 | "react": "^16.0.0", |
88 | 89 | "react-dom": "^16.0.0", |
89 | 90 | "react-test-renderer": "^16.0.0", |
90 | | - "react-transform-catch-errors": "^1.0.0", |
91 | | - "react-transform-hmr": "^1.0.1", |
92 | 91 | "redbox-react": "1.5.0", |
93 | 92 | "rimraf": "^2.6.1", |
94 | 93 | "style-loader": "^0.18.1", |
|
98 | 97 | "webpack-dev-middleware": "^1.10.2", |
99 | 98 | "webpack-hot-middleware": "^2.18.0" |
100 | 99 | }, |
| 100 | + "resolutions": { |
| 101 | + "babel-core": "^7.0.0-beta.42" |
| 102 | + }, |
101 | 103 | "jest": { |
102 | 104 | "moduleNameMapper": { |
103 | 105 | "\\.(css)$": "<rootDir>/__mocks__/styleMock.js" |
|
0 commit comments