From 9a82045c0cc1ebee85521e4eeeb3643e1b6f6151 Mon Sep 17 00:00:00 2001 From: zsmj1994 Date: Tue, 14 Jul 2020 20:10:33 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-4727=20refactor:=20=E3=80=90=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E3=80=91=E4=BD=BF=E7=94=A8babel-preset-fineui?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E9=85=8D=E7=BD=AEbabel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 2 ++ babel.config.js | 30 ++---------------------------- package.json | 5 ++--- 3 files changed, 6 insertions(+), 31 deletions(-) create mode 100644 .npmrc 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/package.json b/package.json index 9cd2bb5..1395fd6 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,7 @@ "webpack-cli": "3.3.5", "webpack-dev-server": "3.7.2", "webpack-merge": "4.2.1", - "ydoc": "4.1.0", - "ydoc-plugin-jsdoc": "0.0.3" + "@fui/babel-preset-fineui": "^1.0.0" }, "optionalDependencies": { "fineui": "git+ssh://git@cloud.finedevelop.com:7999/visual/fineui.git", @@ -79,4 +78,4 @@ "pre-push": "npm run eslint && npm run test" } } -} +} \ No newline at end of file