Skip to content

Commit

Permalink
added iife generation
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskevin committed Jan 4, 2016
1 parent 9139136 commit ccc251c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ module.exports = function (grunt) {

dist: {
files: {
'dist/js/bootstrap-material-design.es6.min.js': 'dist/js/bootstrap-material-design.es6.js',
'dist/js/bootstrap-material-design.umd.min.js': 'dist/js/bootstrap-material-design.umd.js'
'dist/js/bootstrap-material-design.iife.min.js': 'dist/js/bootstrap-material-design.iife.js',
'dist/js/bootstrap-material-design.umd.min.js': 'dist/js/bootstrap-material-design.umd.js',
'dist/js/bootstrap-material-design.es6.min.js': 'dist/js/bootstrap-material-design.es6.js'
}
}
//'systemjs-all': {
Expand Down Expand Up @@ -512,6 +513,9 @@ module.exports = function (grunt) {
npmUpdate: {
command: 'npm update'
},
'rollup-iife': {
command: 'rollup -c rollup.iife.config.js'
},
'rollup-umd': {
command: 'rollup -c rollup.umd.config.js'
},
Expand Down Expand Up @@ -609,17 +613,10 @@ module.exports = function (grunt) {
grunt.registerTask('dist-js', [
'clean:dist-js',
'eslint',
'exec:rollup-iife',
'exec:rollup-umd',
'exec:rollup-es6',
//'babel:umd',
//'babel:systemjs',
//'commonjs',
//'systemjs',
//'concat:commonjs',
//'concat:systemjs',
'stamp',
//'uglify:commonjs-all',
//'uglify:systemjs-all',
'uglify:dist',
'copy:dist-to-docs'
]);
Expand Down
6 changes: 6 additions & 0 deletions rollup.iife.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import config from './rollup.config';

config.format = 'iife';
config.dest = 'dist/js/bootstrap-material-design.iife.js';

export default config;

0 comments on commit ccc251c

Please sign in to comment.