chore(build): move to rollup for e2e, move to es6 imports and type definitions

move to rollup for e2e, move to es6 imports and type definitions
This commit is contained in:
Dan Bucholtz
2016-09-20 01:02:39 -05:00
parent bcec66c67b
commit 4c57873c09
26 changed files with 232 additions and 441 deletions

View File

@ -1,35 +0,0 @@
var webpack = require('webpack');
module.exports = {
entry: [
"./dist/index.js"
],
output: {
path: 'dist/bundles',
filename: 'ionic.min.js',
libraryTarget: 'commonjs2'
},
externals: [
{
'angular2/core': {
commonjs2: ['angular2', 'core']
},
'angular2/common': {
commonjs2: ['angular2', 'common']
},
'angular2/http': {
commonjs2: ['angular2', 'http']
},
'angular2/platform/browser': {
commonjs2: ['angular2', 'platform', 'browser']
},
'angular2/instrumentation': {
commonjs2: ['angular2', 'instrumentation']
},
}
],
plugins:[ new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false },
sourceMap: false
})]
};

View File

@ -1,29 +0,0 @@
module.exports = {
entry: [
"./dist/index.js"
],
output: {
path: 'dist/bundles',
filename: 'ionic.js',
libraryTarget: 'commonjs2'
},
externals: [
{
'@angular/core': {
commonjs2: ['angular2', 'core']
},
'@angular/common': {
commonjs2: ['angular2', 'common']
},
'@angular/forms' : {
commonjs2: ['angular2', 'forms']
},
'@angular/http': {
commonjs2: ['angular2', 'http']
},
'@angular/platform-browser': {
commonjs2: ['angular2', 'platform', 'browser']
},
}
]
};