-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): lerna 加入 taro-mini-runner && 接入 webpack 生成小程序文件
- Loading branch information
Showing
15 changed files
with
757 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const babelOptions: IBabelOptions = { | ||
sourceMap: true, | ||
presets: [ | ||
'env' | ||
], | ||
plugins: [ | ||
require('babel-plugin-transform-react-jsx'), | ||
'transform-decorators-legacy', | ||
'transform-class-properties', | ||
'transform-object-rest-spread' | ||
] | ||
} | ||
|
||
export default babelOptions | ||
|
||
export interface IBabelOptions { | ||
sourceMap: boolean, | ||
presets: string[], | ||
plugins: any[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default { | ||
sourceType: 'module', | ||
plugins: [ | ||
'typescript', | ||
'classProperties', | ||
'jsx', | ||
'trailingFunctionCommas', | ||
'asyncFunctions', | ||
'exponentiationOperator', | ||
'asyncGenerators', | ||
'objectRestSpread', | ||
'decorators', | ||
'dynamicImport' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default [ | ||
'last 3 versions', | ||
'Android >= 4.1', | ||
'ios >= 8' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
OUTPUT_DIR: 'dist', | ||
SOURCE_DIR: 'src', | ||
TEMP_DIR: '.temp', | ||
NPM_DIR: 'npm', | ||
ENTRY: 'app' | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/taro-mini-runner/src/config/manifest.default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"package": "com.application.demo", | ||
"name": "TaroQuickApp", | ||
"versionName": "1.0.0", | ||
"versionCode": "1", | ||
"minPlatformVersion": "101", | ||
"features": [ | ||
{ "name": "system.prompt" }, | ||
{ "name": "system.router" }, | ||
{ "name": "system.shortcut" }, | ||
{ "name": "system.fetch" }, | ||
{ "name": "system.storage" }, | ||
{ "name": "system.barcode" } | ||
], | ||
"permissions": [ | ||
{ "origin": "*" } | ||
], | ||
"config": { | ||
"logLevel": "debug" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"declaration": false, | ||
"experimentalDecorators": true, | ||
"jsx": "react", | ||
"jsxFactory": "Nerv.createElement", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noImplicitAny": false, | ||
"noUnusedLocals": true, | ||
"outDir": "./dist/", | ||
"preserveConstEnums": true, | ||
"removeComments": false, | ||
"rootDir": ".", | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
"target": "es6" | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"compileOnSave": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.