mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(cli): remove component whitelist
This commit is contained in:
parent
cfc4cf8e33
commit
5cacc0df0c
@ -1,85 +0,0 @@
|
|||||||
// List of components that have been adapted to Vue 3.0
|
|
||||||
module.exports = [
|
|
||||||
'button',
|
|
||||||
'cell',
|
|
||||||
'cell-group',
|
|
||||||
'icon',
|
|
||||||
'badge',
|
|
||||||
'image',
|
|
||||||
'col',
|
|
||||||
'row',
|
|
||||||
'popup',
|
|
||||||
'rate',
|
|
||||||
'slider',
|
|
||||||
'slider-item',
|
|
||||||
'switch',
|
|
||||||
'action-sheet',
|
|
||||||
'loading',
|
|
||||||
'overlay',
|
|
||||||
'swipe-cell',
|
|
||||||
'circle',
|
|
||||||
'count-down',
|
|
||||||
'divider',
|
|
||||||
'empty',
|
|
||||||
'progress',
|
|
||||||
'skeleton',
|
|
||||||
'step',
|
|
||||||
'steps',
|
|
||||||
'tag',
|
|
||||||
'grid',
|
|
||||||
'grid-item',
|
|
||||||
'nav-bar',
|
|
||||||
'pagination',
|
|
||||||
'sidebar',
|
|
||||||
'sidebar-item',
|
|
||||||
'tree-select',
|
|
||||||
'notice-bar',
|
|
||||||
'share-sheet',
|
|
||||||
'pull-refresh',
|
|
||||||
'field',
|
|
||||||
'tabbar',
|
|
||||||
'tabbar-item',
|
|
||||||
'list',
|
|
||||||
'tab',
|
|
||||||
'tabs',
|
|
||||||
'sticky',
|
|
||||||
'picker',
|
|
||||||
'dialog',
|
|
||||||
'toast',
|
|
||||||
'calendar',
|
|
||||||
'checkbox',
|
|
||||||
'checkbox-group',
|
|
||||||
'radio',
|
|
||||||
'radio-group',
|
|
||||||
'datetime-picker',
|
|
||||||
'number-keyboard',
|
|
||||||
'password-input',
|
|
||||||
'search',
|
|
||||||
'stepper',
|
|
||||||
'uploader',
|
|
||||||
'dropdown-menu',
|
|
||||||
'dropdown-item',
|
|
||||||
'notify',
|
|
||||||
'collapse',
|
|
||||||
'collapse-item',
|
|
||||||
'swipe',
|
|
||||||
'swipe-item',
|
|
||||||
'image-preview',
|
|
||||||
'index-bar',
|
|
||||||
'index-anchor',
|
|
||||||
'address-list',
|
|
||||||
'area',
|
|
||||||
'card',
|
|
||||||
'contact-card',
|
|
||||||
'contact-edit',
|
|
||||||
'contact-list',
|
|
||||||
'coupon',
|
|
||||||
'coupon-list',
|
|
||||||
'coupon-cell',
|
|
||||||
'submit-bar',
|
|
||||||
'action-bar',
|
|
||||||
'action-bar-icon',
|
|
||||||
'action-bar-button',
|
|
||||||
'address-edit',
|
|
||||||
'form',
|
|
||||||
];
|
|
@ -7,7 +7,6 @@ import {
|
|||||||
outputFileSync,
|
outputFileSync,
|
||||||
} from 'fs-extra';
|
} from 'fs-extra';
|
||||||
import {
|
import {
|
||||||
ROOT,
|
|
||||||
SRC_DIR,
|
SRC_DIR,
|
||||||
getVantConfig,
|
getVantConfig,
|
||||||
ROOT_WEBPACK_CONFIG_FILE,
|
ROOT_WEBPACK_CONFIG_FILE,
|
||||||
@ -38,10 +37,6 @@ export function getComponents() {
|
|||||||
const EXCLUDES = ['.DS_Store'];
|
const EXCLUDES = ['.DS_Store'];
|
||||||
const dirs = readdirSync(SRC_DIR);
|
const dirs = readdirSync(SRC_DIR);
|
||||||
|
|
||||||
// TODO
|
|
||||||
// whitelist for 3.0 development
|
|
||||||
const whiteList = require(join(ROOT, 'components.js'));
|
|
||||||
|
|
||||||
return dirs
|
return dirs
|
||||||
.filter((dir) => !EXCLUDES.includes(dir))
|
.filter((dir) => !EXCLUDES.includes(dir))
|
||||||
.filter((dir) =>
|
.filter((dir) =>
|
||||||
@ -53,8 +48,7 @@ export function getComponents() {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
)
|
);
|
||||||
.filter((dir) => whiteList.includes(dir));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isDir(dir: string) {
|
export function isDir(dir: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user