diff --git a/components.js b/components.js deleted file mode 100644 index d26384119..000000000 --- a/components.js +++ /dev/null @@ -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', -]; diff --git a/packages/vant-cli/src/common/index.ts b/packages/vant-cli/src/common/index.ts index 6260b18f5..29220cb13 100644 --- a/packages/vant-cli/src/common/index.ts +++ b/packages/vant-cli/src/common/index.ts @@ -7,7 +7,6 @@ import { outputFileSync, } from 'fs-extra'; import { - ROOT, SRC_DIR, getVantConfig, ROOT_WEBPACK_CONFIG_FILE, @@ -38,10 +37,6 @@ export function getComponents() { const EXCLUDES = ['.DS_Store']; const dirs = readdirSync(SRC_DIR); - // TODO - // whitelist for 3.0 development - const whiteList = require(join(ROOT, 'components.js')); - return dirs .filter((dir) => !EXCLUDES.includes(dir)) .filter((dir) => @@ -53,8 +48,7 @@ export function getComponents() { return false; }) - ) - .filter((dir) => whiteList.includes(dir)); + ); } export function isDir(dir: string) {