Skip to content

Commit 05e0915

Browse files
author
Charles King
committed
feat(repo): switch to prop-types
Switch to use new prop-types package
1 parent 78da269 commit 05e0915

File tree

6 files changed

+126
-106
lines changed

6 files changed

+126
-106
lines changed

example/src/basic_sequence.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export default class BasicSequence extends Component {
8585
It really does!
8686
</Animatable.div>
8787
</AnimationSequence>
88-
8988
</div>
9089
</div>;
9190
}

package.json

Lines changed: 102 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,108 @@
11
{
2-
"name": "react-web-animation",
3-
"version": "0.0.0-development",
4-
"main": "./lib/index.js",
5-
"repository": {
6-
"type": "git",
7-
"url": "https://github.com/RinconStrategies/react-web-animation.git"
8-
},
9-
"keywords": [
10-
"react",
11-
"animation",
12-
"web-animations-api"
2+
"name": "react-web-animation",
3+
"version": "0.0.0-development",
4+
"main": "./lib/index.js",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/RinconStrategies/react-web-animation.git"
8+
},
9+
"keywords": [
10+
"react",
11+
"animation",
12+
"web-animations-api"
13+
],
14+
"files": [
15+
"dist",
16+
"lib",
17+
"src"
18+
],
19+
"author": "Charles King <charlie@rinconstrategies.io> (http://github.com/bringking)",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/RinconStrategies/react-web-animation/issues"
23+
},
24+
"homepage": "https://github.com/RinconStrategies/react-web-animation",
25+
"scripts": {
26+
"lint": "eslint src test",
27+
"test": "NODE_ENV=test jest --coverage --no-cache",
28+
"build:lib": "babel src --out-dir lib",
29+
"build:umd": "cross-env NODE_ENV=development webpack src/index.js dist/react-web-animation.js",
30+
"build:umd:min": "cross-env NODE_ENV=production webpack src/index.js dist/react-web-animation.min.js",
31+
"build:all": "yarn build:lib && yarn build:umd && yarn build:umd:min",
32+
"semantic-release": "semantic-release pre && yarn build:all && npm publish && semantic-release post"
33+
},
34+
"devDependencies": {
35+
"babel-cli": "^6.8.0",
36+
"babel-core": "^6.8.0",
37+
"babel-eslint": "^7.2.0",
38+
"babel-jest": "^18.0.0",
39+
"babel-loader": "^6.2.3",
40+
"babel-plugin-lodash": "^3.2.11",
41+
"babel-plugin-transform-object-rest-spread": "^6.23.0",
42+
"babel-preset-es2015": "^6.5.0",
43+
"babel-preset-react": "^6.5.0",
44+
"chai": "*",
45+
"cross-env": "^3.2.4",
46+
"cz-customizable": "^4.0.0",
47+
"enzyme": "^2.0.0",
48+
"eslint": "3.18.0",
49+
"eslint-plugin-react": "^6.9.0",
50+
"jest": "^19.0.2",
51+
"jest-cli": "^18.0.0",
52+
"lodash-webpack-plugin": "^0.11.2",
53+
"react": ">=15.1.0",
54+
"react-addons-test-utils": ">=15.1.0",
55+
"react-dom": ">=15.1.0",
56+
"semantic-release": "^6.3.2",
57+
"source-map": "^0.5.4",
58+
"webpack": "^2.3.1"
59+
},
60+
"jest": {
61+
"collectCoverageFrom": [
62+
"src/**/!(*.test).js"
1363
],
14-
"files": [
15-
"dist",
16-
"lib",
17-
"src"
64+
"coveragePathIgnorePatterns": [
65+
"<rootDir>/node_modules/",
66+
"dist/",
67+
"lib/"
1868
],
19-
"author": "Charles King <charlie@rinconstrategies.io> (http://github.com/bringking)",
20-
"license": "MIT",
21-
"bugs": {
22-
"url": "https://github.com/RinconStrategies/react-web-animation/issues"
23-
},
24-
"homepage": "https://github.com/RinconStrategies/react-web-animation",
25-
"scripts": {
26-
"lint": "eslint src test",
27-
"test": "NODE_ENV=test jest --coverage --no-cache",
28-
"build:lib": "babel src --out-dir lib",
29-
"build:umd": "cross-env NODE_ENV=development webpack src/index.js dist/react-web-animation.js",
30-
"build:umd:min": "cross-env NODE_ENV=production webpack src/index.js dist/react-web-animation.min.js",
31-
"build:all": "yarn build:lib && yarn build:umd && yarn build:umd:min",
32-
"semantic-release": "semantic-release pre && yarn build:all && npm publish && semantic-release post"
33-
},
34-
"devDependencies": {
35-
"babel-cli": "^6.8.0",
36-
"babel-core": "^6.8.0",
37-
"babel-eslint": "^7.2.0",
38-
"babel-loader": "^6.2.3",
39-
"babel-plugin-lodash": "^3.2.11",
40-
"babel-preset-es2015": "^6.5.0",
41-
"babel-preset-react": "^6.5.0",
42-
"babel-plugin-transform-object-rest-spread": "^6.23.0",
43-
"chai": "*",
44-
"cross-env": "^3.2.4",
45-
"cz-customizable": "^4.0.0",
46-
"eslint-plugin-react": "^6.9.0",
47-
"babel-jest": "^18.0.0",
48-
"jest": "^19.0.2",
49-
"jest-cli": "^18.0.0",
50-
"enzyme": "^2.0.0",
51-
"eslint": "3.18.0",
52-
"lodash-webpack-plugin": "^0.11.2",
53-
"react": ">=15.1.0",
54-
"react-addons-test-utils": ">=15.1.0",
55-
"react-dom": ">=15.1.0",
56-
"semantic-release": "^6.3.2",
57-
"source-map": "^0.5.4",
58-
"webpack": "^2.3.1"
59-
},
60-
"jest": {
61-
"collectCoverageFrom": [
62-
"src/**/!(*.test).js"
63-
],
64-
"coveragePathIgnorePatterns": [
65-
"<rootDir>/node_modules/",
66-
"dist/",
67-
"lib/"
68-
],
69-
"moduleFileExtensions": [
70-
"js",
71-
"jsx",
72-
"json"
73-
],
74-
"transform": {
75-
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
76-
}
77-
},
78-
"release": {
79-
"analyzeCommits": {
80-
"path": "./release/analyze-commits.js",
81-
"minorTypes": [
82-
"fix",
83-
"feat"
84-
],
85-
"patchTypes": [
86-
"refactor",
87-
"docs"
88-
]
89-
}
90-
},
91-
"config": {
92-
"commitizen": {
93-
"path": "node_modules/cz-customizable"
94-
},
95-
"cz-customizable": {
96-
"config": ".cz-config.js"
97-
}
98-
},
99-
"peerDependencies": {
100-
"react": ">=0.14.0 <16.0.0",
101-
"react-dom": ">=0.14.0 <16.0.0"
69+
"moduleFileExtensions": [
70+
"js",
71+
"jsx",
72+
"json"
73+
],
74+
"transform": {
75+
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
76+
}
77+
},
78+
"release": {
79+
"analyzeCommits": {
80+
"path": "./release/analyze-commits.js",
81+
"minorTypes": [
82+
"fix",
83+
"feat"
84+
],
85+
"patchTypes": [
86+
"refactor",
87+
"docs"
88+
]
89+
}
90+
},
91+
"config": {
92+
"commitizen": {
93+
"path": "node_modules/cz-customizable"
10294
},
103-
"dependencies": {
104-
"lodash": "^4.17.4",
105-
"shortid": "^2.2.4"
95+
"cz-customizable": {
96+
"config": ".cz-config.js"
10697
}
98+
},
99+
"peerDependencies": {
100+
"react": ">=0.14.0 <16.0.0",
101+
"react-dom": ">=0.14.0 <16.0.0",
102+
"prop-types": "^15.5.6"
103+
},
104+
"dependencies": {
105+
"lodash": "^4.17.4",
106+
"shortid": "^2.2.4"
107+
}
107108
}

src/animation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Children, PropTypes } from 'react';
1+
import React, { Children } from 'react';
2+
import PropTypes from 'prop-types';
23
import Animatable from './animatable';
34
import playable from './mixins/playable';
45

src/effect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint no-unused-vars:0*/
2-
import React, { Component, Children, PropTypes } from 'react';
3-
import Animatable from './animatable';
2+
import React, { Component, Children } from 'react';
3+
import PropTypes from 'prop-types';
44
import playable from './mixins/playable';
55

66
const _assign = require('lodash/assign');

src/utils/with_hoc_elements.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* global it, expect, describe */
2-
import { PropTypes, Component } from 'react';
2+
import { Component } from 'react';
3+
import PropTypes from 'prop-types';
34
import withHocElements from './with_hoc_elements';
45
import domElements from './dom_elements';
56

yarn.lock

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,6 +1907,18 @@ fbjs@^0.8.1, fbjs@^0.8.4:
19071907
setimmediate "^1.0.5"
19081908
ua-parser-js "^0.7.9"
19091909

1910+
fbjs@^0.8.9:
1911+
version "0.8.12"
1912+
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04"
1913+
dependencies:
1914+
core-js "^1.0.0"
1915+
isomorphic-fetch "^2.1.1"
1916+
loose-envify "^1.0.0"
1917+
object-assign "^4.1.0"
1918+
promise "^7.1.1"
1919+
setimmediate "^1.0.5"
1920+
ua-parser-js "^0.7.9"
1921+
19101922
figures@^1.3.5:
19111923
version "1.7.0"
19121924
resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
@@ -4009,6 +4021,12 @@ promise@^7.1.1:
40094021
dependencies:
40104022
asap "~2.0.3"
40114023

4024+
prop-types:
4025+
version "15.5.6"
4026+
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.6.tgz#797a915b1714b645ebb7c5d6cc690346205bd2aa"
4027+
dependencies:
4028+
fbjs "^0.8.9"
4029+
40124030
proto-list@~1.2.1:
40134031
version "1.2.4"
40144032
resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"

0 commit comments

Comments
 (0)