|
10 | 10 | "bugs": { |
11 | 11 | "url": "https://github.com/plotly/react-cytoscapejs/issues" |
12 | 12 | }, |
| 13 | + "amdName": "ReactCytoscape", |
| 14 | + "exports": "./dist/react-cytoscape.modern.js", |
| 15 | + "main": "dist/react-cytoscape.cjs.js", |
| 16 | + "module": "dist/react-cytoscape.module.js", |
| 17 | + "source": "src/index.js", |
| 18 | + "umd:main": "dist/react-cytoscape.umd.js", |
| 19 | + "unpkg": "dist/react-cytoscape.umd.js", |
13 | 20 | "homepage": "https://github.com/plotly/react-cytoscapejs", |
14 | | - "main": "./dist/react-cytoscape.js", |
15 | 21 | "scripts": { |
16 | | - "prepare": "run-s build:prod build:docgen", |
17 | | - "bundle": "webpack", |
18 | | - "build:dev": "cross-env NODE_ENV=development run-s bundle", |
19 | | - "build:prod": "cross-env NODE_ENV=production run-s bundle", |
| 22 | + "prepare": "run-s build build:docgen", |
| 23 | + "build": "microbundle --globals=react=React,cytoscape=cytoscape,prop-types=PropTypes", |
20 | 24 | "build:docgen": "react-docgen src/component.js --pretty -o dist/react-cytoscape.docgen.json", |
21 | 25 | "clean": "rimraf dist/*", |
22 | 26 | "test:eslint": "eslint src/**", |
23 | 27 | "test:eslint:fix": "eslint --fix src/**", |
24 | 28 | "test:prettier": "prettier --list-different src/**", |
25 | 29 | "test:prettier:fix": "prettier --write src/**", |
26 | | - "test:mocha": "run-s bundle test:mocha:run", |
| 30 | + "test:mocha": "run-s build test:mocha:run", |
27 | 31 | "test:mocha:run": "mocha-chrome test/index.html", |
28 | 32 | "test": "run-s test:*", |
29 | | - "watch": "cross-env NODE_ENV=development webpack --watch --config webpack.config.js", |
30 | | - "start": "run-s watch", |
31 | | - "demo": "cross-env NODE_ENV=development webpack-serve webpack.config.js --open --open-path demo.html" |
| 33 | + "watch": "microbundle watch --globals=react=React,cytoscape=cytoscape,prop-types=PropTypes", |
| 34 | + "start": "run-s watch" |
32 | 35 | }, |
33 | 36 | "peerDependencies": { |
34 | 37 | "react": ">=15.0.0" |
35 | 38 | }, |
36 | 39 | "devDependencies": { |
37 | | - "babel-core": "^6.26.0", |
38 | | - "babel-loader": "^7.1.2", |
39 | | - "babel-polyfill": "^6.9.1", |
40 | | - "babel-preset-env": "^1.6.0", |
41 | | - "babel-preset-react": "^6.24.1", |
42 | 40 | "chai": "^4.1.2", |
43 | | - "cross-env": "^5.0.0", |
44 | 41 | "eslint": "^4.6.1", |
45 | 42 | "eslint-config-standard": "^10.2.1", |
46 | 43 | "eslint-plugin-import": "^2.7.0", |
47 | 44 | "eslint-plugin-node": "^5.1.1", |
48 | 45 | "eslint-plugin-promise": "^3.5.0", |
49 | 46 | "eslint-plugin-standard": "^3.0.1", |
50 | 47 | "immutable": "^3.8.2", |
| 48 | + "microbundle": "^0.15.0", |
51 | 49 | "mocha": "^5.2.0", |
52 | 50 | "mocha-chrome": "^1.1.0", |
53 | 51 | "npm-run-all": "^4.1.1", |
54 | 52 | "prettier": "^1.13.7", |
55 | 53 | "react": "^16.4.1", |
56 | 54 | "react-docgen": "^2.21.0", |
57 | 55 | "react-dom": "^16.4.1", |
58 | | - "rimraf": "^2.6.2", |
59 | | - "webpack": "^4.15.1", |
60 | | - "webpack-cli": "^3.0.8", |
61 | | - "webpack-dev-server": "^3.9.0", |
62 | | - "webpack-serve": "^1.0.4" |
| 56 | + "rimraf": "^2.6.2" |
63 | 57 | }, |
64 | 58 | "engines": { |
65 | 59 | "node": ">=8.11.3" |
|
0 commit comments