@tarojs/rn-runner 3.5.5-alpha.1 → 3.5.6-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/config.spec.ts +1 -20
- package/dist/index.js +58 -183
- package/dist/index.js.map +1 -1
- package/package.json +5 -20
- package/src/index.ts +57 -206
- package/templates/index.js +1 -0
- package/templates/metro.config.js +11 -0
- package/dist/config/conditional-file-store.js +0 -57
- package/dist/config/conditional-file-store.js.map +0 -1
- package/dist/config/config-holder.js +0 -76
- package/dist/config/config-holder.js.map +0 -1
- package/dist/config/index.js +0 -57
- package/dist/config/index.js.map +0 -1
- package/dist/config/preview.js +0 -102
- package/dist/config/preview.js.map +0 -1
- package/dist/config/terminal-reporter.js +0 -103
- package/dist/config/terminal-reporter.js.map +0 -1
- package/dist/utils.js +0 -29
- package/dist/utils.js.map +0 -1
- package/src/config/conditional-file-store.ts +0 -47
- package/src/config/config-holder.ts +0 -70
- package/src/config/index.ts +0 -76
- package/src/config/preview.ts +0 -114
- package/src/config/terminal-reporter.ts +0 -96
- package/src/utils.ts +0 -27
package/__tests__/config.spec.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getRNConfigEntry } from '../src/config/config-holder'
|
|
2
2
|
|
|
3
3
|
const path = require('path')
|
|
4
4
|
|
|
@@ -9,27 +9,8 @@ describe('init', () => {
|
|
|
9
9
|
NODE_ENV: 'development'
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
it('getRNConfigOutput', () => {
|
|
13
|
-
expect(getRNConfigOutput('ios')).toEqual('iosbundle/main.bundle')
|
|
14
|
-
})
|
|
15
|
-
|
|
16
12
|
it('getRNConfigEntry', () => {
|
|
17
13
|
expect(getRNConfigEntry()).toEqual('app')
|
|
18
14
|
})
|
|
19
15
|
|
|
20
|
-
it('getRNConfigTransformer', () => {
|
|
21
|
-
expect(getRNConfigTransformer()).toEqual([
|
|
22
|
-
'metro/transformer'
|
|
23
|
-
])
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
it('getRNConfigBabelPlugin', () => {
|
|
27
|
-
const babelPlugin = [
|
|
28
|
-
'/absulute/path/plugin/filename',
|
|
29
|
-
'@tarojs/plugin-mock',
|
|
30
|
-
['@tarojs/plugin-mock'],
|
|
31
|
-
['@tarojs/plugin-mock', {}]
|
|
32
|
-
]
|
|
33
|
-
expect(getRNConfigBabelPlugin()).toEqual(babelPlugin)
|
|
34
|
-
})
|
|
35
16
|
})
|
package/dist/index.js
CHANGED
|
@@ -9,106 +9,43 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const saveAssets_1 = require("@react-native-community/cli-plugin-metro/build/commands/bundle/saveAssets");
|
|
13
|
-
const cli_server_api_1 = require("@react-native-community/cli-server-api");
|
|
14
12
|
const helper_1 = require("@tarojs/helper");
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const Server = require("metro/src/Server");
|
|
19
|
-
const outputBundle = require("metro/src/shared/output/bundle");
|
|
20
|
-
const path = require("path");
|
|
21
|
-
const QRCode = require("qrcode");
|
|
22
|
-
const readline = require("readline");
|
|
23
|
-
const url = require("url");
|
|
24
|
-
const config_1 = require("./config");
|
|
13
|
+
const child_process_1 = require("child_process");
|
|
14
|
+
const fs_1 = require("fs");
|
|
15
|
+
const path_1 = require("path");
|
|
25
16
|
const build_component_1 = require("./config/build-component");
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
else if (outputType === 'object') {
|
|
39
|
-
output = config.output[config.deviceType];
|
|
40
|
-
if (!output) {
|
|
41
|
-
console.error(`lack value for 'rn.output' configuration with platform '${config.deviceType}': ${JSON.stringify(config.output)}`);
|
|
17
|
+
// 确认根目录下 metro.config.js index.js 是否存在
|
|
18
|
+
const files = ['metro.config.js', 'index.js'];
|
|
19
|
+
function confirmFiles() {
|
|
20
|
+
files.forEach(file => {
|
|
21
|
+
const filePath = (0, path_1.join)(process.cwd(), file);
|
|
22
|
+
(0, fs_1.copyFile)((0, path_1.join)(__dirname, '..', 'templates', file), filePath, fs_1.constants.COPYFILE_EXCL, err => {
|
|
23
|
+
if (err) {
|
|
24
|
+
if (err.code !== 'EEXIST') {
|
|
25
|
+
// 不重复生成配置文件
|
|
26
|
+
console.log(err);
|
|
27
|
+
}
|
|
42
28
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (config.bundleOutput) {
|
|
49
|
-
output = config.bundleOutput;
|
|
50
|
-
}
|
|
51
|
-
const res = path.isAbsolute(output) ? output : path.join('.', output);
|
|
52
|
-
fse.ensureDirSync(path.dirname(res));
|
|
53
|
-
return res;
|
|
54
|
-
}
|
|
55
|
-
function concatOutputAssetsDest(config) {
|
|
56
|
-
// 优先级:--assets-dest > config.output > config.outputRoot
|
|
57
|
-
let assetDest;
|
|
58
|
-
if (!(config === null || config === void 0 ? void 0 : config.deviceType) || !(config === null || config === void 0 ? void 0 : config.output)) {
|
|
59
|
-
assetDest = config.outputRoot;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
assetDest = config.deviceType === 'ios' ? config.output.iosAssetsDest : config.output.androidAssetsDest;
|
|
63
|
-
}
|
|
64
|
-
if (config.assetsDest) {
|
|
65
|
-
assetDest = config.assetsDest;
|
|
66
|
-
}
|
|
67
|
-
if (!assetDest)
|
|
68
|
-
return undefined;
|
|
69
|
-
const res = path.isAbsolute(assetDest) ? assetDest : path.join('.', assetDest);
|
|
70
|
-
fse.ensureDirSync(path.dirname(res));
|
|
71
|
-
return res;
|
|
72
|
-
}
|
|
73
|
-
function getOutputSourceMapOption(config) {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f;
|
|
75
|
-
if (!(config === null || config === void 0 ? void 0 : config.deviceType)) {
|
|
76
|
-
return {};
|
|
77
|
-
}
|
|
78
|
-
const isIos = config.deviceType === 'ios';
|
|
79
|
-
const sourceMapUrl = config.sourceMapUrl || (isIos ? (_a = config === null || config === void 0 ? void 0 : config.output) === null || _a === void 0 ? void 0 : _a.iosSourceMapUrl : (_b = config === null || config === void 0 ? void 0 : config.output) === null || _b === void 0 ? void 0 : _b.androidSourceMapUrl);
|
|
80
|
-
const sourcemapOutput = config.sourcemapOutput || (isIos ? (_c = config === null || config === void 0 ? void 0 : config.output) === null || _c === void 0 ? void 0 : _c.iosSourcemapOutput : (_d = config === null || config === void 0 ? void 0 : config.output) === null || _d === void 0 ? void 0 : _d.androidSourcemapOutput);
|
|
81
|
-
const sourcemapSourcesRoot = config.sourcemapSourcesRoot || (isIos ? (_e = config === null || config === void 0 ? void 0 : config.output) === null || _e === void 0 ? void 0 : _e.iosSourcemapSourcesRoot : (_f = config === null || config === void 0 ? void 0 : config.output) === null || _f === void 0 ? void 0 : _f.androidSourcemapSourcesRoot);
|
|
82
|
-
sourcemapOutput && fse.ensureDirSync(path.dirname(sourcemapOutput));
|
|
83
|
-
return {
|
|
84
|
-
sourceMapUrl,
|
|
85
|
-
sourcemapOutput,
|
|
86
|
-
sourcemapSourcesRoot
|
|
87
|
-
};
|
|
29
|
+
else {
|
|
30
|
+
console.log(`${file} created`);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
88
34
|
}
|
|
89
|
-
// TODO: 返回值
|
|
90
|
-
// HttpServer | {code: string, map: string}
|
|
91
|
-
// IBuildConfig
|
|
92
35
|
function build(_appPath, config) {
|
|
93
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
confirmFiles();
|
|
94
38
|
process.env.TARO_ENV = helper_1.PLATFORMS.RN;
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
config.
|
|
98
|
-
|
|
99
|
-
const sourceRoot = config.sourceRoot || 'src';
|
|
100
|
-
const commonOptions = {
|
|
101
|
-
platform: config.deviceType,
|
|
102
|
-
minify: process.env.NODE_ENV === 'production' || !config.isWatch,
|
|
103
|
-
dev: config.isWatch
|
|
104
|
-
};
|
|
39
|
+
const isIos = config.deviceType === 'ios';
|
|
40
|
+
const cliParams = [];
|
|
41
|
+
config.output = config.output || {};
|
|
42
|
+
// cli & config 参数透传
|
|
105
43
|
if (config.resetCache) {
|
|
106
|
-
|
|
44
|
+
cliParams.push('--reset-cache');
|
|
107
45
|
}
|
|
108
46
|
if (config.publicPath) {
|
|
109
|
-
|
|
47
|
+
cliParams.push('--public-path', config.publicPath);
|
|
110
48
|
}
|
|
111
|
-
metroConfig.reporter = new terminal_reporter_1.TerminalReporter(entry, sourceRoot, metroConfig.cacheStores[0]);
|
|
112
49
|
const onFinish = function (error) {
|
|
113
50
|
if (typeof config.onBuildFinish === 'function') {
|
|
114
51
|
config.onBuildFinish({
|
|
@@ -123,113 +60,51 @@ function build(_appPath, config) {
|
|
|
123
60
|
return (0, build_component_1.default)(_appPath, config);
|
|
124
61
|
}
|
|
125
62
|
else if (config.isWatch) {
|
|
126
|
-
if (!metroConfig.server || (metroConfig.server.useGlobalHotkey === undefined)) {
|
|
127
|
-
if (!metroConfig.server) {
|
|
128
|
-
metroConfig.server = {};
|
|
129
|
-
}
|
|
130
|
-
metroConfig.server.useGlobalHotkey = true;
|
|
131
|
-
}
|
|
132
63
|
if (config.port) {
|
|
133
|
-
|
|
64
|
+
cliParams.push('--port', config.port);
|
|
134
65
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
});
|
|
139
|
-
metroConfig.server.enhanceMiddleware = (metroMiddleware, metroServer) => {
|
|
140
|
-
metroConfig.reporter.metroServerInstance = metroServer;
|
|
141
|
-
// bundle路由只识别/index.bundle
|
|
142
|
-
return middleware.use((req, res, next) => {
|
|
143
|
-
// eslint-disable-next-line node/no-deprecated-api
|
|
144
|
-
const urlObj = url.parse(req.url);
|
|
145
|
-
if (/\/[^]+.bundle/.test(urlObj.pathname || '') && (urlObj.pathname || '').toLowerCase() !== '/index.bundle') {
|
|
146
|
-
res.writeHead(400);
|
|
147
|
-
res.end('Please access /index.bundle for entry bundling.');
|
|
148
|
-
}
|
|
149
|
-
else if (/^\/debugger-ui\//.test(urlObj.pathname || '')) {
|
|
150
|
-
next();
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
metroMiddleware(req, res, next);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
// 支持host
|
|
158
|
-
return Metro.runServer(metroConfig, Object.assign(Object.assign({}, commonOptions), { hmrEnabled: true, websocketEndpoints })).then(server => {
|
|
159
|
-
console.log(`React-Native Dev server is running on port: ${metroConfig.server.port}`);
|
|
160
|
-
console.log('\n\nTo reload the app press "r"\nTo open developer menu press "d"\n');
|
|
161
|
-
readline.emitKeypressEvents(process.stdin);
|
|
162
|
-
process.stdin.setRawMode && process.stdin.setRawMode(true);
|
|
163
|
-
process.stdin.on('keypress', (_key, data) => {
|
|
164
|
-
const { ctrl, name } = data;
|
|
165
|
-
if (name === 'r') {
|
|
166
|
-
messageSocketEndpoint.broadcast('reload');
|
|
167
|
-
console.log('Reloading app...');
|
|
168
|
-
}
|
|
169
|
-
else if (name === 'd') {
|
|
170
|
-
messageSocketEndpoint.broadcast('devMenu');
|
|
171
|
-
console.log('Opening developer menu...');
|
|
172
|
-
}
|
|
173
|
-
else if (ctrl && (name === 'c')) {
|
|
174
|
-
process.exit();
|
|
175
|
-
}
|
|
66
|
+
try {
|
|
67
|
+
(0, child_process_1.spawn)('react-native', ['start'].concat(cliParams), {
|
|
68
|
+
stdio: 'inherit'
|
|
176
69
|
});
|
|
177
|
-
if (config.qr) {
|
|
178
|
-
const host = (0, utils_1.getOpenHost)();
|
|
179
|
-
if (host) {
|
|
180
|
-
const url = `taro://${host}:${metroConfig.server.port}`;
|
|
181
|
-
console.log(utils_1.PLAYGROUNDINFO);
|
|
182
|
-
console.log(`print qrcode of '${url}':`);
|
|
183
|
-
QRCode.toString(url, { type: 'terminal', small: !utils_1.isWin }).then(console.log);
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
console.log('print qrcode error: host not found.');
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
70
|
onFinish(null);
|
|
190
|
-
|
|
191
|
-
|
|
71
|
+
}
|
|
72
|
+
catch (e) {
|
|
192
73
|
onFinish(e);
|
|
193
|
-
}
|
|
74
|
+
}
|
|
194
75
|
}
|
|
195
76
|
else {
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
const
|
|
207
|
-
|
|
77
|
+
const bundleOutput = config.bundleOutput ? config.bundleOutput : (isIos ? config.output.ios : config.output.android);
|
|
78
|
+
cliParams.push('--bundle-output', bundleOutput);
|
|
79
|
+
const sourcemapOutput = config.sourcemapOutput ? config.sourcemapOutput : (isIos ? config.output.iosSourcemapOutput : config.output.androidSourcemapOutput);
|
|
80
|
+
if (sourcemapOutput) {
|
|
81
|
+
cliParams.push('--sourcemap-output', sourcemapOutput);
|
|
82
|
+
}
|
|
83
|
+
const sourceMapUrl = config.sourceMapUrl ? config.sourceMapUrl : (isIos ? config.output.iosSourceMapUrl : config.output.androidSourceMapUrl);
|
|
84
|
+
if (sourceMapUrl) {
|
|
85
|
+
cliParams.push('--sourcemap-use-absolute-path', sourceMapUrl);
|
|
86
|
+
}
|
|
87
|
+
const sourcemapSourcesRoot = config.sourcemapSourcesRoot ? config.sourcemapSourcesRoot : (isIos ? config.output.iosSourcemapSourcesRoot : config.output.androidSourcemapSourcesRoot);
|
|
88
|
+
if (sourcemapSourcesRoot) {
|
|
89
|
+
cliParams.push('--sourcemap-sources-root', sourcemapSourcesRoot);
|
|
90
|
+
}
|
|
91
|
+
const assetsDest = config.assetsDest ? config.assetsDest : (isIos ? config.output.iosAssetsDest : config.output.androidAssetsDest);
|
|
92
|
+
cliParams.push('--assets-dest', assetsDest);
|
|
208
93
|
try {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
if (config.qr) {
|
|
218
|
-
(0, preview_1.default)({
|
|
219
|
-
out: options.out,
|
|
220
|
-
assetsDest,
|
|
221
|
-
platform: options.platform
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
onFinish(null);
|
|
94
|
+
(0, child_process_1.spawn)('react-native', [
|
|
95
|
+
'bundle',
|
|
96
|
+
'--platform',
|
|
97
|
+
config.deviceType,
|
|
98
|
+
'--entry-file',
|
|
99
|
+
'index.js'
|
|
100
|
+
].concat(cliParams), {
|
|
101
|
+
stdio: 'inherit'
|
|
225
102
|
});
|
|
103
|
+
onFinish(null);
|
|
226
104
|
}
|
|
227
105
|
catch (e) {
|
|
228
106
|
onFinish(e);
|
|
229
107
|
}
|
|
230
|
-
finally {
|
|
231
|
-
server.end();
|
|
232
|
-
}
|
|
233
108
|
}
|
|
234
109
|
});
|
|
235
110
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAA0C;AAC1C,iDAAqC;AACrC,2BAAuC;AACvC,+BAA2B;AAE3B,8DAAqD;AAErD,uCAAuC;AACvC,MAAM,KAAK,GAAG,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAA;AAC7C,SAAS,YAAY;IACnB,KAAK,CAAC,OAAO,CAA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ACF;IACH,CAAC;CAAA;AA5ED,wBA4EC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/rn-runner",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6-alpha.0",
|
|
4
4
|
"description": "ReactNative build tool for taro",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -21,35 +21,20 @@
|
|
|
21
21
|
"npm": ">=6.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@react-native-community/cli": "^9.1.0",
|
|
25
|
-
"@react-native-community/cli-config": "^9.1.0",
|
|
26
|
-
"@react-native-community/cli-plugin-metro": "^9.1.0",
|
|
27
|
-
"@react-native-community/cli-tools": "^9.1.0",
|
|
28
|
-
"@react-native-community/cli-server-api": "^9.1.0",
|
|
29
24
|
"@rollup/plugin-babel": "^5.3.1",
|
|
30
25
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
31
26
|
"@rollup/plugin-json": "^4.1.0",
|
|
32
27
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
33
28
|
"@rollup/plugin-replace": "^4.0.0",
|
|
34
|
-
"@tarojs/helper": "3.5.
|
|
35
|
-
"@tarojs/rn-style-transformer": "3.5.
|
|
36
|
-
"@tarojs/rn-supporter": "3.5.
|
|
37
|
-
"@tarojs/rn-transformer": "3.5.
|
|
29
|
+
"@tarojs/helper": "3.5.6-alpha.0",
|
|
30
|
+
"@tarojs/rn-style-transformer": "3.5.6-alpha.0",
|
|
31
|
+
"@tarojs/rn-supporter": "3.5.6-alpha.0",
|
|
32
|
+
"@tarojs/rn-transformer": "3.5.6-alpha.0",
|
|
38
33
|
"acorn-jsx": "^5.3.2",
|
|
39
|
-
"fs-extra": "^8.0.1",
|
|
40
34
|
"lodash": "^4.17.21",
|
|
41
|
-
"metro": "^0.72.1",
|
|
42
|
-
"metro-cache": "^0.72.1",
|
|
43
|
-
"metro-config": "^0.72.1",
|
|
44
|
-
"metro-core": "^0.72.1",
|
|
45
|
-
"metro-react-native-babel-transformer": "^0.72.1",
|
|
46
|
-
"metro-resolver": "^0.72.1",
|
|
47
|
-
"mime-types": "^2.1.27",
|
|
48
|
-
"qrcode": "^1.5.1",
|
|
49
35
|
"rollup-plugin-image-file": "^1.0.2"
|
|
50
36
|
},
|
|
51
37
|
"devDependencies": {
|
|
52
|
-
"expo-file-system": "~14.1.0",
|
|
53
38
|
"react-is": "^16.13.0",
|
|
54
39
|
"react-native-root-siblings": "^4.1.1"
|
|
55
40
|
},
|