mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-02 21:04:13 +03:00
added iife generation
This commit is contained in:
parent
9139136e07
commit
ccc251c75c
17
Gruntfile.js
17
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'
|
||||
]);
|
||||
|
|
6
rollup.iife.config.js
Normal file
6
rollup.iife.config.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user