Skip to content

Commit

Permalink
0.1.7
Browse files Browse the repository at this point in the history
- uses babel-preset-env instead of babel-preset-es2015
- updates webpack and babel
- uses babel-minify-webpack-plugin to minify es6
  • Loading branch information
gabrielcsapo committed Oct 19, 2017
1 parent 8d227fe commit 5c0d75b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# 0.1.6 (10/17/2017)
# 0.1.7 (10/18/2017)

- uses babel-preset-env instead of babel-preset-es2015
- updates webpack and babel
- uses babel-minify-webpack-plugin to minify es6

# 0.1.6 (10/11/2017)

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

# 0.1.5 (10/17/2017)
# 0.1.5 (10/11/2017)

- moves font-awesome to dependencies

# 0.1.4 (10/17/2017)
# 0.1.4 (10/11/2017)

- updates dependencies

Expand Down
6 changes: 5 additions & 1 deletion docs/example/index.html

Large diffs are not rendered by default.

22 changes: 6 additions & 16 deletions lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const MemoryFileSystem = require('memory-fs');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');

const BabiliPlugin = require('babel-minify-webpack-plugin');

module.exports = (report, outfile) => {
// this should be configurable
const output = path.dirname(outfile) || process.cwd();
Expand Down Expand Up @@ -33,7 +35,7 @@ module.exports = (report, outfile) => {
use: {
loader: 'babel-loader',
options: {
presets: ['es2015', 'react']
presets: ['env', 'react']
}
}
},
Expand All @@ -56,27 +58,15 @@ module.exports = (report, outfile) => {
modules: [path.resolve(__dirname, 'node_modules'), 'node_modules']
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.optimize.AggressiveMergingPlugin(),
new BabiliPlugin(),
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production')
},
report: JSON.stringify(report)
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.optimize.UglifyJsPlugin({
comments: false,
compress: {
unused: true,
dead_code: true,
warnings: false,
drop_debugger: true,
conditionals: true,
evaluate: true,
sequences: true,
booleans: true,
}
}),
new webpack.optimize.AggressiveMergingPlugin(),
new HtmlWebpackPlugin({
filename: outfile || `${output}/tap-html.html`,
inlineSource: '.(js|css|eot|woff2|woff|ttf|svg)$',
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tap-html",
"version": "0.1.6",
"version": "0.1.7",
"description": "📊 an html tap reporter",
"author": "Gabriel J. Csapo <[email protected]>",
"license": "ISC",
Expand All @@ -27,7 +27,7 @@
"dependencies": {
"babel-core": "^6.24.1",
"babel-loader": "^7.1.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"commander": "^2.11.0",
"css-loader": "^0.28.4",
Expand All @@ -45,11 +45,12 @@
"tap-parser": "^6.0.1",
"through2": "^2.0.3",
"url-loader": "^0.6.2",
"webpack": "^3.7.1"
"webpack": "^3.8.1"
},
"devDependencies": {
"@storybook/react": "^3.2.12",
"eslint": "^4.8.0",
"babel-minify-webpack-plugin": "^0.2.0",
"eslint": "^4.9.0",
"eslint-plugin-react": "^7.4.0",
"tap": "^10.7.2",
"tape": "^4.6.3",
Expand Down

0 comments on commit 5c0d75b

Please sign in to comment.