Skip to content

Commit d217dd1

Browse files
committed
[changed] updated all deps
- new webpack config for tests only that is way simpler - removed old build files - removed unused tools folder - removed unused run-babel - updated travis to run on branches only - updated eslint to run on everything except ignore
1 parent fc3350a commit d217dd1

File tree

12 files changed

+45
-153
lines changed

12 files changed

+45
-153
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/**

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "iojs"
4+
- "4.0"
55
- "0.10"
66
- "0.12"
7+
8+
branches:
9+
only:
10+
- master
11+
12+
script:
13+
- npm run test
14+
- npm run lint
15+
- npm run build

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint no-var: 0 */
22
require("babel/register");
33

4-
var webpackConfig = require("./webpack/test.config.js");
4+
var webpackConfig = require("./webpack.config.test.js");
55
var isCI = process.env.CONTINUOUS_INTEGRATION === "true";
66

77
module.exports = function (config) {

package.json

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"lib": "lib/"
88
},
99
"scripts": {
10-
"build": "node run-babel tools/build.js",
11-
"lint": "eslint src test tools webpack karma.conf.js",
12-
"test": "karma start --single-run && npm run build",
10+
"build": "rm -rf lib && babel src --out-dir lib",
11+
"lint": "eslint ./",
12+
"test": "karma start --single-run",
1313
"test-watch": "karma start",
1414
"patch": "release patch --run",
1515
"minor": "release minor --run",
@@ -36,39 +36,36 @@
3636
"react": ">=0.14"
3737
},
3838
"devDependencies": {
39-
"babel": "~5.8.21",
39+
"babel": "~5.8.21",
4040
"babel-core": "~5.8.22",
41-
"babel-eslint": "~4.0.8",
41+
"babel-eslint": "~4.1.3",
4242
"babel-loader": "~5.3.2",
43-
"chai": "~3.2.0",
43+
"chai": "~3.3.0",
4444
"child-process-promise": "~1.1.0",
4545
"colors": "~1.1.0",
4646
"es5-shim": "~4.1.3",
47-
"eslint": "~1.1.0",
48-
"eslint-config-defaults": "~4.0.1",
49-
"eslint-plugin-react": "~3.2.3",
50-
"fs-promise": "~0.3.1",
47+
"eslint": "~1.6.0",
48+
"eslint-config-defaults": "~7.0.1",
49+
"eslint-plugin-react": "~3.5.1",
5150
"karma": "~0.13.9",
5251
"karma-chai": "~0.1.0",
5352
"karma-chrome-launcher": "~0.2.0",
5453
"karma-cli": "~0.1.0",
5554
"karma-mocha": "~0.2.0",
5655
"karma-mocha-reporter": "~1.1.1",
57-
"karma-phantomjs-launcher": "~0.2.1",
56+
"karma-phantomjs-launcher": "^0.2.1",
5857
"karma-sourcemap-loader": "~0.3.5",
5958
"karma-webpack": "~1.7.0",
60-
"lodash": "~3.10.1",
61-
"mocha": "~2.2.5",
59+
"mocha": "~2.3.3",
6260
"mt-changelog": "^0.6.2",
6361
"phantomjs": "^1.9.18",
6462
"react": "~0.14.0",
6563
"react-dom": "~0.14.0",
66-
"webpack": "~1.11.0",
67-
"yargs": "~3.19.0"
6864
"release-script": "^0.5.3",
65+
"webpack": "~1.12.2"
6966
},
7067
"dependencies": {
7168
"babel-runtime": "^5.8.0",
72-
"react-async-script": "~0.4.0"
69+
"react-async-script": "~0.5.0"
7370
}
7471
}

run-babel

Lines changed: 0 additions & 9 deletions
This file was deleted.

tools/build.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

tools/lib/build.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

webpack.config.test.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { DefinePlugin } from "webpack";
2+
export default {
3+
output: {
4+
pathinfo: true,
5+
},
6+
devtool: "inline-source-map",
7+
8+
module: {
9+
loaders: [
10+
{ test: /\.js/, loader: "babel", exclude: /node_modules/ },
11+
],
12+
},
13+
plugins: [
14+
new DefinePlugin({
15+
"process.env": {
16+
NODE_ENV: JSON.stringify("production"),
17+
},
18+
}),
19+
],
20+
};

webpack/strategies/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

webpack/strategies/test.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)