File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " /" ,
6
6
"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" ,
8
8
"start" : " tsd install && npm install && webpack --config webpack.dev.js --watch --NODE_ENV=dev" ,
9
9
"test" : " karma start --NODE_ENV=test" ,
10
10
"test:live" : " karma start --auto-watch --no-single-run --NODE_ENV=dev"
47
47
"url-loader" : " ^0.5.6" ,
48
48
"wallaby-webpack" : " 0.0.7" ,
49
49
"webpack" : " ^1.11.0" ,
50
- "webpack-closure-compiler" : " ^1.0.0" ,
51
50
"webpack-dev-server" : " ^1.10.1" ,
52
51
"yargs" : " ^3.25.0"
53
52
},
Original file line number Diff line number Diff line change 1
- var Tweet = ( function ( ) {
2
- function Tweet ( user , content , starred ) {
1
+ export class Tweet {
2
+ constructor ( user , content , starred ) {
3
3
this . user = user ;
4
4
this . content = content ;
5
5
this . starred = starred ;
6
6
}
7
- Tweet . createInstance = function ( user , content , starred ) {
7
+ static createInstance ( user , content , starred ) {
8
8
return new Tweet ( user , content , starred ) ;
9
- } ;
10
- return Tweet ;
11
- } ) ( ) ;
12
- exports . Tweet = Tweet ;
13
- //# sourceMappingURL=Tweet.js.map
9
+ }
10
+ }
Original file line number Diff line number Diff line change 8
8
"experimentalDecorators" : true
9
9
},
10
10
"exclude" : [
11
- " node_modules"
11
+ " node_modules" ,
12
+ " dist" ,
13
+ " dev" ,
14
+ " reports"
12
15
],
13
16
"version" : " 1.6.2"
14
17
}
Original file line number Diff line number Diff line change @@ -78,24 +78,18 @@ module.exports = function makeWebpackConfig(options) {
78
78
config . plugins . push ( new HtmlWebpackPlugin ( {
79
79
template : './src/modules/app/index.html' ,
80
80
inject : 'body' ,
81
- minify : options . BUILD ,
82
81
hash : true
83
82
} ) ) ;
84
83
}
85
84
if ( options . BUILD ) {
86
85
config . plugins . push ( new HtmlWebpackPlugin ( {
87
86
template : './src/modules/app/index.html' ,
88
87
inject : 'body' ,
89
- minify : options . BUILD ,
90
88
hash : true
91
89
} ) ) ;
92
90
config . plugins . push ( new webpack . NoErrorsPlugin ( ) ,
93
91
// Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
94
92
// Minify all javascript, switch loaders to minimizing mode
95
- new ClosureCompilerPlugin ( ) ,
96
- new webpack . optimize . UglifyJsPlugin ( {
97
- output : { comments : false }
98
- } ) ,
99
93
new webpack . optimize . DedupePlugin ( ) ,
100
94
new webpack . optimize . OccurenceOrderPlugin ( true ) ,
101
95
new CompressionPlugin ( {
You can’t perform that action at this time.
0 commit comments