@wavemaker/rn-codegen 11.8.2-next.27365 → 11.8.2-next.27366
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.
rn-codegen/package.json
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"postinstall": "echo \"\""
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@wavemaker/app-rn-runtime": "11.8.2-next.
|
|
13
|
-
"@wavemaker/variables": "11.8.2-next.
|
|
14
|
-
"@wavemaker/rn-codegen": "11.8.2-next.
|
|
12
|
+
"@wavemaker/app-rn-runtime": "11.8.2-next.27366",
|
|
13
|
+
"@wavemaker/variables": "11.8.2-next.27366",
|
|
14
|
+
"@wavemaker/rn-codegen": "11.8.2-next.27366",
|
|
15
15
|
"deprecated-react-native-prop-types": "4.1.0",
|
|
16
16
|
"expo": "50.0.17",
|
|
17
17
|
"expo-build-properties": "0.12.0",
|
|
@@ -27,13 +27,16 @@ class EsBuilder {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
prepareIndexHtml() {
|
|
30
|
+
prepareIndexHtml(result) {
|
|
31
31
|
console.log('build success');
|
|
32
32
|
try {
|
|
33
33
|
const bundleName = fs.readdirSync('./web-build').find(n => /^bundle.*js$/.test(n));
|
|
34
34
|
let content = fs.readFileSync(__dirname + '/index.html', 'utf-8');
|
|
35
35
|
content = content.replace(/".\/bundle.js"/, `"./${bundleName}"`);
|
|
36
36
|
fs.writeFileSync('./web-build/index.html', content);
|
|
37
|
+
|
|
38
|
+
const metafilePath = path.join(__dirname, './', 'metafile.json');
|
|
39
|
+
fs.writeFileSync(metafilePath, JSON.stringify(result.metafile));
|
|
37
40
|
} catch (err) {
|
|
38
41
|
console.error(err);
|
|
39
42
|
}
|
|
@@ -307,7 +310,9 @@ class EsBuilder {
|
|
|
307
310
|
define: {'process.env.NODE_ENV': '"development"', '__DEV__': false, global:'window'},
|
|
308
311
|
resolveExtensions: ['.web.tsx','.web.ts','.web.jsx','.web.js','.tsx','.ts','.jsx','.js',],
|
|
309
312
|
loader: {".png": "file", ".jpeg": "file", ".ttf": "file", ".js": "jsx", ".gif": "file", ".svg": "file" },
|
|
310
|
-
|
|
313
|
+
minifyWhitespace: true,
|
|
314
|
+
minifySyntax: true,
|
|
315
|
+
metafile: true,
|
|
311
316
|
sourcemap: true,
|
|
312
317
|
plugins: [babel({
|
|
313
318
|
filter: /\/src\/.*jsx?/,
|
|
@@ -334,7 +339,7 @@ class EsBuilder {
|
|
|
334
339
|
console.time('react native with esbuild');
|
|
335
340
|
this.cleanBuildDir();
|
|
336
341
|
this.build()
|
|
337
|
-
.then(() => this.prepareIndexHtml())
|
|
342
|
+
.then((result) => this.prepareIndexHtml(result))
|
|
338
343
|
.then(() => {
|
|
339
344
|
console.timeEnd('react native with esbuild');
|
|
340
345
|
console.log('*********** REACT NATIVE ESBUILD SUCCESSFUL **************');
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"postinstall": "node ./scripts/post-build.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@wavemaker/app-rn-runtime": "11.8.2-next.
|
|
13
|
-
"@wavemaker/variables": "11.8.2-next.
|
|
14
|
-
"@wavemaker/rn-codegen": "11.8.2-next.
|
|
12
|
+
"@wavemaker/app-rn-runtime": "11.8.2-next.27366",
|
|
13
|
+
"@wavemaker/variables": "11.8.2-next.27366",
|
|
14
|
+
"@wavemaker/rn-codegen": "11.8.2-next.27366",
|
|
15
15
|
"deprecated-react-native-prop-types": "4.1.0",
|
|
16
16
|
"expo": "50.0.17",
|
|
17
17
|
"expo-build-properties": "0.12.0",
|