Skip to content

Commit

Permalink
chore: do not ignore rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Mar 7, 2017
1 parent 6296ee0 commit 42c2ead
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
/typings

!gulpfile.js
/.idea
/.idea
!rollup.config.js
26 changes: 26 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import path from 'path';
import { readFileSync } from 'fs';
import node from 'rollup-plugin-node-resolve';
import buble from 'rollup-plugin-buble';

let pkg = JSON.parse(readFileSync(path.resolve(__dirname, 'package.json')));

export default {
entry: 'ngx-uploader.js',
dest: 'bundle/ngx-uploader.umd.js',
format: 'umd',
moduleName: 'ngx-uploader',
context: 'this',
plugins: [ node(), buble() ],
external: Object.keys(pkg.devDependencies),
globals: {
'@angular/core': 'vendor._angular_core',
'@angular/common': 'vendor._angular_common',
'@angular/platform-browser': 'vendor._angular_platformBrowser',
'@angular/platform-browser-dynamic': 'vendor._angular_platformBrowserDynamic',
'@angular/router': 'vendor._angular_router',
'@angular/http': 'vendor._angular_http',
'@angular/forms': 'vendor._angular_forms',
'rxjs': 'vendor.rxjs'
}
}

0 comments on commit 42c2ead

Please sign in to comment.