Skip to content

Commit 5c0d75b

Browse files
committed
0.1.7
- uses babel-preset-env instead of babel-preset-es2015 - updates webpack and babel - uses babel-minify-webpack-plugin to minify es6
1 parent 8d227fe commit 5c0d75b

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

CHANGELOG.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
# 0.1.6 (10/17/2017)
1+
# 0.1.7 (10/18/2017)
2+
3+
- uses babel-preset-env instead of babel-preset-es2015
4+
- updates webpack and babel
5+
- uses babel-minify-webpack-plugin to minify es6
6+
7+
# 0.1.6 (10/11/2017)
28

39
- fixes a styling issue when trying to display an assertion without a parent as the first item in the list
410

5-
# 0.1.5 (10/17/2017)
11+
# 0.1.5 (10/11/2017)
612

713
- moves font-awesome to dependencies
814

9-
# 0.1.4 (10/17/2017)
15+
# 0.1.4 (10/11/2017)
1016

1117
- updates dependencies
1218

docs/example/index.html

+5-1
Large diffs are not rendered by default.

lib/generate.js

+6-16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const MemoryFileSystem = require('memory-fs');
55
const HtmlWebpackPlugin = require('html-webpack-plugin');
66
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
77

8+
const BabiliPlugin = require('babel-minify-webpack-plugin');
9+
810
module.exports = (report, outfile) => {
911
// this should be configurable
1012
const output = path.dirname(outfile) || process.cwd();
@@ -33,7 +35,7 @@ module.exports = (report, outfile) => {
3335
use: {
3436
loader: 'babel-loader',
3537
options: {
36-
presets: ['es2015', 'react']
38+
presets: ['env', 'react']
3739
}
3840
}
3941
},
@@ -56,27 +58,15 @@ module.exports = (report, outfile) => {
5658
modules: [path.resolve(__dirname, 'node_modules'), 'node_modules']
5759
},
5860
plugins: [
61+
new webpack.HotModuleReplacementPlugin(),
62+
new webpack.optimize.AggressiveMergingPlugin(),
63+
new BabiliPlugin(),
5964
new webpack.DefinePlugin({
6065
'process.env': {
6166
'NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production')
6267
},
6368
report: JSON.stringify(report)
6469
}),
65-
new webpack.HotModuleReplacementPlugin(),
66-
new webpack.optimize.UglifyJsPlugin({
67-
comments: false,
68-
compress: {
69-
unused: true,
70-
dead_code: true,
71-
warnings: false,
72-
drop_debugger: true,
73-
conditionals: true,
74-
evaluate: true,
75-
sequences: true,
76-
booleans: true,
77-
}
78-
}),
79-
new webpack.optimize.AggressiveMergingPlugin(),
8070
new HtmlWebpackPlugin({
8171
filename: outfile || `${output}/tap-html.html`,
8272
inlineSource: '.(js|css|eot|woff2|woff|ttf|svg)$',

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tap-html",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "📊 an html tap reporter",
55
"author": "Gabriel J. Csapo <[email protected]>",
66
"license": "ISC",
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"babel-core": "^6.24.1",
2929
"babel-loader": "^7.1.1",
30-
"babel-preset-es2015": "^6.24.1",
30+
"babel-preset-env": "^1.6.1",
3131
"babel-preset-react": "^6.24.1",
3232
"commander": "^2.11.0",
3333
"css-loader": "^0.28.4",
@@ -45,11 +45,12 @@
4545
"tap-parser": "^6.0.1",
4646
"through2": "^2.0.3",
4747
"url-loader": "^0.6.2",
48-
"webpack": "^3.7.1"
48+
"webpack": "^3.8.1"
4949
},
5050
"devDependencies": {
5151
"@storybook/react": "^3.2.12",
52-
"eslint": "^4.8.0",
52+
"babel-minify-webpack-plugin": "^0.2.0",
53+
"eslint": "^4.9.0",
5354
"eslint-plugin-react": "^7.4.0",
5455
"tap": "^10.7.2",
5556
"tape": "^4.6.3",

0 commit comments

Comments
 (0)