Skip to content

Commit 5700962

Browse files
author
Brecht Billiet
committed
fixed build
1 parent ffd03b8 commit 5700962

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "/",
66
"scripts": {
7-
"build": "tsd install && npm install && webpack --config webpack.build.js --bail -p --color --NODE_ENV=dev",
7+
"build": "tsd install && npm install && webpack --config webpack.build.js --bail --color --NODE_ENV=dev",
88
"start": "tsd install && npm install && webpack --config webpack.dev.js --watch --NODE_ENV=dev",
99
"test": "karma start --NODE_ENV=test",
1010
"test:live": "karma start --auto-watch --no-single-run --NODE_ENV=dev"
@@ -47,7 +47,6 @@
4747
"url-loader": "^0.5.6",
4848
"wallaby-webpack": "0.0.7",
4949
"webpack": "^1.11.0",
50-
"webpack-closure-compiler": "^1.0.0",
5150
"webpack-dev-server": "^1.10.1",
5251
"yargs": "^3.25.0"
5352
},
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
var Tweet = (function () {
2-
function Tweet(user, content, starred) {
1+
export class Tweet {
2+
constructor(user, content, starred) {
33
this.user = user;
44
this.content = content;
55
this.starred = starred;
66
}
7-
Tweet.createInstance = function (user, content, starred) {
7+
static createInstance(user, content, starred) {
88
return new Tweet(user, content, starred);
9-
};
10-
return Tweet;
11-
})();
12-
exports.Tweet = Tweet;
13-
//# sourceMappingURL=Tweet.js.map
9+
}
10+
}

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"experimentalDecorators": true
99
},
1010
"exclude": [
11-
"node_modules"
11+
"node_modules",
12+
"dist",
13+
"dev",
14+
"reports"
1215
],
1316
"version": "1.6.2"
1417
}

webpack.make.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,18 @@ module.exports = function makeWebpackConfig(options) {
7878
config.plugins.push(new HtmlWebpackPlugin({
7979
template: './src/modules/app/index.html',
8080
inject: 'body',
81-
minify: options.BUILD,
8281
hash: true
8382
}));
8483
}
8584
if (options.BUILD) {
8685
config.plugins.push(new HtmlWebpackPlugin({
8786
template: './src/modules/app/index.html',
8887
inject: 'body',
89-
minify: options.BUILD,
9088
hash: true
9189
}));
9290
config.plugins.push(new webpack.NoErrorsPlugin(),
9391
// Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
9492
// Minify all javascript, switch loaders to minimizing mode
95-
new ClosureCompilerPlugin(),
96-
new webpack.optimize.UglifyJsPlugin({
97-
output: {comments: false}
98-
}),
9993
new webpack.optimize.DedupePlugin(),
10094
new webpack.optimize.OccurenceOrderPlugin(true),
10195
new CompressionPlugin({

0 commit comments

Comments
 (0)