diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..92937ea --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +puppeteer_download_host=https://npm.taobao.org/mirrors +@fui:registry=https://npm.fineres.com/ diff --git a/babel.config.js b/babel.config.js index d83931d..9085ac7 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,29 +1,3 @@ -module.exports = function(api) { - api.cache(true); - const presets = [ - [ - '@babel/preset-env', - { - targets: { - ie: 9, - chrome: 47, - }, - }, - ], - '@babel/preset-typescript', - ]; - const plugins = [ - [ - '@babel/plugin-proposal-decorators', - { - legacy: true, - }, - ], - '@babel/plugin-proposal-class-properties', - ]; - - return { - presets, - plugins, - }; +module.exports = function (api) { + return require("@fui/babel-preset-fineui").configs.base(api) }; diff --git a/config/jest.environment.js b/config/jest.environment.js index b564081..2a3541f 100644 --- a/config/jest.environment.js +++ b/config/jest.environment.js @@ -12,7 +12,7 @@ class FineUiEnvironment extends JsdomEnvironment { [ '../node_modules/fineui/dist/fineui.js', - '../node_modules/fineui-materials/docs/materials.js', + '../node_modules/@fui/materials/docs/materials.js', '../config/fineui.prepare.js', './fineui.setup.js', ].forEach(scriptRelativePath => { diff --git a/index.html b/index.html index cfb9c39..f8c5d5f 100644 --- a/index.html +++ b/index.html @@ -1,34 +1,22 @@ -
- -