-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathworkspace-scripts.js
More file actions
110 lines (110 loc) · 3.29 KB
/
Copy pathworkspace-scripts.js
File metadata and controls
110 lines (110 loc) · 3.29 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
module.exports = {
message: 'NativeScript Plugins ~ 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 plugin demos make developers 😊"`,
description: '_____________ Apps to demo plugins with _____________',
},
// demos
apps: {
'...Vanilla...': {
script: `npx cowsay "Nothing wrong with vanilla 🍦"`,
description: ` 🔻 Vanilla`,
},
demo: {
clean: {
script: 'nx clean demo',
description: '⚆ Clean 🧹',
},
ios: {
script: 'nx debug demo ios',
description: '⚆ Run iOS ',
},
android: {
script: 'nx debug demo 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/payments
payments: {
build: {
script: 'nx run payments:build.all',
description: '@nativescript/payments: Build',
},
},
// @nativescript/google-pay
'google-pay': {
build: {
script: 'nx run google-pay:build.all',
description: '@nativescript/google-pay: Build',
},
},
// @nativescript/apple-pay
'apple-pay': {
build: {
script: 'nx run apple-pay:build.all',
description: '@nativescript/apple-pay: Build',
},
},
// @nativescript/square-in-app-payments
'square-in-app-payments': {
build: {
script: 'nx run square-in-app-payments:build.all',
description: '@nativescript/square-in-app-payments: Build',
},
},
'build-all': {
script: 'nx run-many --target=build.all --all',
description: 'Build all packages',
},
},
'⚡': {
script: `npx cowsay "Focus only on source you care about for efficiency ⚡"`,
description: '_____________ Focus (VS Code supported) _____________',
},
focus: {
payments: {
script: 'nx run payments:focus',
description: 'Focus on @nativescript/payments',
},
'google-pay': {
script: 'nx run google-pay:focus',
description: 'Focus on @nativescript/google-pay',
},
'apple-pay': {
script: 'nx run apple-pay:focus',
description: 'Focus on @nativescript/apple-pay',
},
'square-in-app-payments': {
script: 'nx run square-in-app-payments:focus',
description: 'Focus on @nativescript/square-in-app-payments',
},
reset: {
script: 'nx g @nativescript/plugin-tools:focus-packages',
description: 'Reset Focus',
},
},
'.....................': {
script: `npx cowsay "That's all for now folks ~"`,
description: '.....................',
},
},
};