mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-02 21:04:13 +03:00
wip rollup configuration
This commit is contained in:
parent
fcb183e441
commit
ff95eb2495
|
@ -15,7 +15,8 @@
|
||||||
"radio.js",
|
"radio.js",
|
||||||
"radioInline.js",
|
"radioInline.js",
|
||||||
"file.js",
|
"file.js",
|
||||||
"bootstrapMaterialDesign.js"
|
"bootstrapMaterialDesign.js",
|
||||||
|
"index.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"docs": {
|
"docs": {
|
||||||
|
|
|
@ -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 */
|
/* eslint-disable no-unused-vars */
|
||||||
import BaseInput from './baseInput'
|
import BaseInput from './baseInput'
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
},
|
},
|
||||||
"style": "dist/css/bootstrap-material-design.css",
|
"style": "dist/css/bootstrap-material-design.css",
|
||||||
"sass": "scss/bootstrap-material-design.scss",
|
"sass": "scss/bootstrap-material-design.scss",
|
||||||
"main": "./dist/js/npm",
|
"main": "dist/js/common.js",
|
||||||
|
"jsnext:main": "dist/rollup.es6.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/FezVrasta/bootstrap-material-design.git"
|
"url": "https://github.com/FezVrasta/bootstrap-material-design.git"
|
||||||
|
@ -70,6 +71,8 @@
|
||||||
"markdown-it": "^5.0.0",
|
"markdown-it": "^5.0.0",
|
||||||
"mq4-hover-shim": "^0.3.0",
|
"mq4-hover-shim": "^0.3.0",
|
||||||
"npm-shrinkwrap": "^200.1.0",
|
"npm-shrinkwrap": "^200.1.0",
|
||||||
|
"rollup": "^0.22",
|
||||||
|
"rollup-plugin-babel": "^2.3",
|
||||||
"time-grunt": "^1.2.1"
|
"time-grunt": "^1.2.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
6
rollup.config.js
Normal file
6
rollup.config.js
Normal 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
6
rollup.es6.config.js
Normal 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
8
rollup.umd.config.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user