Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 3c2fa6e

Browse files
committed
Add rollup files
1 parent f8db97d commit 3c2fa6e

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ _temp
1717
!protractor*.js
1818
!systemjs.config.js
1919
!demo/src/**/*.js
20+
!rollup.conf.js
21+
!rollup-uglify.conf.js
2022

2123
# angular-datatables specific
2224
*.js.map

rollup-uglify.conf.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import uglify from 'rollup-plugin-uglify';
2+
3+
export default {
4+
entry : 'index.js',
5+
dest : 'bundles/angular-datatables.umd.min.js',
6+
format : 'umd',
7+
external : [
8+
'@angular/core',
9+
'@angular/platform-browser',
10+
'@angular/common'
11+
],
12+
globals : {
13+
'@angular/core': 'ng.core',
14+
'@angular/platform-browser': 'ng.platform-browser',
15+
'@angular/common': 'ng.common'
16+
},
17+
moduleName: 'angular.datatables',
18+
plugins: [
19+
uglify()
20+
]
21+
}

rollup.conf.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default {
2+
entry : 'index.js',
3+
dest : 'bundles/angular-datatables.umd.js',
4+
format : 'umd',
5+
external : [
6+
'@angular/core',
7+
'@angular/platform-browser',
8+
'@angular/common'
9+
],
10+
globals : {
11+
'@angular/core': 'ng.core',
12+
'@angular/platform-browser': 'ng.platform-browser',
13+
'@angular/common': 'ng.common'
14+
},
15+
moduleName: 'angular.datatables'
16+
}

0 commit comments

Comments
 (0)