@startupjs/cli 0.55.9 → 0.56.0-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/index.js +38 -7
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -52,7 +52,7 @@ const LOCAL_DIR = process.env.LOCAL_DIR || '.'
|
|
|
52
52
|
const DEPENDENCIES = [
|
|
53
53
|
// Install alpha version of startupjs when running the alpha of cli
|
|
54
54
|
`startupjs@${STARTUPJS_VERSION}`,
|
|
55
|
-
'react-native-svg@^
|
|
55
|
+
'react-native-svg@^14.0.0',
|
|
56
56
|
'nconf@^0.10.0',
|
|
57
57
|
'react',
|
|
58
58
|
'react-dom',
|
|
@@ -148,6 +148,18 @@ SCRIPTS_ORIG.postinstall = () => oneLine(`
|
|
|
148
148
|
${SCRIPTS_ORIG.patchPackage()}
|
|
149
149
|
`)
|
|
150
150
|
|
|
151
|
+
SCRIPTS_ORIG.testE2E = ({ inspect } = {}) => {
|
|
152
|
+
return oneLine(`
|
|
153
|
+
startupjs build --async && npx concurrently "startupjs start-production" "sleep 15s && npx playwright test $@" --kill-others --success first
|
|
154
|
+
`)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
SCRIPTS_ORIG.codegenTestE2E = ({ inspect } = {}) => {
|
|
158
|
+
return oneLine(`
|
|
159
|
+
startupjs build --async && npx concurrently "startupjs start-production" "npx playwright codegen $@"
|
|
160
|
+
`)
|
|
161
|
+
}
|
|
162
|
+
|
|
151
163
|
const SCRIPTS = {
|
|
152
164
|
start: 'startupjs start',
|
|
153
165
|
metro: 'react-native start --reset-cache',
|
|
@@ -162,7 +174,9 @@ const SCRIPTS = {
|
|
|
162
174
|
ios: 'react-native run-ios',
|
|
163
175
|
'ios-release': 'react-native run-ios --configuration Release',
|
|
164
176
|
build: 'startupjs build --async',
|
|
165
|
-
'start-production': 'startupjs start-production'
|
|
177
|
+
'start-production': 'startupjs start-production',
|
|
178
|
+
'test-e2e': 'startupjs test-e2e',
|
|
179
|
+
'codegen-test-e2e': 'startupjs codegen-test-e2e'
|
|
166
180
|
}
|
|
167
181
|
|
|
168
182
|
const DEFAULT_TEMPLATE = 'ui'
|
|
@@ -189,11 +203,8 @@ const TEMPLATES = {
|
|
|
189
203
|
// === START UI PEER PEDS ===
|
|
190
204
|
`@startupjs/ui@${STARTUPJS_VERSION}`,
|
|
191
205
|
'@react-native-picker/picker@^1.16.1',
|
|
192
|
-
'react-native-
|
|
193
|
-
'react-native-
|
|
194
|
-
'react-native-gesture-handler@1.10.3',
|
|
195
|
-
'react-native-pager-view@^6.2.0',
|
|
196
|
-
'react-native-tab-view@^3.0.0'
|
|
206
|
+
'react-native-gesture-handler@^2.14.0',
|
|
207
|
+
'react-native-pager-view@^6.2.0'
|
|
197
208
|
// === END UI PEER DEPS ===
|
|
198
209
|
]
|
|
199
210
|
}
|
|
@@ -356,6 +367,26 @@ commander
|
|
|
356
367
|
)
|
|
357
368
|
})
|
|
358
369
|
|
|
370
|
+
commander
|
|
371
|
+
.command('test-e2e')
|
|
372
|
+
.description('Run e2e tests')
|
|
373
|
+
.action(async (options) => {
|
|
374
|
+
await execa.command(
|
|
375
|
+
SCRIPTS_ORIG.testE2E(options),
|
|
376
|
+
{ stdio: 'inherit', shell: true }
|
|
377
|
+
)
|
|
378
|
+
})
|
|
379
|
+
|
|
380
|
+
commander
|
|
381
|
+
.command('codegen-test-e2e')
|
|
382
|
+
.description('Run codegen for e2e tests')
|
|
383
|
+
.action(async (options) => {
|
|
384
|
+
await execa.command(
|
|
385
|
+
SCRIPTS_ORIG.codegenTestE2E(options),
|
|
386
|
+
{ stdio: 'inherit', shell: true }
|
|
387
|
+
)
|
|
388
|
+
})
|
|
389
|
+
|
|
359
390
|
commander
|
|
360
391
|
.command('web')
|
|
361
392
|
.description('Compile (with webpack) and run web')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0-alpha.0",
|
|
4
4
|
"description": "start, watch and build startupjs project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@startupjs/pm": "^0.
|
|
11
|
+
"@startupjs/pm": "^0.56.0-alpha.0",
|
|
12
12
|
"commander": "^3.0.1",
|
|
13
13
|
"concurrently": "^6.4.0",
|
|
14
14
|
"cross-env": "^7.0.3",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"webpack-cli": "^4.9.1",
|
|
25
25
|
"webpack-dev-server": "^4.4.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "076772b216a09281ed38b32866b576024562f099"
|
|
28
28
|
}
|