@raisenow/tamaro-cli 1.6.1 → 1.7.0-dev.1

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.
Files changed (122) hide show
  1. package/.history/.eslintignore_20220609190420 +4 -0
  2. package/.history/.eslintignore_20230911190227 +6 -0
  3. package/.history/.eslintignore_20230911211247 +7 -0
  4. package/.history/.eslintignore_20230911211250 +7 -0
  5. package/.history/.eslintrc_20230911201601.js +49 -0
  6. package/.history/.eslintrc_20230911201643.js +49 -0
  7. package/.history/.eslintrc_20230911201735.js +49 -0
  8. package/.history/.eslintrc_20230911201913.js +64 -0
  9. package/.history/.eslintrc_20230911202002.js +62 -0
  10. package/.history/.eslintrc_20230911202138.js +133 -0
  11. package/.history/.eslintrc_20230911202140.js +133 -0
  12. package/.history/.eslintrc_20230911202145.js +133 -0
  13. package/.history/.eslintrc_20230911202147.js +133 -0
  14. package/.history/.eslintrc_20230911202406.js +133 -0
  15. package/.history/.eslintrc_20230911202447.js +133 -0
  16. package/.history/.eslintrc_20230911202453.js +133 -0
  17. package/.history/.eslintrc_20230911202511.js +133 -0
  18. package/.history/.eslintrc_20230911202527.js +133 -0
  19. package/.history/.eslintrc_20230911202639.js +125 -0
  20. package/.history/.eslintrc_20230911202721.js +149 -0
  21. package/.history/.eslintrc_20230911202746.js +149 -0
  22. package/.history/.eslintrc_20240423125702.cjs +148 -0
  23. package/.history/.gitignore_20220609190420 +14 -0
  24. package/.history/.gitignore_20230911185959 +4 -0
  25. package/.history/.gitignore_20230911190006 +4 -0
  26. package/.history/.gitignore_20230911190007 +4 -0
  27. package/.history/.nmprc_20241004144025 +0 -0
  28. package/.history/.nmprc_20241004144041 +1 -0
  29. package/.history/.npmrc_20241004144040 +1 -0
  30. package/.history/.npmrc_20241004144152 +1 -0
  31. package/.history/.npmrc_20241004145639 +2 -0
  32. package/.history/.npmrc_20241004145649 +1 -0
  33. package/.history/.nvmrc_20250729181039 +1 -0
  34. package/.history/.prettierignore_20220609190420 +5 -0
  35. package/.history/.prettierignore_20230911190242 +7 -0
  36. package/.history/.prettierignore_20230911190245 +7 -0
  37. package/.history/.prettierignore_20230911211301 +8 -0
  38. package/.history/CHANGELOG_20250729195139.md +28 -0
  39. package/.history/CHANGELOG_20250729195148.md +29 -0
  40. package/.history/CHANGELOG_20250729195156.md +28 -0
  41. package/.history/CHANGELOG_20250729195218.md +29 -0
  42. package/.history/CHANGELOG_20250729195223.md +27 -0
  43. package/.history/CHANGELOG_20250729195506.md +29 -0
  44. package/.history/CHANGELOG_20250729224404.md +30 -0
  45. package/.history/CHANGELOG_20250729224411.md +30 -0
  46. package/.history/CHANGELOG_20250730124538.md +41 -0
  47. package/.history/CHANGELOG_20250730124603.md +38 -0
  48. package/.history/CHANGELOG_20250730124627.md +36 -0
  49. package/.history/CHANGELOG_20250730124638.md +36 -0
  50. package/.history/CHANGELOG_20250730124640.md +36 -0
  51. package/.history/README_20230911145033.md +245 -0
  52. package/.history/README_20230911151749.md +245 -0
  53. package/.history/README_20230911151844.md +245 -0
  54. package/.history/README_20230911153040.md +245 -0
  55. package/.history/README_20230911202959.md +245 -0
  56. package/.history/bitbucket-pipelines_20250729111540.yml +46 -0
  57. package/.history/bitbucket-pipelines_20250729210338.yml +46 -0
  58. package/.history/bitbucket-pipelines_20250729210340.yml +46 -0
  59. package/.history/bitbucket-pipelines_20250729210342.yml +46 -0
  60. package/.history/bitbucket-pipelines_20250729222234.yml +47 -0
  61. package/.history/bitbucket-pipelines_20250729222554.yml +47 -0
  62. package/.history/bitbucket-pipelines_20250729222555.yml +47 -0
  63. package/.history/bitbucket-pipelines_20250729223022.yml +46 -0
  64. package/.history/bitbucket-pipelines_20250729223024.yml +46 -0
  65. package/.history/cli_20241005014539 +3 -0
  66. package/.history/cli_20241005014542 +3 -0
  67. package/.history/cli_20241005014848 +3 -0
  68. package/.history/dist/chunk-FICM3HUI_20230912183408.js +302 -0
  69. package/{dist/chunk-5D6F3T2J.js → .history/dist/chunk-FICM3HUI_20230912201610.js} +45 -98
  70. package/.history/package_20250729182417.json +111 -0
  71. package/.history/package_20250729182419.json +111 -0
  72. package/.history/package_20250729182618.json +110 -0
  73. package/.history/package_20250729182834.json +110 -0
  74. package/.history/package_20250729183032.json +110 -0
  75. package/.history/package_20250729183033.json +110 -0
  76. package/.history/package_20250729185750.json +110 -0
  77. package/.history/package_20250729185815.json +110 -0
  78. package/.history/package_20250729185846.json +110 -0
  79. package/.history/package_20250729185854.json +110 -0
  80. package/.history/package_20250729185943.json +110 -0
  81. package/.history/package_20250729190645.json +110 -0
  82. package/.history/package_20250729195934.json +110 -0
  83. package/.history/package_20250729200013.json +110 -0
  84. package/.history/package_20250729200056.json +110 -0
  85. package/.history/package_20250729200434.json +110 -0
  86. package/.history/package_20250729200808.json +110 -0
  87. package/.history/package_20250729200944.json +110 -0
  88. package/.history/package_20250729214420.json +114 -0
  89. package/.history/package_20250729223112.json +110 -0
  90. package/.history/package_20250729223127.json +110 -0
  91. package/.history/package_20250729223134.json +110 -0
  92. package/.history/package_20250730124647.json +114 -0
  93. package/.history/tsconfig_20241005001442.json +34 -0
  94. package/.history/tsconfig_20241005001500.json +34 -0
  95. package/.history/tsconfig_20241005001540.json +34 -0
  96. package/.history/tsconfig_20241005014429.json +42 -0
  97. package/.history/tsconfig_20241005014436.json +42 -0
  98. package/.history/tsconfig_20241005014439.json +38 -0
  99. package/.history/tsconfig_20241005014455.json +38 -0
  100. package/.history/tsconfig_20241005014521.json +38 -0
  101. package/.history/vitest.config_20250729214539.ts +0 -0
  102. package/.history/vitest.config_20250729214659.ts +24 -0
  103. package/.history/vitest.config_20250729214748.ts +21 -0
  104. package/.history/vitest.config_20250729214825.ts +21 -0
  105. package/.history/vitest.config_20250729214902.ts +21 -0
  106. package/.history/vitest.config_20250729222125.ts +20 -0
  107. package/.history/vitest.config_20250729222213.ts +20 -0
  108. package/.idea/codeStyles/Project.xml +131 -0
  109. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  110. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  111. package/.idea/misc.xml +17 -0
  112. package/.idea/modules.xml +8 -0
  113. package/.idea/prettier.xml +6 -0
  114. package/.idea/tamaro-cli.iml +12 -0
  115. package/.idea/vcs.xml +6 -0
  116. package/.nvmrc +1 -1
  117. package/bitbucket-pipelines.yml +1 -1
  118. package/dist/cli.js +754 -1160
  119. package/dist/env-C_Jkayak.js +261 -0
  120. package/dist/webpack.config.js +310 -441
  121. package/package.json +18 -22
  122. package/tsdown.config.ts +11 -0
