From ccc251c75c726307d529f6feb7e6bc510400f9ed Mon Sep 17 00:00:00 2001
From: Kevin Ross <kevin.ross@alienfast.com>
Date: Mon, 4 Jan 2016 08:23:10 -0600
Subject: [PATCH] added iife generation

---
 Gruntfile.js          | 17 +++++++----------
 rollup.iife.config.js |  6 ++++++
 2 files changed, 13 insertions(+), 10 deletions(-)
 create mode 100644 rollup.iife.config.js

diff --git a/Gruntfile.js b/Gruntfile.js
index 897f49f4..2a897c25 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -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'
   ]);
diff --git a/rollup.iife.config.js b/rollup.iife.config.js
new file mode 100644
index 00000000..d3904ced
--- /dev/null
+++ b/rollup.iife.config.js
@@ -0,0 +1,6 @@
+import config from './rollup.config';
+
+config.format = 'iife';
+config.dest = 'dist/js/bootstrap-material-design.iife.js';
+
+export default config;