Skip to content

Commit 5f9b63b

Browse files
committed
refactor: use mpflow
1 parent b38c91c commit 5f9b63b

File tree

344 files changed

+56606
-10391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+56606
-10391
lines changed

.babelrc

Lines changed: 0 additions & 33 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ miniprogram_dist
1111
miniprogram_dev
1212
node_modules
1313
coverage
14+
dist

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "src/weui-wxss"]
2-
path = src/weui-wxss
3-
url = https://github.com/Tencent/weui-wxss/

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ['@mpflow/plugin-babel/preset', '@mpflow/plugin-typescript/preset']
3+
}

mpflow.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
appId: 'wx69718f08e51eebf9',
3+
projectName: '小程序自定义组件',
4+
app: (mode) => (mode !== 'production' ? 'src/app' : undefined),
5+
pages: (mode) => (mode !== 'production' ? undefined : ['src/components/index']),
6+
sourceMap: (mode) => mode !== 'production',
7+
compileType: 'miniprogram',
8+
outputDir: 'miniprogram_dist',
9+
plugins: ['@mpflow/plugin-babel', '@mpflow/plugin-typescript', '@mpflow/plugin-css'],
10+
settings: {
11+
urlCheck: true,
12+
es6: false,
13+
postcss: false,
14+
preloadBackgroundData: false,
15+
minified: false,
16+
newFeature: true,
17+
coverView: true,
18+
nodeModules: true,
19+
autoAudits: false,
20+
showShadowRootInWxmlPanel: true,
21+
scopeDataCheck: false,
22+
checkInvalidKey: true,
23+
checkSiteMap: true,
24+
uploadWithSourceMap: true,
25+
compileHotReLoad: false,
26+
babelSetting: {
27+
ignore: [],
28+
disablePlugins: [],
29+
outputPath: ''
30+
},
31+
useIsolateContext: true,
32+
useCompilerModule: false,
33+
userConfirmedUseCompilerModuleSwitch: false
34+
}
35+
}

0 commit comments

Comments
 (0)