added iife generation

This commit is contained in:
Kevin Ross 2016-01-04 08:23:10 -06:00
parent 9139136e07
commit ccc251c75c
2 changed files with 13 additions and 10 deletions

View File

@ -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': {
@ -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'
},
@ -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'
]);

6
rollup.iife.config.js Normal file
View File

@ -0,0 +1,6 @@
import config from './rollup.config';
config.format = 'iife';
config.dest = 'dist/js/bootstrap-material-design.iife.js';
export default config;