-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·95 lines (93 loc) · 3.53 KB
/
index.js
File metadata and controls
executable file
·95 lines (93 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env node
const {
ejectProject, build
} = require('./src/command');
// src is the web react native project zip
const args = require('yargs')
.command('build', 'build the project to generate android and ios folders', yargs => {
yargs.command('android [src] [options]', 'build for android', yargs => {
yargs.option('appId', {
alias: 'appId',
describe: 'unique application identifier',
type: 'string'
})
.option('aks', {
alias: 'aKeyStore',
describe: '(Android) path to keystore',
type: 'string'
})
.option('asp', {
alias: 'aStorePassword',
describe: '(Android) password to keystore',
type: 'string'
})
.option('aka', {
alias: 'aKeyAlias',
describe: '(Android) Alias name',
type: 'string'
})
.option('akp', {
alias: 'aKeyPassword',
describe: '(Android) password for key.',
type: 'string'
})
}, args => {
args.platform = 'android';
build(args)
})
.command('ios [src] [options]', 'build for iOS', yargs => {
yargs.option('ic', {
alias: 'iCertificate',
describe: '(iOS) path of p12 certificate to use',
type: 'string'
})
.option('icp', {
alias: 'iCertificatePassword',
describe: '(iOS) password to unlock certificate',
type: 'string'
})
.option('ipf', {
alias: 'iProvisioningFile',
describe: '(iOS) path of the provisional profile to use',
type: 'string'
})
.option('icsi', {
alias: 'iCodeSigningIdentity',
describe: 'Common Name of the Developer iOS certificate stored in the Keychain Access application',
type: 'string'
});
}, args => {
args.platform = 'ios';
build(args)
})
yargs.positional('src', {
describe: 'path of rn project',
default: './',
type: 'string',
normalize: true
})
.option('dest', {
alias: 'dest',
describe: 'dest folder where the react native project will be extracted to',
type: 'string'
})
.option('p', {
alias: 'packageType',
describe: 'development (or) release',
default: 'development',
choices: ['development', 'production']
})
.option('localrnruntimepath', {
alias: 'localrnruntimepath',
describe: 'local path pointing to the app-rn-runtime folder',
type: 'string'
})
.option('auto-eject', {
alias: 'autoEject',
describe: 'If set to true then project will be eject automatically without prompting any confirmations',
default: false,
type: 'boolean'
})
})
.help('h')
.alias('h', 'help').argv;