-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathworkspace-scripts.js
More file actions
164 lines (164 loc) · 5.07 KB
/
workspace-scripts.js
File metadata and controls
164 lines (164 loc) · 5.07 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
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 @nrwl/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 run apps-automated:clean',
description: '⚆ Clean 🧹'
},
ios: {
script: 'nx run apps-automated:ios',
description: '⚆ Run iOS '
},
android: {
script: 'nx run 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 run apps-toolbox:clean',
description: '⚆ Clean 🧹'
},
ios: {
script: 'nx run apps-toolbox:ios',
description: '⚆ Run iOS '
},
android: {
script: 'nx run 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 run apps-ui:clean',
description: '⚆ Clean 🧹'
},
ios: {
script: 'nx run apps-ui:ios',
description: '⚆ Run iOS '
},
android: {
script: 'nx run 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 run core:build',
description: '@nativescript/core: Build'
},
test: {
script: 'nx run core:unit',
description: '@nativescript/core: Unit tests',
watch: {
script: 'nx run core:unit.watch',
description: '@nativescript/core: Unit tests with watcher'
},
},
},
// @nativescript/core API Reference Docs
'core-api-docs': {
build: {
script: 'nx run core-api-docs:build',
description: '@nativescript/core: API Reference Docs Build'
}
},
// @nativescript/ui-mobile-base
'ui-mobile-base': {
build: {
script: 'nx run ui-mobile-base:build',
description: '@nativescript/ui-mobile-base: Build for npm'
},
},
// @nativescript/webpack
webpack: {
build: {
script: 'nx run webpack:build',
description: '@nativescript/webpack: Build for npm'
},
test: {
script: 'nx run webpack:test',
description: '@nativescript/webpack: Unit tests'
},
},
// @nativescript/webpack (5)
webpack5: {
build: {
script: 'nx run webpack5:build',
description: '@nativescript/webpack(5): Build for npm'
},
},
},
"⚡": {
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: '.....................'
}
},
};