react-split-pane 0.1.75 → 0.1.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -50,4 +50,4 @@ declare class SplitPane extends React.Component<Props, State> {
50
50
  static defaultProps: Props;
51
51
  }
52
52
 
53
- export = SplitPane;
53
+ export default SplitPane;
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "react-split-pane",
3
3
  "description": "React split-pane component",
4
- "main": "index.js",
4
+ "main": "dist/index.cjs.js",
5
+ "module": "dist/index.esm.js",
6
+ "source": "src/index.js",
5
7
  "types": "index.d.ts",
6
- "version": "0.1.75",
8
+ "files": [
9
+ "dist",
10
+ "index.d.ts"
11
+ ],
12
+ "version": "0.1.82",
7
13
  "repository": {
8
14
  "type": "git",
9
15
  "url": "https://github.com/tomkp/react-split-pane"
@@ -22,52 +28,72 @@
22
28
  "es6"
23
29
  ],
24
30
  "dependencies": {
25
- "@types/inline-style-prefixer": "^3.0.0",
26
- "@types/react": "^16.0.18",
27
31
  "inline-style-prefixer": "^3.0.6",
28
32
  "prop-types": "^15.5.10",
33
+ "react-lifecycles-compat": "^3.0.4",
29
34
  "react-style-proptype": "^3.0.0"
30
35
  },
31
36
  "devDependencies": {
37
+ "@types/inline-style-prefixer": "^3.0.1",
38
+ "@types/react": "^16.0.36",
32
39
  "babel-cli": "^6.24.1",
33
- "babel-plugin-add-module-exports": "^0.2.1",
34
- "babel-plugin-transform-object-assign": "^6.22.0",
35
- "babel-preset-es2015": "^6.24.1",
40
+ "babel-eslint": "^8.2.3",
41
+ "babel-plugin-external-helpers": "^6.22.0",
42
+ "babel-preset-env": "^1.7.0",
36
43
  "babel-preset-react": "^6.24.1",
44
+ "babel-preset-stage-0": "^6.24.1",
37
45
  "babelify": "^7.3.0",
38
- "browserify": "^14.4.0",
39
46
  "chai": "^4.0.2",
40
47
  "chai-spies": "^0.7.1",
41
48
  "coveralls": "^2.13.1",
42
- "express": "^4.15.3",
43
- "mochify": "^3.3.0",
49
+ "cross-env": "^5.2.0",
50
+ "eslint": "^4.19.1",
51
+ "eslint-config-fbjs": "^2.0.1",
52
+ "eslint-config-prettier": "^2.9.0",
53
+ "eslint-config-react": "^1.1.7",
54
+ "eslint-plugin-babel": "^5.1.0",
55
+ "eslint-plugin-flowtype": "^2.49.3",
56
+ "eslint-plugin-jsx-a11y": "^6.0.3",
57
+ "eslint-plugin-prettier": "^2.6.0",
58
+ "eslint-plugin-react": "^7.9.1",
59
+ "eslint-plugin-relay": "^0.0.21",
60
+ "husky": "^0.14.3",
61
+ "lint-staged": "^7.2.0",
62
+ "mochify": "^5.8.0",
44
63
  "mochify-istanbul": "^2.4.2",
45
- "prettier": "^1.7.4",
64
+ "prettier": "^1.13.5",
46
65
  "react": "^15.6.1",
47
66
  "react-dom": "^15.6.1",
48
- "surge": "^0.19.0",
49
- "typescript": "^2.5.3",
50
- "watchify": "^3.9.0"
67
+ "rimraf": "^2.6.2",
68
+ "rollup": "^0.60.7",
69
+ "rollup-plugin-babel": "^3.0.4",
70
+ "rollup-plugin-commonjs": "^9.1.3",
71
+ "rollup-plugin-node-resolve": "^3.3.0",
72
+ "surge": "^0.19.0"
51
73
  },
52
74
  "scripts": {
53
- "compile": "babel -d lib/ src/",
54
- "compile:watch": "babel -w -d lib/ src/",
55
- "prepublish": "npm run compile",
56
- "test": "npm run compile && mochify -R spec",
57
- "test:watch": "npm run compile:watch & mochify -R spec --watch",
58
- "test:coverage": "mochify --plugin [ mochify-istanbul --exclude '**/test/**' --report lcovonly ] && cat lcov.info | coveralls && rm lcov.info",
59
- "demo": "npm run compile && browserify demo/Examples.js -d -t -o demo/bundle.js",
60
- "demo:watch": "npm run compile:watch & watchify demo/Examples.js -d -t -o demo/bundle.js",
61
- "demo:publish": "npm run compile && browserify demo/Examples.js -d -t -o demo/bundle.js && surge demo react-split-pane.surge.sh",
62
- "prettier": "prettier --single-quote --trailing-comma es5 --write './{src,test}/**/*.js'",
63
- "release:patch": "npm test && npm run compile && npm version patch && git push && npm publish"
75
+ "build": "npm run clean && rollup -c",
76
+ "build:watch": "rollup -c --watch",
77
+ "clean": "rimraf dist",
78
+ "test": "cross-env NODE_ENV=test mochify -R spec --transform babelify",
79
+ "test:watch": "cross-env NODE_ENV=test mochify -R spec --watch --transform babelify",
80
+ "test:coverage": "cross-env NODE_ENV=test mochify --plugin [ mochify-istanbul --exclude '**/test/**' --report lcovonly ] --transform babelify && cat lcov.info | coveralls && rm lcov.info",
81
+ "website:start": "npm run start --prefix website",
82
+ "website:deploy": "npm run deploy --prefix website",
83
+ "prettier": "prettier --write '{src,test}/**/*.js'",
84
+ "lint": "eslint src test",
85
+ "release:patch": "npm test && npm run build && npm version patch && git push && npm publish",
86
+ "precommit": "lint-staged"
64
87
  },
65
- "browserify": {
66
- "transform": [
67
- [
68
- "babelify"
69
- ]
88
+ "lint-staged": {
89
+ "*.js": [
90
+ "prettier --write",
91
+ "git add"
70
92
  ]
71
93
  },
72
- "false": {}
94
+ "babel": {
95
+ "presets": [
96
+ "./.babelrc.js"
97
+ ]
98
+ }
73
99
  }
package/.editorconfig DELETED
@@ -1,6 +0,0 @@
1
- # editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <includedPredefinedLibrary name="ECMAScript 6" />
5
- </component>
6
- </project>
package/.idea/misc.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptSettings">
4
- <option name="languageLevel" value="JSX" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" languageLevel="JDK_1_3" default="true" />
7
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/react-split-pane.iml" filepath="$PROJECT_DIR$/.idea/react-split-pane.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>