@raisenow/tamaro-cli 1.7.0-dev.0 → 1.7.0-dev.2
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/.eslintignore +7 -0
- package/.eslintrc.cjs +148 -0
- package/.history/.eslintignore_20220609190420 +4 -0
- package/.history/.eslintignore_20230911190227 +6 -0
- package/.history/.eslintignore_20230911211247 +7 -0
- package/.history/.eslintignore_20230911211250 +7 -0
- package/.history/.eslintrc_20230911201601.js +49 -0
- package/.history/.eslintrc_20230911201643.js +49 -0
- package/.history/.eslintrc_20230911201735.js +49 -0
- package/.history/.eslintrc_20230911201913.js +64 -0
- package/.history/.eslintrc_20230911202002.js +62 -0
- package/.history/.eslintrc_20230911202138.js +133 -0
- package/.history/.eslintrc_20230911202140.js +133 -0
- package/.history/.eslintrc_20230911202145.js +133 -0
- package/.history/.eslintrc_20230911202147.js +133 -0
- package/.history/.eslintrc_20230911202406.js +133 -0
- package/.history/.eslintrc_20230911202447.js +133 -0
- package/.history/.eslintrc_20230911202453.js +133 -0
- package/.history/.eslintrc_20230911202511.js +133 -0
- package/.history/.eslintrc_20230911202527.js +133 -0
- package/.history/.eslintrc_20230911202639.js +125 -0
- package/.history/.eslintrc_20230911202721.js +149 -0
- package/.history/.eslintrc_20230911202746.js +149 -0
- package/.history/.eslintrc_20240423125702.cjs +148 -0
- package/.history/.gitignore_20220609190420 +14 -0
- package/.history/.gitignore_20230911185959 +4 -0
- package/.history/.gitignore_20230911190006 +4 -0
- package/.history/.gitignore_20230911190007 +4 -0
- package/.history/.nmprc_20241004144025 +0 -0
- package/.history/.nmprc_20241004144041 +1 -0
- package/.history/.npmrc_20241004144040 +1 -0
- package/.history/.npmrc_20241004144152 +1 -0
- package/.history/.npmrc_20241004145639 +2 -0
- package/.history/.npmrc_20241004145649 +1 -0
- package/.history/.nvmrc_20250729181039 +1 -0
- package/.history/.prettierignore_20220609190420 +5 -0
- package/.history/.prettierignore_20230911190242 +7 -0
- package/.history/.prettierignore_20230911190245 +7 -0
- package/.history/.prettierignore_20230911211301 +8 -0
- package/.history/CHANGELOG_20250729195139.md +28 -0
- package/.history/CHANGELOG_20250729195148.md +29 -0
- package/.history/CHANGELOG_20250729195156.md +28 -0
- package/.history/CHANGELOG_20250729195218.md +29 -0
- package/.history/CHANGELOG_20250729195223.md +27 -0
- package/.history/CHANGELOG_20250729195506.md +29 -0
- package/.history/CHANGELOG_20250729224404.md +30 -0
- package/.history/CHANGELOG_20250729224411.md +30 -0
- package/.history/CHANGELOG_20250730124538.md +41 -0
- package/.history/CHANGELOG_20250730124603.md +38 -0
- package/.history/CHANGELOG_20250730124627.md +36 -0
- package/.history/CHANGELOG_20250730124638.md +36 -0
- package/.history/CHANGELOG_20250730124640.md +36 -0
- package/.history/README_20230911145033.md +245 -0
- package/.history/README_20230911151749.md +245 -0
- package/.history/README_20230911151844.md +245 -0
- package/.history/README_20230911153040.md +245 -0
- package/.history/README_20230911202959.md +245 -0
- package/.history/bitbucket-pipelines_20250729111540.yml +46 -0
- package/.history/bitbucket-pipelines_20250729210338.yml +46 -0
- package/.history/bitbucket-pipelines_20250729210340.yml +46 -0
- package/.history/bitbucket-pipelines_20250729210342.yml +46 -0
- package/.history/bitbucket-pipelines_20250729222234.yml +47 -0
- package/.history/bitbucket-pipelines_20250729222554.yml +47 -0
- package/.history/bitbucket-pipelines_20250729222555.yml +47 -0
- package/.history/bitbucket-pipelines_20250729223022.yml +46 -0
- package/.history/bitbucket-pipelines_20250729223024.yml +46 -0
- package/.history/cli_20241005014539 +3 -0
- package/.history/cli_20241005014542 +3 -0
- package/.history/cli_20241005014848 +3 -0
- package/.history/dist/chunk-FICM3HUI_20230912183408.js +302 -0
- package/{dist/chunk-ALQDGTID.js → .history/dist/chunk-FICM3HUI_20230912201610.js} +45 -150
- package/.history/package_20250729182417.json +111 -0
- package/.history/package_20250729182419.json +111 -0
- package/.history/package_20250729182618.json +110 -0
- package/.history/package_20250729182834.json +110 -0
- package/.history/package_20250729183032.json +110 -0
- package/.history/package_20250729183033.json +110 -0
- package/.history/package_20250729185750.json +110 -0
- package/.history/package_20250729185815.json +110 -0
- package/.history/package_20250729185846.json +110 -0
- package/.history/package_20250729185854.json +110 -0
- package/.history/package_20250729185943.json +110 -0
- package/.history/package_20250729190645.json +110 -0
- package/.history/package_20250729195934.json +110 -0
- package/.history/package_20250729200013.json +110 -0
- package/.history/package_20250729200056.json +110 -0
- package/.history/package_20250729200434.json +110 -0
- package/.history/package_20250729200808.json +110 -0
- package/.history/package_20250729200944.json +110 -0
- package/.history/package_20250729214420.json +114 -0
- package/.history/package_20250729223112.json +110 -0
- package/.history/package_20250729223127.json +110 -0
- package/.history/package_20250729223134.json +110 -0
- package/.history/package_20250730124647.json +114 -0
- package/.history/tsconfig_20241005001442.json +34 -0
- package/.history/tsconfig_20241005001500.json +34 -0
- package/.history/tsconfig_20241005001540.json +34 -0
- package/.history/tsconfig_20241005014429.json +42 -0
- package/.history/tsconfig_20241005014436.json +42 -0
- package/.history/tsconfig_20241005014439.json +38 -0
- package/.history/tsconfig_20241005014455.json +38 -0
- package/.history/tsconfig_20241005014521.json +38 -0
- package/.history/vitest.config_20250729214539.ts +0 -0
- package/.history/vitest.config_20250729214659.ts +24 -0
- package/.history/vitest.config_20250729214748.ts +21 -0
- package/.history/vitest.config_20250729214825.ts +21 -0
- package/.history/vitest.config_20250729214902.ts +21 -0
- package/.history/vitest.config_20250729222125.ts +20 -0
- package/.history/vitest.config_20250729222213.ts +20 -0
- package/.idea/codeStyles/Project.xml +131 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +17 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/tamaro-cli.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.nvmrc +1 -0
- package/.prettierignore +8 -0
- package/.prettierrc.cjs +19 -0
- package/bitbucket-pipelines.yml +47 -0
- package/dist/cli.js +768 -1461
- package/dist/env-Bx5mwt8E.js +254 -0
- package/dist/webpack.config.js +308 -443
- package/package.json +28 -39
- package/renovate.json +3 -0
- package/tsdown.config.ts +13 -0
- package/vitest.config.ts +20 -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 information 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,46 @@
|
|
|
1
|
+
image: node:20.18
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm tscheck
|
|
39
|
+
# Do not bother for dev deps
|
|
40
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
41
|
+
- pnpm audit --audit-level=critical --prod
|
|
42
|
+
|
|
43
|
+
pipelines:
|
|
44
|
+
default:
|
|
45
|
+
- step: *install
|
|
46
|
+
- step: *check
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
image: node:20.18
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
# Do not bother for dev deps
|
|
40
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
41
|
+
- pnpm audit --audit-level=critical --prod
|
|
42
|
+
|
|
43
|
+
pipelines:
|
|
44
|
+
default:
|
|
45
|
+
- step: *install
|
|
46
|
+
- step: *check
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
image: node:20.18
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
# Do not bother for dev deps
|
|
40
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
41
|
+
- pnpm audit --audit-level=critical --prod
|
|
42
|
+
|
|
43
|
+
pipelines:
|
|
44
|
+
default:
|
|
45
|
+
- step: *install
|
|
46
|
+
- step: *check
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
image: node:20.18
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
# Do not bother for dev deps
|
|
40
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
41
|
+
- pnpm audit --audit-level=critical --prod
|
|
42
|
+
|
|
43
|
+
pipelines:
|
|
44
|
+
default:
|
|
45
|
+
- step: *install
|
|
46
|
+
- step: *check
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
image: node:20.18
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
- pnpm test
|
|
40
|
+
# Do not bother for dev deps
|
|
41
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
42
|
+
- pnpm audit --audit-level=critical --prod
|
|
43
|
+
|
|
44
|
+
pipelines:
|
|
45
|
+
default:
|
|
46
|
+
- step: *install
|
|
47
|
+
- step: *check
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
image: node:22
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
- pnpm test
|
|
40
|
+
# Do not bother for dev deps
|
|
41
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
42
|
+
- pnpm audit --audit-level=critical --prod
|
|
43
|
+
|
|
44
|
+
pipelines:
|
|
45
|
+
default:
|
|
46
|
+
- step: *install
|
|
47
|
+
- step: *check
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
image: node:22
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
- pnpm test
|
|
40
|
+
# Do not bother for dev deps
|
|
41
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
42
|
+
- pnpm audit --audit-level=critical --prod
|
|
43
|
+
|
|
44
|
+
pipelines:
|
|
45
|
+
default:
|
|
46
|
+
- step: *install
|
|
47
|
+
- step: *check
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
image: node:22
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
# Do not bother for dev deps
|
|
40
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
41
|
+
- pnpm audit --audit-level=critical --prod
|
|
42
|
+
|
|
43
|
+
pipelines:
|
|
44
|
+
default:
|
|
45
|
+
- step: *install
|
|
46
|
+
- step: *check
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
image: node:22
|
|
2
|
+
|
|
3
|
+
definitions:
|
|
4
|
+
caches:
|
|
5
|
+
node:
|
|
6
|
+
key:
|
|
7
|
+
files:
|
|
8
|
+
- pnpm-lock.yaml
|
|
9
|
+
- package.json
|
|
10
|
+
path: node_modules
|
|
11
|
+
pnpm:
|
|
12
|
+
key:
|
|
13
|
+
files:
|
|
14
|
+
- pnpm-lock.yaml
|
|
15
|
+
- package.json
|
|
16
|
+
path: $BITBUCKET_CLONE_DIR/.pnpm-store
|
|
17
|
+
scripts:
|
|
18
|
+
initialize: &initialize |-
|
|
19
|
+
corepack enable pnpm
|
|
20
|
+
corepack prepare --activate
|
|
21
|
+
steps:
|
|
22
|
+
- step: &install
|
|
23
|
+
name: Install dependencies
|
|
24
|
+
caches:
|
|
25
|
+
- node
|
|
26
|
+
- pnpm
|
|
27
|
+
script:
|
|
28
|
+
- *initialize
|
|
29
|
+
- pnpm install --prefer-offline
|
|
30
|
+
- step: &check
|
|
31
|
+
name: Check
|
|
32
|
+
caches:
|
|
33
|
+
- node
|
|
34
|
+
- pnpm
|
|
35
|
+
script:
|
|
36
|
+
- *initialize
|
|
37
|
+
- pnpm lint
|
|
38
|
+
- pnpm typecheck
|
|
39
|
+
# Do not bother for dev deps
|
|
40
|
+
# @see https://raisenow.atlassian.net/wiki/spaces/PD/pages/5680037889/TP+RFC+014+-+Unsafe+Outdated+Libraries+Upgrades#Regular-upgrade-of-NPM-libraries-versions
|
|
41
|
+
- pnpm audit --audit-level=critical --prod
|
|
42
|
+
|
|
43
|
+
pipelines:
|
|
44
|
+
default:
|
|
45
|
+
- step: *install
|
|
46
|
+
- step: *check
|