Implement ios prototype version
This commit is contained in:
parent
a80d007e0c
commit
e3601055fc
24 changed files with 1368 additions and 1 deletions
21
ios/generate-bundle.js
Normal file
21
ios/generate-bundle.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
const child_process = require('child_process');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
child_process.execSync('npm run build');
|
||||
|
||||
const prefix = path.join('..', 'dist');
|
||||
const json_string = fs.readFileSync(path.join(prefix, 'manifest.json'));
|
||||
const manifest = JSON.parse(json_string);
|
||||
|
||||
const ios_filename = manifest['ios.js'];
|
||||
fs.writeFileSync(
|
||||
'send-ios/assets/ios.js',
|
||||
fs.readFileSync(`${prefix}${ios_filename}`)
|
||||
);
|
||||
|
||||
const vendor_filename = manifest['vendor.js'];
|
||||
fs.writeFileSync(
|
||||
'send-ios/assets/vendor.js',
|
||||
fs.readFileSync(`${prefix}${vendor_filename}`)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue