mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-29 18:57:36 +08:00
Update component list
This commit is contained in:
parent
3f39e02e4a
commit
936597baca
@ -102,7 +102,7 @@ if (componentsFile[componentname]) {
|
||||
console.error(`${componentname} 已存在.`);
|
||||
process.exit(1);
|
||||
}
|
||||
componentsFile[componentname] = [`./packages/${componentname}/index.js`];
|
||||
componentsFile[componentname] = `./packages/${componentname}/index.js`;
|
||||
fileSave(path.join(__dirname, '../../components.json'))
|
||||
.write(JSON.stringify(componentsFile, null, ' '), 'utf8')
|
||||
.end('\n');
|
||||
|
@ -1,18 +1,9 @@
|
||||
var cooking = require('cooking');
|
||||
var path = require('path');
|
||||
var Components = require('../components.json');
|
||||
var config = require('./config');
|
||||
var entries = {};
|
||||
|
||||
Object.keys(Components).forEach(function(key) {
|
||||
const compo = Components[key];
|
||||
|
||||
compo[0] = path.join(process.cwd(), compo[0]);
|
||||
entries[key] = compo;
|
||||
});
|
||||
|
||||
cooking.set({
|
||||
entry: entries,
|
||||
entry: Components,
|
||||
dist: './lib',
|
||||
clean: false,
|
||||
format: 'cjs',
|
||||
|
220
components.json
220
components.json
@ -1,167 +1,57 @@
|
||||
{
|
||||
"select-dropdown": [
|
||||
"./packages/select-dropdown/index.js"
|
||||
],
|
||||
"pagination": [
|
||||
"./packages/pagination/index.js"
|
||||
],
|
||||
"dialog": [
|
||||
"./packages/dialog/index.js"
|
||||
],
|
||||
"autocomplete": [
|
||||
"./packages/autocomplete/index.js"
|
||||
],
|
||||
"dropdown": [
|
||||
"./packages/dropdown/index.js"
|
||||
],
|
||||
"dropdown-item": [
|
||||
"./packages/dropdown-item/index.js"
|
||||
],
|
||||
"menu": [
|
||||
"./packages/menu/index.js"
|
||||
],
|
||||
"submenu": [
|
||||
"./packages/submenu/index.js"
|
||||
],
|
||||
"menu-item": [
|
||||
"./packages/menu-item/index.js"
|
||||
],
|
||||
"menu-item-group": [
|
||||
"./packages/menu-item-group/index.js"
|
||||
],
|
||||
"input": [
|
||||
"./packages/input/index.js"
|
||||
],
|
||||
"input-number": [
|
||||
"./packages/input-number/index.js"
|
||||
],
|
||||
"radio": [
|
||||
"./packages/radio/index.js"
|
||||
],
|
||||
"radio-group": [
|
||||
"./packages/radio-group/index.js"
|
||||
],
|
||||
"radio-button": [
|
||||
"./packages/radio-button/index.js"
|
||||
],
|
||||
"checkbox": [
|
||||
"./packages/checkbox/index.js"
|
||||
],
|
||||
"checkbox-group": [
|
||||
"./packages/checkbox-group/index.js"
|
||||
],
|
||||
"switch": [
|
||||
"./packages/switch/index.js"
|
||||
],
|
||||
"select": [
|
||||
"./packages/select/index.js"
|
||||
],
|
||||
"option": [
|
||||
"./packages/option/index.js"
|
||||
],
|
||||
"option-group": [
|
||||
"./packages/option-group/index.js"
|
||||
],
|
||||
"button": [
|
||||
"./packages/button/index.js"
|
||||
],
|
||||
"button-group": [
|
||||
"./packages/button-group/index.js"
|
||||
],
|
||||
"table": [
|
||||
"./packages/table/index.js"
|
||||
],
|
||||
"table-column": [
|
||||
"./packages/table-column/index.js"
|
||||
],
|
||||
"date-picker": [
|
||||
"./packages/date-picker/index.js"
|
||||
],
|
||||
"time-select": [
|
||||
"./packages/time-select/index.js"
|
||||
],
|
||||
"time-picker": [
|
||||
"./packages/time-picker/index.js"
|
||||
],
|
||||
"popover": [
|
||||
"./packages/popover/index.js"
|
||||
],
|
||||
"tooltip": [
|
||||
"./packages/tooltip/index.js"
|
||||
],
|
||||
"message-box": [
|
||||
"./packages/message-box/index.js"
|
||||
],
|
||||
"breadcrumb": [
|
||||
"./packages/breadcrumb/index.js"
|
||||
],
|
||||
"breadcrumb-item": [
|
||||
"./packages/breadcrumb-item/index.js"
|
||||
],
|
||||
"form": [
|
||||
"./packages/form/index.js"
|
||||
],
|
||||
"form-item": [
|
||||
"./packages/form-item/index.js"
|
||||
],
|
||||
"tabs": [
|
||||
"./packages/tabs/index.js"
|
||||
],
|
||||
"tab-pane": [
|
||||
"./packages/tab-pane/index.js"
|
||||
],
|
||||
"tag": [
|
||||
"./packages/tag/index.js"
|
||||
],
|
||||
"tree": [
|
||||
"./packages/tree/index.js"
|
||||
],
|
||||
"alert": [
|
||||
"./packages/alert/index.js"
|
||||
],
|
||||
"notification": [
|
||||
"./packages/notification/index.js"
|
||||
],
|
||||
"slider": [
|
||||
"./packages/slider/index.js"
|
||||
],
|
||||
"loading": [
|
||||
"./packages/loading/index.js"
|
||||
],
|
||||
"icon": [
|
||||
"./packages/icon/index.js"
|
||||
],
|
||||
"row": [
|
||||
"./packages/row/index.js"
|
||||
],
|
||||
"col": [
|
||||
"./packages/col/index.js"
|
||||
],
|
||||
"upload": [
|
||||
"./packages/upload/index.js"
|
||||
],
|
||||
"progress": [
|
||||
"./packages/progress/index.js"
|
||||
],
|
||||
"spinner": [
|
||||
"./packages/spinner/index.js"
|
||||
],
|
||||
"message": [
|
||||
"./packages/message/index.js"
|
||||
],
|
||||
"badge": [
|
||||
"./packages/badge/index.js"
|
||||
],
|
||||
"card": [
|
||||
"./packages/card/index.js"
|
||||
],
|
||||
"rate": [
|
||||
"./packages/rate/index.js"
|
||||
],
|
||||
"steps": [
|
||||
"./packages/steps/index.js"
|
||||
],
|
||||
"step": [
|
||||
"./packages/step/index.js"
|
||||
]
|
||||
"select-dropdown": "./packages/select-dropdown/index.js",
|
||||
"pagination": "./packages/pagination/index.js",
|
||||
"dialog": "./packages/dialog/index.js",
|
||||
"autocomplete": "./packages/autocomplete/index.js",
|
||||
"dropdown": "./packages/dropdown/index.js",
|
||||
"dropdown-item": "./packages/dropdown-item/index.js",
|
||||
"menu": "./packages/menu/index.js",
|
||||
"submenu": "./packages/submenu/index.js",
|
||||
"menu-item": "./packages/menu-item/index.js",
|
||||
"menu-item-group": "./packages/menu-item-group/index.js",
|
||||
"input": "./packages/input/index.js",
|
||||
"input-number": "./packages/input-number/index.js",
|
||||
"radio": "./packages/radio/index.js",
|
||||
"radio-group": "./packages/radio-group/index.js",
|
||||
"radio-button": "./packages/radio-button/index.js",
|
||||
"checkbox": "./packages/checkbox/index.js",
|
||||
"checkbox-group": "./packages/checkbox-group/index.js",
|
||||
"switch": "./packages/switch/index.js",
|
||||
"select": "./packages/select/index.js",
|
||||
"option": "./packages/option/index.js",
|
||||
"option-group": "./packages/option-group/index.js",
|
||||
"button": "./packages/button/index.js",
|
||||
"button-group": "./packages/button-group/index.js",
|
||||
"table": "./packages/table/index.js",
|
||||
"table-column": "./packages/table-column/index.js",
|
||||
"date-picker": "./packages/date-picker/index.js",
|
||||
"time-select": "./packages/time-select/index.js",
|
||||
"time-picker": "./packages/time-picker/index.js",
|
||||
"popover": "./packages/popover/index.js",
|
||||
"tooltip": "./packages/tooltip/index.js",
|
||||
"message-box": "./packages/message-box/index.js",
|
||||
"breadcrumb": "./packages/breadcrumb/index.js",
|
||||
"breadcrumb-item": "./packages/breadcrumb-item/index.js",
|
||||
"form": "./packages/form/index.js",
|
||||
"form-item": "./packages/form-item/index.js",
|
||||
"tabs": "./packages/tabs/index.js",
|
||||
"tab-pane": "./packages/tab-pane/index.js",
|
||||
"tag": "./packages/tag/index.js",
|
||||
"tree": "./packages/tree/index.js",
|
||||
"alert": "./packages/alert/index.js",
|
||||
"notification": "./packages/notification/index.js",
|
||||
"slider": "./packages/slider/index.js",
|
||||
"loading": "./packages/loading/index.js",
|
||||
"icon": "./packages/icon/index.js",
|
||||
"row": "./packages/row/index.js",
|
||||
"col": "./packages/col/index.js",
|
||||
"upload": "./packages/upload/index.js",
|
||||
"progress": "./packages/progress/index.js",
|
||||
"spinner": "./packages/spinner/index.js",
|
||||
"message": "./packages/message/index.js",
|
||||
"badge": "./packages/badge/index.js",
|
||||
"card": "./packages/card/index.js",
|
||||
"rate": "./packages/rate/index.js",
|
||||
"steps": "./packages/steps/index.js",
|
||||
"step": "./packages/step/index.js"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user