@@ -0,0 +1,245 @@
1
+ # Getting started
2
+
3
+ It’s a command-line interface for all operations with Tamaro customer configurations and _Tamaro Core_.
4
+
5
+ You don’t need to install it manually. The recommended way to run it is by using the `npx` command, which comes along with NPM.
6
+
7
+ # Usage
8
+
9
+ To see an overview of all possible commands just run the following command without any arguments.
10
+
11
+ ```bash
12
+ npx -y @raisenow/tamaro-cli
13
+ ```
14
+
15
+ To see the informoation about some particular command (for example `dev` command), prepend `help` before the command name:
16
+
17
+ ```bash
18
+ npx -y @raisenow/tamaro-cli help dev
19
+ ```
20
+
21
+ Substitute `dev` with the command you want to get information about.
22
+
23
+ # Commands
24
+
25
+ Available commands:
26
+
27
+ - [`dev`](#dev)
28
+ - [`build`](#build)
29
+ - [`serve`](#serve)
30
+ - [`deploy`](#deploy)
31
+ - [`list-deployed`](#list-deployed)
32
+ - [`deploy-email-config`](#deploy-email-config)
33
+
34
+ ## `dev`
35
+
36
+ Runs the local development server for _Tamaro Core_ or a particular customer configuration.
37
+
38
+ ### Options
39
+
40
+ - `--local-core` – Load _Tamaro Core_ from localhost:1234 instead of the CDN
41
+ - `--https` – Let local web server serve Tamaro with SSL encryption
42
+ - `--port <port>` – Web server port (default: 1234)
43
+ - `--env <env>` – Environment (dev, stage, prod)
44
+
45
+ ### Run local server using Tamaro Core from CDN
46
+
47
+ Run the local development server for the _example-02-typical-customisations_ customer configuration. You will be able to access Tamaro on http://localhost:1234 (port may differ, see console output).
48
+
49
+ ```bash
50
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
51
+ npx -y @raisenow/tamaro-cli dev
52
+ ```
53
+
54
+ ### Run local server using a locally running Tamaro Core
55
+
56
+ 1. Run the local development web server for _Tamaro Core_ in the first terminal tab. You will be able to access a default configuration of Tamaro on http://localhost:1234 (port may differ, see console output).
57
+
58
+ ```bash
59
+ cd /path/to/tamaro-core
60
+ npx -y @raisenow/tamaro-cli dev
61
+ ```
62
+
63
+ 2. Run the local development web server for the _example-02-typical-customisations_ customer configuration in the second terminal tab. After running this command, you will able to access the configuration on http://localhost:1235 (port may differ, see console output).
64
+
65
+ ```bash
66
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
67
+ npx -y @raisenow/tamaro-cli dev --local-core
68
+ ```
69
+
70
+ ### Use Transport Level Security (HTTPS)
71
+
72
+ You might want to the local web server to serve Tamaro over HTTPS, for example for testing wallet payments over Google Pay. For that, you have to install [mkcert](https://mkcert.org/), then generate a local certificate and key file and install it into your local trust stores using this command in the root directory of the Tamaro configuration repository (or Tamaro Core):
73
+
74
+ Install `mkcert`:
75
+
76
+ ```bash
77
+ brew install mkcert
78
+ ```
79
+
80
+ Generate certificate:
81
+
82
+ ```bash
83
+ mkcert -install -cert-file localhost.crt -key-file localhost.key localhost 127.0.0.1 0.0.0.0 ::1
84
+ ```
85
+
86
+ You will see that the certificate and key files are created. Keep them for yourself. Do not share them or commit them. (They should be ignored by Git.)
87
+
88
+ You can then use the flag `--https` with the CLI. If you are using the local Tamaro Core, you also have to serve that over HTTPS. Certificate and key files must be copied to Tamaro Core folder as well.
89
+
90
+ ## `build`
91
+
92
+ Build an optimised (minified) bundle of _Tamaro Core_ or a customer configuration.
93
+
94
+ ### Options
95
+
96
+ - `--local-core` – Load _Tamaro Core_ from localhost:1234 instead of the CDN
97
+ - `--analyze` – Generate bundle statistics to `reports` folder
98
+ - `--serve` – Run the generated bundle with a local web server
99
+ - `--https` – Let local web server serve Tamaro with SSL encryption
100
+ - `--port <port>` – Web server port (default: 1234)
101
+ - `--env <env>` – Environment (dev, stage, prod)
102
+ - `--deploy` – Deploy _Tamaro Core_ or a customer configuration bundle to AWS S3
103
+ - `--tag <tag>` – Tag which should be used for the deployment of the bundle (default: “latest”)
104
+
105
+ ### Build and deploy a customer configuration
106
+
107
+ Build and deploy an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration.
108
+
109
+ ```bash
110
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
111
+ npx -y @raisenow/tamaro-cli build --deploy
112
+ ```
113
+
114
+ As a result, the bundle should be deployed to: https://tamaro.raisenow.com/example-02-typical-customisations/latest/
115
+
116
+ ### Build and deploy a customer configuration with a specific tag
117
+
118
+ Build and deploy an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration with the tag _WEB-123_.
119
+
120
+ ```bash
121
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
122
+ npx -y @raisenow/tamaro-cli build --deploy --tag WEB-123
123
+ ```
124
+
125
+ As a result, the bundle should be deployed to: https://tamaro.raisenow.com/example-02-typical-customisations/WEB-123/
126
+
127
+ ### Build and serve a customer configuration
128
+
129
+ Build and serve an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration.
130
+
131
+ After running this command, a local web server should be running on http://localhost:1234 (port may differ, see console output).
132
+
133
+ ```bash
134
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
135
+ npx -y @raisenow/tamaro-cli build --serve
136
+ ```
137
+
138
+ ## `serve`
139
+
140
+ Run a local web server for pre-built bundle.
141
+
142
+ ### Example
143
+
144
+ 1. Build an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration
145
+
146
+ ```bash
147
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
148
+ npx -y @raisenow/tamaro-cli build
149
+ ```
150
+
151
+ 2. Serve it. After running this command, web-server should be running on http://localhost:1234 (port may differ, see console output).
152
+
153
+ ```bash
154
+ npx -y @raisenow/tamaro-cli serve
155
+ ```
156
+
157
+ ## `deploy`
158
+
159
+ Deploy a pre-built _Tamaro Core_ or customer configuration bundle to AWS S3.
160
+
161
+ ### Options
162
+
163
+ - `--tag <tag>` – Tag which should be used for the deployment of the bundle (default: “latest”)
164
+
165
+ Make sure you have built the bundle before deploying it with this command, otherwise you may mistakenly deploy the bundle from a previous build.
166
+
167
+ ### Example
168
+
169
+ 1. Build an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration
170
+
171
+ ```bash
172
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
173
+ npx -y @raisenow/tamaro-cli build
174
+ ```
175
+
176
+ 2. Deploy it
177
+
178
+ ```bash
179
+ npx -y @raisenow/tamaro-cli deploy
180
+ ```
181
+
182
+ 3. Optionally, deploy it with the _WEB-123_ tag
183
+
184
+ ```bash
185
+ npx -y @raisenow/tamaro-cli deploy --tag WEB-123
186
+ ```
187
+
188
+ ## `list-deployed`
189
+
190
+ List deployments of _Tamaro Core_ or a particular customer configuration.
191
+
192
+ ### Options
193
+
194
+ - `--config <config>` – Configuration name (default: current customer configuration)
195
+
196
+ ### Example
197
+
198
+ ```bash
199
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
200
+ npx -y @raisenow/tamaro-cli list-deployed
201
+ ```
202
+
203
+ ## `deploy-email-config`
204
+
205
+ Deploy a widget’s email configuration to AWS S3.
206
+
207
+ ### Example
208
+
209
+ ```bash
210
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
211
+ npx -y @raisenow/tamaro-cli deploy-email-config
212
+ ```
213
+
214
+ # Development
215
+
216
+ Make sure you have installed and activated the proper `node` and `npm` versions.
217
+
218
+ - `node: ">= 16"`
219
+ - `npm: ">= 8"`
220
+
221
+ Clone the repository and install its dependencies:
222
+
223
+ ```bash
224
+ git clone git@bitbucket.org:raisenow/tamaro-cli.git
225
+ cd tamaro-cli
226
+ npm ci
227
+ ```
228
+
229
+ Link package source to be able to run its local version:
230
+
231
+ ```bash
232
+ npm link .
233
+ ```
234
+
235
+ Run the `build:watch` script to watch source files and automatically rebuild on changes. It must be running during the _Tamaro CLI_ development process.
236
+
237
+ ```bash
238
+ npm run build:watch
239
+ ```
240
+
241
+ To use the locally linked version of _Tamaro CLI_, use it without `@raisenow/` scope, `-y` flag is also not needed:
242
+
243
+ ```bash
244
+ npx tamaro-cli dev
245
+ ```
@@ -0,0 +1,245 @@
1
+ # Getting started
2
+
3
+ It’s a command-line interface for all operations with Tamaro customer configurations and _Tamaro Core_.
4
+
5
+ You don’t need to install it manually. The recommended way to run it is by using the `npx` command, which comes along with NPM.
6
+
7
+ # Usage
8
+
9
+ To see an overview of all possible commands just run the following command without any arguments.
10
+
11
+ ```bash
12
+ npx -y @raisenow/tamaro-cli
13
+ ```
14
+
15
+ To see the informoation about some particular command (for example `dev` command), prepend `help` before the command name:
16
+
17
+ ```bash
18
+ npx -y @raisenow/tamaro-cli help dev
19
+ ```
20
+
21
+ Substitute `dev` with the command you want to get information about.
22
+
23
+ # Commands
24
+
25
+ Available commands:
26
+
27
+ - [`dev`](#dev)
28
+ - [`build`](#build)
29
+ - [`serve`](#serve)
30
+ - [`deploy`](#deploy)
31
+ - [`list-deployed`](#list-deployed)
32
+ - [`deploy-email-config`](#deploy-email-config)
33
+
34
+ ## `dev`
35
+
36
+ Runs the local development server for _Tamaro Core_ or a particular customer configuration.
37
+
38
+ ### Options
39
+
40
+ - `--local-core` – Load _Tamaro Core_ from localhost:1234 instead of the CDN
41
+ - `--https` – Let local web server serve Tamaro with SSL encryption
42
+ - `--port <port>` – Web server port (default: 1234)
43
+ - `--env <env>` – Environment (dev, stage, prod)
44
+
45
+ ### Run local server using Tamaro Core from CDN
46
+
47
+ Run the local development server for the _example-02-typical-customisations_ customer configuration. You will be able to access Tamaro on http://localhost:1234 (port may differ, see console output).
48
+
49
+ ```bash
50
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
51
+ npx -y @raisenow/tamaro-cli dev
52
+ ```
53
+
54
+ ### Run local server using a locally running Tamaro Core
55
+
56
+ 1. Run the local development web server for _Tamaro Core_ in the first terminal tab. You will be able to access a default configuration of Tamaro on http://localhost:1234 (port may differ, see console output).
57
+
58
+ ```bash
59
+ cd /path/to/tamaro-core
60
+ npx -y @raisenow/tamaro-cli dev
61
+ ```
62
+
63
+ 2. Run the local development web server for the _example-02-typical-customisations_ customer configuration in the second terminal tab. After running this command, you will able to access the configuration on http://localhost:1235 (port may differ, see console output).
64
+
65
+ ```bash
66
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
67
+ npx -y @raisenow/tamaro-cli dev --local-core
68
+ ```
69
+
70
+ ### Use Transport Level Security (HTTPS)
71
+
72
+ You might want to the local web server to serve Tamaro over HTTPS, for example for testing wallet payments over Google Pay. For that, you have to install [mkcert](https://mkcert.org/), then generate a local certificate and key file and install it into your local trust stores using this command in the root directory of the Tamaro configuration repository (or Tamaro Core):
73
+
74
+ Install `mkcert`:
75
+
76
+ ```bash
77
+ brew install mkcert
78
+ ```
79
+
80
+ Generate certificate:
81
+
82
+ ```bash
83
+ mkcert -install -cert-file localhost.crt -key-file localhost.key localhost 127.0.0.1 0.0.0.0 ::1
84
+ ```
85
+
86
+ You will see that the certificate and key files are created. Keep them for yourself. Do not share them or commit them. (They should be ignored by Git.)
87
+
88
+ You can then use the flag `--https` with the CLI. If you are using the local Tamaro Core, you also have to serve that over HTTPS. Certificate and key files must be copied to Tamaro Core folder as well.
89
+
90
+ ## `build`
91
+
92
+ Build an optimised (minified) bundle of _Tamaro Core_ or a customer configuration.
93
+
94
+ ### Options
95
+
96
+ - `--local-core` – Load _Tamaro Core_ from localhost:1234 instead of the CDN
97
+ - `--analyze` – Generate bundle statistics to `reports` folder
98
+ - `--serve` – Run the generated bundle with a local web server
99
+ - `--https` – Let local web server serve Tamaro with SSL encryption
100
+ - `--port <port>` – Web server port (default: 1234)
101
+ - `--env <env>` – Environment (dev, stage, prod)
102
+ - `--deploy` – Deploy _Tamaro Core_ or a customer configuration bundle to AWS S3
103
+ - `--tag <tag>` – Tag which should be used for the deployment of the bundle (default: "latest")
104
+
105
+ ### Build and deploy a customer configuration
106
+
107
+ Build and deploy an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration.
108
+
109
+ ```bash
110
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
111
+ npx -y @raisenow/tamaro-cli build --deploy
112
+ ```
113
+
114
+ As a result, the bundle should be deployed to: https://tamaro.raisenow.com/example-02-typical-customisations/latest/
115
+
116
+ ### Build and deploy a customer configuration with a specific tag
117
+
118
+ Build and deploy an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration with the tag _WEB-123_.
119
+
120
+ ```bash
121
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
122
+ npx -y @raisenow/tamaro-cli build --deploy --tag WEB-123
123
+ ```
124
+
125
+ As a result, the bundle should be deployed to: https://tamaro.raisenow.com/example-02-typical-customisations/WEB-123/
126
+
127
+ ### Build and serve a customer configuration
128
+
129
+ Build and serve an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration.
130
+
131
+ After running this command, a local web server should be running on http://localhost:1234 (port may differ, see console output).
132
+
133
+ ```bash
134
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
135
+ npx -y @raisenow/tamaro-cli build --serve
136
+ ```
137
+
138
+ ## `serve`
139
+
140
+ Run a local web server for pre-built bundle.
141
+
142
+ ### Example
143
+
144
+ 1. Build an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration
145
+
146
+ ```bash
147
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
148
+ npx -y @raisenow/tamaro-cli build
149
+ ```
150
+
151
+ 2. Serve it. After running this command, web-server should be running on http://localhost:1234 (port may differ, see console output).
152
+
153
+ ```bash
154
+ npx -y @raisenow/tamaro-cli serve
155
+ ```
156
+
157
+ ## `deploy`
158
+
159
+ Deploy a pre-built _Tamaro Core_ or customer configuration bundle to AWS S3.
160
+
161
+ ### Options
162
+
163
+ - `--tag <tag>` – Tag which should be used for the deployment of the bundle (default: "latest")
164
+
165
+ Make sure you have built the bundle before deploying it with this command, otherwise you may mistakenly deploy the bundle from a previous build.
166
+
167
+ ### Example
168
+
169
+ 1. Build an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration
170
+
171
+ ```bash
172
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
173
+ npx -y @raisenow/tamaro-cli build
174
+ ```
175
+
176
+ 2. Deploy it
177
+
178
+ ```bash
179
+ npx -y @raisenow/tamaro-cli deploy
180
+ ```
181
+
182
+ 3. Optionally, deploy it with the _WEB-123_ tag
183
+
184
+ ```bash
185
+ npx -y @raisenow/tamaro-cli deploy --tag WEB-123
186
+ ```
187
+
188
+ ## `list-deployed`
189
+
190
+ List deployments of _Tamaro Core_ or a particular customer configuration.
191
+
192
+ ### Options
193
+
194
+ - `--config <config>` – Configuration name (default: current customer configuration)
195
+
196
+ ### Example
197
+
198
+ ```bash
199
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
200
+ npx -y @raisenow/tamaro-cli list-deployed
201
+ ```
202
+
203
+ ## `deploy-email-config`
204
+
205
+ Deploy a widget’s email configuration to AWS S3.
206
+
207
+ ### Example
208
+
209
+ ```bash
210
+ cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
211
+ npx -y @raisenow/tamaro-cli deploy-email-config
212
+ ```
213
+
214
+ # Development
215
+
216
+ Make sure you have installed and activated the proper `node` and `npm` versions.
217
+
218
+ - `node: ">= 16"`
219
+ - `npm: ">= 8"`
220
+
221
+ Clone the repository and install its dependencies:
222
+
223
+ ```bash
224
+ git clone git@bitbucket.org:raisenow/tamaro-cli.git
225
+ cd tamaro-cli
226
+ npm ci
227
+ ```
228
+
229
+ Link package source to be able to run its local version:
230
+
231
+ ```bash
232
+ npm link .
233
+ ```
234
+
235
+ Run the `build:watch` script to watch source files and automatically rebuild on changes. It must be running during the _Tamaro CLI_ development process.
236
+
237
+ ```bash
238
+ npm run build:watch
239
+ ```
240
+
241
+ To use the locally linked version of _Tamaro CLI_, use it without `@raisenow/` scope, `-y` flag is also not needed:
242
+
243
+ ```bash
244
+ npx tamaro-cli dev
245
+ ```