Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit b90588c

Browse files
committed
Update dependencies & fix build issues
1 parent 7e4081d commit b90588c

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

package.json

+16-21
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-css-transition",
3-
"version": "0.1.0-alpha.7",
4-
"description": "CSS transitions",
3+
"version": "0.2.0-beta",
4+
"description": "CSS Transition Component for React",
55
"homepage": "https://github.com/wikiwi/react-css-transition",
66
"repository": {
77
"type": "git",
@@ -19,7 +19,7 @@
1919
"main": "./cjs/index.js",
2020
"typings": "./lib/index.d.ts",
2121
"scripts": {
22-
"build": "gulp && webpack",
22+
"build": "gulp && webpack && cross-env BUILD_MINIFIED=true webpack",
2323
"clean": "rm -r -f dist lib cjs coverage",
2424
"ci:coveralls": "cat coverage/lcov.info | coveralls",
2525
"release": "npm version -m 'react-css-transition release %s'",
@@ -35,30 +35,27 @@
3535
"node": ">=4"
3636
},
3737
"keywords": [
38-
"vendor-prefix",
39-
"hoc",
40-
"context",
41-
"react"
38+
"react",
39+
"component",
40+
"transitiongroup",
41+
"transition",
42+
"animation",
43+
"tween"
4244
],
4345
"author": "Chi Vinh Le and contributors (https://github.com/wikiwi/react-css-transition/graphs/contributors)",
4446
"license": "MIT",
4547
"peerDependencies": {
4648
"react": "^0.14.0 || ^15.0.0-0"
4749
},
48-
"dependencies": {
49-
"warning": "^3.0.0"
50-
},
5150
"devDependencies": {
5251
"@typeless/warning": "^3.0.0",
5352
"@types/chai": "^3.4.34",
5453
"@types/enzyme": "^2.5.37",
5554
"@types/jsdom": "^2.0.29",
5655
"@types/mocha": "^2.2.32",
57-
"@types/object-assign": "^4.0.30",
5856
"@types/react": "^0.14.43",
59-
"@types/rewire": "^2.5.27",
6057
"@types/sinon": "^1.16.31",
61-
"awesome-typescript-loader": "^3.0.0-beta.8",
58+
"awesome-typescript-loader": "^3.0.0-beta.17",
6259
"cash-rm": "^0.2.0",
6360
"chai": "^3.5.0",
6461
"coveralls": "^2.11.14",
@@ -71,8 +68,8 @@
7168
"gulp-eslint": "^3.0.1",
7269
"gulp-jsonlint": "^1.1.2",
7370
"gulp-sourcemaps": "^2.2.0",
74-
"gulp-tslint": "^6.1.2",
75-
"gulp-typescript": "^3.0.2",
71+
"gulp-tslint": "^7.0.1",
72+
"gulp-typescript": "^3.1.3",
7673
"gulp-yaml-validate": "^1.0.2",
7774
"istanbul": "^1.1.0-alpha.1",
7875
"istanbul-instrumenter-loader": "^1.0.0",
@@ -88,15 +85,13 @@
8885
"karma-webpack": "^1.8.0",
8986
"merge2": "^1.0.2",
9087
"mocha": "^3.1.2",
91-
"object-assign": "^4.1.0",
9288
"react": "^15.3.2",
9389
"react-addons-test-utils": "^15.3.2",
9490
"react-dom": "^15.3.2",
95-
"rewire": "^2.5.2",
96-
"sinon": "^2.0.0-pre.2",
91+
"sinon": "^2.0.0-pre.4",
9792
"ts-node": "~1.2.3",
98-
"tslint": "^3.15.1",
99-
"typescript": "^2.0.6",
100-
"webpack": "^2.1.0-beta.25"
93+
"tslint": "^4.1.1",
94+
"typescript": "^2.1.4",
95+
"webpack": "^2.2.0-rc.1"
10196
}
10297
}

webpack.config.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const fs = require("fs");
44
const webpack = require("webpack");
55

6+
const useMinification = process.env.BUILD_MINIFIED === "true";
67
const packageName = JSON.parse(fs.readFileSync("package.json", "utf8")).name;
78
const libraryName = packageName.replace(/(^|-)(.)/g, (match, _, c) => (c ? c.toUpperCase() : ""));
89

@@ -46,4 +47,8 @@ const minified = Object.assign({}, config, {
4647
]),
4748
});
4849

49-
module.exports = [config, minified];
50+
// @TODO let webpack run configurations in parallel after solving:
51+
// https://github.com/s-panferov/awesome-typescript-loader/issues/323
52+
module.exports = useMinification
53+
? minified
54+
: config;

0 commit comments

Comments
 (0)