Skip to content

Commit ed13f5c

Browse files
Updating dependencies
1 parent 0609442 commit ed13f5c

33 files changed

+51
-28053
lines changed

gulpfile.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ gulp.task('typescript:format', () =>
6262

6363
gulp.task('typescript:lint', () =>
6464
gulp.src(TYPESCRIPT_FILES.concat(['webpack/**/*.ts']))
65-
.pipe($.tslint())
66-
.pipe($.tslint.report('verbose', {
65+
.pipe($.tslint({
66+
formatter: 'verbose',
6767
summarizeFailureOutput: true,
6868
emitError: yargs._.indexOf('dev') === -1,
6969
}))
70+
.pipe($.tslint.report())
7071
);
7172

7273
gulp.task('build:static', ['build:clean'], () =>
@@ -80,7 +81,7 @@ gulp.task('build:typescript', ['build:clean', 'build:static', 'typescript:format
8081
gulp.src(TYPESCRIPT_FILES.concat(['typings/tsd.d.ts']))
8182
.pipe($.changed(BUILD_SRC_DIR, { extension: '.js' }))
8283
.pipe($.sourcemaps.init())
83-
.pipe($.typescript(typescriptProject))
84+
.pipe(typescriptProject())
8485
.js
8586
.pipe($.sourcemaps.write({ sourceRoot: SRC_DIR }))
8687
.pipe($.print(filepath => `build:typescript ➡ ${filepath}`))
@@ -169,7 +170,7 @@ function webpackTask(configName: string, ...expectedFiles: Array<string>): Funct
169170
webpack(config, printStats(configName, stats, done));
170171
})
171172
.catch(e => console.error(e.stack));
172-
}
173+
};
173174
}
174175

175176
const statsCache = {};
@@ -199,5 +200,5 @@ function printStats(configName: string, statsOpts: Object, done: Function): Func
199200
}
200201

201202
done();
202-
}
203-
}
203+
};
204+
}

