@transi-store/cli 0.1.0 → 0.1.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.
- package/README.md +54 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +4 -1
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# transi-store cli
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -g @transi-store/cli
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
### With configuration file
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
transi-store [options]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
For more information, run:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
transi-store --help
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
#### Options
|
|
24
|
+
|
|
25
|
+
- `--config <path>`: Path to the configuration file (default: `transi-store.config.json`).
|
|
26
|
+
|
|
27
|
+
### With parameters
|
|
28
|
+
|
|
29
|
+
If you don't want to use a configuration file, you can provide the necessary parameters directly in the command line:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
transi-store download --org <orgSlug> \
|
|
33
|
+
--project <projectSlug> \
|
|
34
|
+
--locale <locale> \
|
|
35
|
+
--output <outputPath> \
|
|
36
|
+
--format <format> \
|
|
37
|
+
--apiKey <apiKey>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Contributing
|
|
41
|
+
|
|
42
|
+
### Publish package
|
|
43
|
+
|
|
44
|
+
To publish a new version of the CLI package, follow these steps:
|
|
45
|
+
|
|
46
|
+
1. Update the version number in `packages/cli/package.json`.
|
|
47
|
+
2. Commit the changes with a message like `chore(cli): publish version x.y.z
|
|
48
|
+
3. Run the publish script from the root of the monorepo:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
yarn build:cli
|
|
52
|
+
cd packages/cli
|
|
53
|
+
npm publish --access public
|
|
54
|
+
```
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,cAAc,EACd,iBAAiB,GAElB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,OAAO,CAAC,UAAU,CAAC;KACnB,WAAW,CAAC,qCAAqC,CAAC;KAClD,cAAc,CAAC,iBAAiB,EAAE,mBAAmB,CAAC;KACtD,cAAc,CAAC,yBAAyB,EAAE,cAAc,CAAC;KACzD,cAAc,CAAC,wBAAwB,EAAE,4BAA4B,CAAC;KACtE,cAAc,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC3D,cAAc,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC3D,MAAM,CAAC,uBAAuB,EAAE,iCAAiC,EAAE,MAAM,CAAC;KAC1E,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;IAClB,iBAAiB,CAAC,OAAwB,CAAC,CAAC;AAC9C,CAAC,CAAC,CAAC;AAEL,OAAO;KACJ,OAAO,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;KACtC,WAAW,CAAC,oCAAoC,CAAC;KACjD,MAAM,CACL,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,CAC3B;KACA,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;IAClB,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transi-store/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dist/cli.js"
|
|
8
8
|
},
|
|
9
|
+
"bin": {
|
|
10
|
+
"transi-store": "./dist/cli.js"
|
|
11
|
+
},
|
|
9
12
|
"dependencies": {
|
|
10
13
|
"@commander-js/extra-typings": "^14.0.0",
|
|
11
14
|
"commander": "^14.0.3",
|