better support of es modules

This commit is contained in:
Camel Aissani 2017-05-26 14:25:37 +02:00
parent f90743d4cf
commit 79062fe337
5 changed files with 16 additions and 17 deletions

View File

@ -4,7 +4,7 @@
[![Code Climate](https://codeclimate.com/github/camelaissani/frontexpress/badges/gpa.svg)](https://codeclimate.com/github/camelaissani/frontexpress)
[![Coverage Status](https://coveralls.io/repos/github/camelaissani/frontexpress/badge.svg?branch=master)](https://coveralls.io/github/camelaissani/frontexpress?branch=master)
![dependencies](https://img.shields.io/gemnasium/mathiasbynens/he.svg)
![Size Shield](https://img.shields.io/badge/size-2.86kb-brightgreen.svg)
![Size Shield](https://img.shields.io/badge/size-2.84kb-brightgreen.svg)
Frontexpress manages routes in browser like [ExpressJS](http://expressjs.com/) does on Node.

2
frontexpress.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
"version": "1.0.1",
"description": "Frontexpress manages routes in browser like ExpressJS on Node",
"main": "dist/frontexpress.js",
"jsnext:main": "lib/frontexpress.js",
"scripts": {
"lint": "eslint .",
"only-test": "mocha --compilers js:babel-core/register",
@ -48,8 +49,14 @@
"rimraf": "^2.5.4",
"rollup": "^0.38.3",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-uglify": "^1.0.1",
"sinon": "^1.17.6",
"uglify-js": "github:mishoo/UglifyJS2#harmony"
}
"rollup-plugin-uglify-es": "0.0.1",
"sinon": "^1.17.6"
},
"files": [
"lib/",
"dist/",
"docs/",
"README.md",
"LICENCE"
]
}

View File

@ -1,5 +1,4 @@
import uglify from 'rollup-plugin-uglify';
import { minify } from 'uglify-js';
import uglify from 'rollup-plugin-uglify-es';
import babel from 'rollup-plugin-babel';
export default {
@ -13,13 +12,6 @@ export default {
babelrc: false,
presets: ['es2015-rollup']
}),
uglify({
compress: {
warnings: false,
},
output: {
comments: false
}
}, minify)
uglify()
]
};