package.json

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88
"build": "NODE_ENV=production npm run lint && gulp webpack --no-color"
99
},
1010
"devDependencies": {
11+
"@types/chai": "^3.4.34",
12+
"@types/gulp": "^3.8.32",
13+
"@types/isomorphic-fetch": "0.0.31",
14+
"@types/lodash": "^4.14.43",
15+
"@types/mocha": "^2.2.33",
16+
"@types/node": "^6.0.52",
17+
"@types/react": "^0.14.55",
18+
"@types/react-redux": "^4.4.35",
19+
"@types/react-router": "^2.0.41",
20+
"@types/sinon": "^1.16.33",
21+
"@types/sinon-chai": "^2.7.27",
22+
"babel-core": "^6.20.0",
1123
"babel-loader": "^6.2.4",
1224
"babel-plugin-react-transform": "^2.0.2",
1325
"babel-plugin-static-fs": "^1.1.0",
@@ -16,9 +28,10 @@
1628
"babel-preset-react-hmre": "^1.1.1",
1729
"chai": "^3.5.0",
1830
"dustjs-linkedin": "^2.7.2",
31+
"es6-promise": "^4.0.5",
1932
"exports-loader": "^0.6.3",
2033
"express": "^4.13.4",
21-
"file-loader": "^0.8.5",
34+
"file-loader": "^0.9.0",
2235
"gulp": "^3.9.1",
2336
"gulp-bg": "^0.0.8",
2437
"gulp-changed": "^1.3.0",
@@ -27,55 +40,54 @@
2740
"gulp-exec": "^2.1.2",
2841
"gulp-print": "^2.0.1",
2942
"gulp-sourcemaps": "^1.6.0",
30-
"gulp-spawn-mocha": "^2.2.2",
43+
"gulp-spawn-mocha": "^3.1.0",
3144
"gulp-task-graph-visualizer": "^1.0.0",
3245
"gulp-tsfmt": "^1.0.2",
33-
"gulp-tslint": "^4.3.4",
34-
"gulp-typescript": "^2.13.3",
46+
"gulp-tslint": "^7.0.1",
47+
"gulp-typescript": "^3.1.3",
3548
"gulp-util": "^3.0.7",
36-
"jsdom": "^8.5.0",
37-
"jsx-chai": "^2.0.0",
49+
"jsdom": "^9.8.3",
50+
"jsx-chai": "^4.0.0",
3851
"mime": "^1.3.4",
3952
"mkdirp": "^0.5.1",
40-
"mocha": "^2.4.5",
53+
"mocha": "^3.2.0",
4154
"mocha-clean": "^1.0.0",
42-
"react-addons-test-utils": "^0.14.8",
55+
"react-addons-test-utils": "^15.4.1",
4356
"react-hot-loader": "^1.3.0",
4457
"react-transform-hmr": "^1.0.4",
4558
"redux-devtools": "^3.2.0",
4659
"redux-devtools-dock-monitor": "^1.1.1",
4760
"redux-devtools-log-monitor": "^1.0.11",
48-
"remap-istanbul": "^0.6.3",
61+
"remap-istanbul": "^0.8.0",
4962
"rimraf": "^2.5.2",
5063
"run-sequence": "^1.1.5",
5164
"sinon": "^1.17.4",
5265
"sinon-chai": "^2.8.0",
5366
"source-map-loader": "^0.1.5",
5467
"source-map-support": "^0.4.0",
55-
"ts-node": "^0.7.2",
56-
"tsd": "^0.6.5",
57-
"tslint": "^3.9.0",
58-
"typescript": "^1.8.10",
68+
"ts-node": "^1.7.2",
69+
"tslint": "^4.0.2",
70+
"typescript": "^2.1.4",
5971
"url-loader": "^0.5.7",
6072
"webpack": "^1.13.0",
6173
"webpack-dev-middleware": "^1.6.1",
6274
"webpack-hot-middleware": "^2.10.0",
6375
"webpack-manifest-plugin": "^1.0.1",
64-
"yargs": "^4.7.0"
76+
"yargs": "^6.5.0"
6577
},
6678
"dependencies": {
67-
"es6-promise": "^3.1.2",
68-
"history": "^2.1.1",
79+
"es6-promise": "^4.0.5",
80+
"history": "^4.5.0",
6981
"isomorphic-fetch": "^2.2.1",
7082
"lodash": "^4.11.2",
7183
"normalizr": "^2.0.1",
7284
"object.assign": "^4.0.3",
73-
"radium": "^0.17.1",
74-
"react": "^0.14.8",
75-
"react-dom": "^0.14.8",
85+
"radium": "^0.18.1",
86+
"react": "^15.4.1",
87+
"react-dom": "^15.4.1",
7688
"react-intl": "^2.1.2",
77-
"react-redux": "^4.4.5",
78-
"react-router": "^2.4.0",
89+
"react-redux": "^5.0.1",
90+
"react-router": "^3.0.0",
7991
"react-router-redux": "^4.0.4",
8092
"redux": "^3.5.2",
8193
"redux-thunk": "^2.0.1",

src/store/posts/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { REQUEST_POSTS, RECEIVE_POSTS, IPostsJSON, IPostsAction } from './types';
22
import { IThunk } from '../interfaces';
3-
import fetch from 'isomorphic-fetch';
3+
import * as fetch from 'isomorphic-fetch';
44

55
export function requestPosts(): IPostsAction {
66
return { type: REQUEST_POSTS };

typings/_custom/require.d.ts renamed to src/typings.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type NodeRequireCallback = {
22
(require: (path: string) => any);
3-
}
3+
};
44

55
interface NodeRequire {
66
ensure: (paths: string[], callback: NodeRequireCallback, chunkName?: string) => void;

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
"preserveConstEnums": true,
99
"removeComments": false,
1010
"sourceMap": true,
11-
"target": "es5"
11+
"target": "es6"
1212
},
1313
"exclude": [
14-
"node_modules",
1514
"build",
1615
".vscode"
1716
]

tsd.json

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

tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"class-name": true,
77
"no-internal-module": true,
8-
"no-unused-variable": [true, "react"],
98
"no-unused-expression": true,
109
"no-var-keyword": true,
1110
"no-trailing-whitespace": true,
@@ -14,4 +13,4 @@
1413
"eofline": true,
1514
"semicolon": true
1615
}
17-
}
16+
}

typings/_custom/jsx-chai.d.ts

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

typings/_custom/radium.d.ts

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

typings/assertion-error/assertion-error.d.ts

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

0 commit comments

Comments
 (0)