|
1 | 1 | {
|
2 | 2 | "name": "react-virtualized-sticky-tree",
|
3 |
| - "version": "1.0.0", |
4 | 3 | "description": "A React component for efficiently rendering tree like structures with support for position: sticky",
|
5 |
| - "main": "index.js", |
| 4 | + "version": "1.0.0", |
| 5 | + "author": "Marc McIntyre <marchaos@gmail.com>", |
| 6 | + "license": "MIT", |
| 7 | + "main": "dist/commonjs/index.js", |
| 8 | + "module": "dist/es/index.js", |
| 9 | + "homepage": "https://github.com/marchaos/react-virtualized-sticky-tree#readme", |
6 | 10 | "repository": {
|
7 | 11 | "type": "git",
|
8 |
| - "url": "git+https://github.com/marchaos/react-virtualized-sticky-tree.git" |
| 12 | + "url": "https://github.com/marchaos/react-virtualized-sticky-tree.git" |
9 | 13 | },
|
10 | 14 | "keywords": [
|
11 | 15 | "react",
|
|
14 | 18 | "position",
|
15 | 19 | "sticky"
|
16 | 20 | ],
|
17 |
| - "author": "Marc McIntyre <marchaos@gmail.com>", |
18 |
| - "license": "MIT", |
| 21 | + "scripts": { |
| 22 | + "build": "npm run build:commonjs && npm run build:es", |
| 23 | + "build:commonjs": "npm run clean:commonjs && cross-env NODE_ENV=production cross-env BABEL_ENV=commonjs babel src --out-dir dist/commonjs --ignore *.spec.js", |
| 24 | + "build:es": "npm run clean:es && cross-env NODE_ENV=production cross-env BABEL_ENV=es babel src --out-dir dist/es --ignore *.spec.js", |
| 25 | + "prepublish": "npm run build", |
| 26 | + "clean:commonjs": "rimraf dist/commonjs", |
| 27 | + "clean:es": "rimraf dist/es" |
| 28 | + }, |
| 29 | + "files": [ |
| 30 | + "dist" |
| 31 | + ], |
19 | 32 | "bugs": {
|
20 | 33 | "url": "https://github.com/marchaos/react-virtualized-sticky-tree/issues"
|
21 | 34 | },
|
22 |
| - "homepage": "https://github.com/marchaos/react-virtualized-sticky-tree#readme", |
23 | 35 | "peerDependencies": {
|
24 | 36 | "react": "^15.6.1"
|
| 37 | + }, |
| 38 | + "devDependencies": { |
| 39 | + "webpack": "latest", |
| 40 | + "babel-cli": "6.8.0", |
| 41 | + "babel-core": "latest", |
| 42 | + "babel-loader": "latest", |
| 43 | + "cross-env": "latest", |
| 44 | + "rimraf": "latest", |
| 45 | + "babel-plugin-transform-decorators-legacy": "^1.3.4", |
| 46 | + "babel-plugin-transform-react-constant-elements": "latest", |
| 47 | + "babel-plugin-transform-react-inline-elements": "latest", |
| 48 | + "babel-plugin-transform-react-remove-prop-types": "latest", |
| 49 | + "babel-polyfill": "^6.13.0", |
| 50 | + "babel-preset-airbnb": "^2.0.0", |
| 51 | + "babel-preset-es2015": "latest", |
| 52 | + "babel-preset-react": "latest", |
| 53 | + "babel-preset-stage-0": "latest", |
| 54 | + "babel-register": "^6.18.0", |
| 55 | + "chai": "^3.5.0", |
| 56 | + "chai-enzyme": "latest", |
| 57 | + "enzyme": "latest", |
| 58 | + "eslint": "^3.19.0", |
| 59 | + "eslint-config-airbnb": "latest", |
| 60 | + "eslint-plugin-import": "^2.2.0", |
| 61 | + "eslint-plugin-jsx-a11y": "^5.0.0", |
| 62 | + "eslint-plugin-react": "^7.0.0", |
| 63 | + "jsdom": "10.1.0", |
| 64 | + "jsdom-global": "latest", |
| 65 | + "json-loader": "^0.5.4", |
| 66 | + "mocha": "^3.4.2", |
| 67 | + "nyc": "^8.3.1", |
| 68 | + "testdouble": "^1.8.0" |
25 | 69 | }
|
26 | 70 | }
|
0 commit comments