yata-fetch 2.0.2 → 2.1.5
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/.editorconfig +10 -0
- package/.gitattributes +4 -0
- package/.github/workflows/publish.yaml +15 -6
- package/.github/workflows/test.yaml +23 -134
- package/.tool-versions +1 -1
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
- package/.yarn/releases/yarn-3.5.0.cjs +873 -0
- package/.yarn/versions/32a76712.yml +0 -0
- package/.yarn/versions/8de51e3c.yml +0 -0
- package/.yarn/versions/b754bf0d.yml +0 -0
- package/.yarnrc.yml +9 -0
- package/README.md +14 -10
- package/bin/yata-fetch.js +0 -0
- package/package.json +12 -16
- package/.husky/commit-msg +0 -4
- package/commitlint.config.cjs +0 -1
- package/package-lock.json +0 -8563
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/.yarnrc.yml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
nodeLinker: node-modules
|
|
2
|
+
|
|
3
|
+
plugins:
|
|
4
|
+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
|
5
|
+
spec: '@yarnpkg/plugin-interactive-tools'
|
|
6
|
+
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
|
|
7
|
+
spec: '@yarnpkg/plugin-version'
|
|
8
|
+
|
|
9
|
+
yarnPath: .yarn/releases/yarn-3.5.0.cjs
|
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ Welcome to Yata integration package, this package will allow you to easy get you
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
+
`yarn add yata-fetch -D`
|
|
9
10
|
`npm install yata-fetch -D`
|
|
10
11
|
|
|
11
12
|
## Usage
|
|
@@ -29,9 +30,7 @@ Example `.yata.json` file:
|
|
|
29
30
|
{
|
|
30
31
|
"token": "MY_YATA_API_TOKEN",
|
|
31
32
|
"project": "XXX",
|
|
32
|
-
"locales": [
|
|
33
|
-
"en_US", "de_DE"
|
|
34
|
-
],
|
|
33
|
+
"locales": ["en_US", "de_DE"],
|
|
35
34
|
"format": "yml",
|
|
36
35
|
"root": false,
|
|
37
36
|
"outputPath": "./translations",
|
|
@@ -66,9 +65,7 @@ Example:
|
|
|
66
65
|
$ yata-fetch --config .yata.json --locale en_US
|
|
67
66
|
```
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
It's best to create scripts for generating translations in `package.json` file. For example:
|
|
68
|
+
It's recommended to create scripts for generating translations in `package.json` file. For example:
|
|
72
69
|
|
|
73
70
|
```json
|
|
74
71
|
"scripts": {
|
|
@@ -77,7 +74,7 @@ It's best to create scripts for generating translations in `package.json` file.
|
|
|
77
74
|
}
|
|
78
75
|
```
|
|
79
76
|
|
|
80
|
-
and simply call with `npm run yata-fetch`
|
|
77
|
+
and simply call with `yarn yata-fetch` or `npm run yata-fetch`
|
|
81
78
|
|
|
82
79
|
## Problems?
|
|
83
80
|
|
|
@@ -93,19 +90,25 @@ Want help to develop this package? Please open a Pull Request.
|
|
|
93
90
|
|
|
94
91
|
```
|
|
95
92
|
git clone <this repository>
|
|
96
|
-
|
|
93
|
+
yarn install
|
|
97
94
|
```
|
|
98
95
|
|
|
99
96
|
### Running Tests
|
|
100
97
|
|
|
101
98
|
```
|
|
102
|
-
|
|
99
|
+
yarn test
|
|
103
100
|
```
|
|
104
101
|
|
|
105
102
|
### Building
|
|
106
103
|
|
|
107
104
|
```
|
|
108
|
-
|
|
105
|
+
yarn build
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Upgrading
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
yarn upgrade-interactive
|
|
109
112
|
```
|
|
110
113
|
|
|
111
114
|
### Release
|
|
@@ -114,6 +117,7 @@ npm run build
|
|
|
114
117
|
npm version <major|minor|patch>
|
|
115
118
|
git push origin --tags
|
|
116
119
|
```
|
|
120
|
+
|
|
117
121
|
Optionally create new release entry in Github Releases.
|
|
118
122
|
When Github Action detect new version there will be automatic release to NPM.
|
|
119
123
|
|
package/bin/yata-fetch.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yata-fetch",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.5",
|
|
4
|
+
"packageManager": "yarn@3.5.0",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"description": "Adds CLI interface for importing translation files from Yata",
|
|
6
7
|
"license": "MIT",
|
|
@@ -17,9 +18,7 @@
|
|
|
17
18
|
"type": "git",
|
|
18
19
|
"url": "git://github.com/dzbo/yata-fetch.git"
|
|
19
20
|
},
|
|
20
|
-
"bin":
|
|
21
|
-
"yata-fetch": "./bin/yata-fetch.js"
|
|
22
|
-
},
|
|
21
|
+
"bin": "./bin/yata-fetch.js",
|
|
23
22
|
"scripts": {
|
|
24
23
|
"build": "vite build",
|
|
25
24
|
"generate": "node bin/yata-fetch.js --config test/fixtures/yata.json",
|
|
@@ -34,19 +33,16 @@
|
|
|
34
33
|
"nconf": "0.12.0"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
|
-
"@commitlint/cli": "17.0.3",
|
|
38
|
-
"@commitlint/config-conventional": "17.0.3",
|
|
39
36
|
"@types/nconf": "0.10.3",
|
|
40
|
-
"@types/node": "18.
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
42
|
-
"@typescript-eslint/parser": "5.
|
|
43
|
-
"c8": "7.
|
|
44
|
-
"eslint": "8.
|
|
45
|
-
"husky": "8.0.1",
|
|
37
|
+
"@types/node": "18.16.1",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "5.59.1",
|
|
39
|
+
"@typescript-eslint/parser": "5.59.1",
|
|
40
|
+
"c8": "7.13.0",
|
|
41
|
+
"eslint": "8.39.0",
|
|
46
42
|
"npm-run-all": "4.1.5",
|
|
47
|
-
"prettier": "2.
|
|
48
|
-
"typescript": "^
|
|
49
|
-
"vite": "^3.
|
|
50
|
-
"vitest": "0.
|
|
43
|
+
"prettier": "2.8.8",
|
|
44
|
+
"typescript": "^5.0.4",
|
|
45
|
+
"vite": "^4.3.2",
|
|
46
|
+
"vitest": "0.30.1"
|
|
51
47
|
}
|
|
52
48
|
}
|
package/.husky/commit-msg
DELETED
package/commitlint.config.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = {extends: ['@commitlint/config-conventional']}
|