wip rollup configuration

This commit is contained in:
Kevin Ross 2015-12-30 14:38:09 -06:00
parent fcb183e441
commit ff95eb2495
6 changed files with 34 additions and 3 deletions

View File

@ -15,7 +15,8 @@
"radio.js",
"radioInline.js",
"file.js",
"bootstrapMaterialDesign.js"
"bootstrapMaterialDesign.js",
"index.js"
]
},
"docs": {

View File

@ -1,4 +1,11 @@
// main entry point
/*
* This is the main entry point for your package.
*
* You can import other modules here, including external packages. When
* bundling using rollup you can mark those modules as external and have them
* excluded or, if they have a jsnext:main entry in their package.json (like
* this package does), let rollup bundle them into your dist file.
*/
/* eslint-disable no-unused-vars */
import BaseInput from './baseInput'

View File

@ -22,7 +22,8 @@
},
"style": "dist/css/bootstrap-material-design.css",
"sass": "scss/bootstrap-material-design.scss",
"main": "./dist/js/npm",
"main": "dist/js/common.js",
"jsnext:main": "dist/rollup.es6.js",
"repository": {
"type": "git",
"url": "https://github.com/FezVrasta/bootstrap-material-design.git"
@ -70,6 +71,8 @@
"markdown-it": "^5.0.0",
"mq4-hover-shim": "^0.3.0",
"npm-shrinkwrap": "^200.1.0",
"rollup": "^0.22",
"rollup-plugin-babel": "^2.3",
"time-grunt": "^1.2.1"
},
"engines": {

6
rollup.config.js Normal file
View File

@ -0,0 +1,6 @@
import babel from 'rollup-plugin-babel';
export default {
entry: 'js/src/index.js',
plugins: [babel()]
};

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

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

8
rollup.umd.config.js Normal file
View File

@ -0,0 +1,8 @@
import config from './rollup.config';
config.format = 'umd';
config.dest = 'dist/rollup.umd.config.js';
config.moduleName = 'bootstrapMaterialDesign';
export default config;