-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathworkspace-scripts.js
More file actions
165 lines (165 loc) · 5.1 KB
/
workspace-scripts.js
File metadata and controls
165 lines (165 loc) · 5.1 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
module.exports = {
message: 'NativeScript ~ made with ❤️ Choose a command to start...',
pageSize: 32,
scripts: {
default: 'nps-i',
nx: {
script: 'nx',
description: 'Execute any command with the Nx cli'
},
format: {
script: 'nx format:write',
description: 'Format source code of the entire workspace (auto-run on precommit hook)'
},
"🔧": {
script: `npx cowsay "NativeScript apps are key to a user's ❤️"`,
description: '_____________ Apps to develop and experiment with _____________'
},
// app testing targets
apps: {
"...Automated...": {
script: `npx cowsay "These run fast, watch the fireworks! 🎆"`,
description: ` 🔻 Automated test runner which executes e2e tests on the target platform 🎆`
},
// Automated test runner which executes e2e tests on the target platform
automated: {
clean: {
script: 'nx clean apps-automated',
description: '⚆ Clean 🧹'
},
ios: {
script: 'nx debug apps-automated ios',
description: '⚆ Run iOS '
},
visionos: {
script: 'nx debug apps-automated vision',
description: '⚆ Run visionOS 🥽'
},
android: {
script: 'nx debug apps-automated android',
description: '⚆ Run Android 🤖'
},
},
"...ToolBox...": {
script: `npx cowsay "🎯 The best development target to experiment with ideas and debug core"`,
description: ` 🔻 Toolbox for livesyncing changes and experimenting 🎯`
},
// Toolbox useful for livesyncing changes and experimenting
toolbox: {
clean: {
script: 'nx clean apps-toolbox',
description: '⚆ Clean 🧹'
},
ios: {
script: 'nx debug apps-toolbox ios',
description: '⚆ Run iOS '
},
visionos: {
script: 'nx debug apps-toolbox vision',
description: '⚆ Run visionOS 🥽'
},
android: {
script: 'nx debug apps-toolbox android',
description: '⚆ Run Android 🤖'
},
},
"...UI...": {
script: `npx cowsay "Tons of ui samples to prove out core behavior and validate github issue fixes ☑️"`,
description: ` 🔻 Tons of ui samples to prove out core behavior and validate github issue fixes ☑️`
},
// Various UI level setups for @nativescript/core testing
ui: {
clean: {
script: 'nx clean apps-ui',
description: '⚆ Clean 🧹'
},
ios: {
script: 'nx debug apps-ui ios',
description: '⚆ Run iOS '
},
visionos: {
script: 'nx debug apps-ui vision',
description: '⚆ Run visionOS 🥽'
},
android: {
script: 'nx debug apps-ui android',
description: '⚆ Run Android 🤖'
},
},
},
"⚙️": {
script: `npx cowsay "@nativescript/* packages will keep your ⚙️ cranking"`,
description: '_____________ @nativescript/* _____________'
},
// packages
// build output is always in dist/packages
'@nativescript': {
// @nativescript/core
core: {
build: {
script: 'nx build core',
description: '@nativescript/core: Build'
},
test: {
script: 'nx test core',
description: '@nativescript/core: Unit tests'
},
},
// @nativescript/core API Reference Docs
'core-api-docs': {
build: {
script: 'nx build core-api-docs',
description: '@nativescript/core: API Reference Docs Build'
}
},
// @nativescript/ui-mobile-base
'ui-mobile-base': {
build: {
script: 'nx build ui-mobile-base',
description: '@nativescript/ui-mobile-base: Build for npm'
},
},
// @nativescript/webpack (5)
webpack5: {
build: {
script: 'nx build webpack5',
description: '@nativescript/webpack(5): Build for npm'
},
test: {
script: 'nx test webpack5',
description: '@nativescript/webpack(5): Unit tests'
},
},
},
"⚡": {
script: `npx cowsay "Focus only on source you care about for efficiency ⚡"`,
description: '_____________ Focus (VS Code supported) _____________'
},
focus: {
core: {
script: 'nx g @nstudio/focus:mode core',
description: 'Focus on @nativescript/core'
},
types: {
script: 'nx g @nstudio/focus:mode types-android,types-ios',
description: 'Focus on @nativescript/types'
},
'ui-mobile-base': {
script: 'nx g @nstudio/focus:mode ui-mobile-base',
description: 'Focus on @nativescript/ui-mobile-base'
},
webpack: {
script: 'nx g @nstudio/focus:mode webpack',
description: 'Focus on @nativescript/webpack'
},
reset: {
script: 'nx g @nstudio/focus:mode',
description: 'Reset Focus'
}
},
".....................": {
script: `npx cowsay "That's all for now folks ~"`,
description: '.....................'
}
},
};