@vocab/cli 0.0.0-package-files-20231142931 → 0.0.0-push-split-translation-files-20230508031119

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ ### MIT License
2
+
3
+ Copyright (c) 2020 SEEK
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -13,15 +13,16 @@ var envCi__default = /*#__PURE__*/_interopDefault(envCi);
13
13
  /* eslint-disable no-console */
14
14
  const {
15
15
  branch
16
- } = envCi__default['default']();
16
+ } = envCi__default["default"]();
17
17
  const branchDefinition = {
18
18
  type: 'string',
19
19
  describe: 'The Phrase branch to target',
20
20
  default: branch || 'local-development'
21
21
  };
22
- let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions
22
+ let config = null;
23
23
 
24
- yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('config', {
24
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
25
+ yargs__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', {
25
26
  type: 'string',
26
27
  describe: 'Path to config file'
27
28
  }).middleware(async ({
@@ -31,7 +32,7 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
31
32
  console.log('Loaded config from', configPath || process.cwd());
32
33
  }).command({
33
34
  command: 'push',
34
- builder: () => yargs__default['default'].options({
35
+ builder: () => yargs__default["default"].options({
35
36
  branch: branchDefinition,
36
37
  'delete-unused-keys': {
37
38
  type: 'boolean',
@@ -44,7 +45,7 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
44
45
  }
45
46
  }).command({
46
47
  command: 'pull',
47
- builder: () => yargs__default['default'].options({
48
+ builder: () => yargs__default["default"].options({
48
49
  branch: branchDefinition
49
50
  }),
50
51
  handler: async options => {
@@ -52,7 +53,7 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
52
53
  }
53
54
  }).command({
54
55
  command: 'compile',
55
- builder: () => yargs__default['default'].options({
56
+ builder: () => yargs__default["default"].options({
56
57
  watch: {
57
58
  type: 'boolean',
58
59
  default: false
@@ -69,7 +70,6 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
69
70
  command: 'validate',
70
71
  handler: async () => {
71
72
  const valid = await core.validate(config);
72
-
73
73
  if (!valid) {
74
74
  throw new Error('Project invalid');
75
75
  }
@@ -13,15 +13,16 @@ var envCi__default = /*#__PURE__*/_interopDefault(envCi);
13
13
  /* eslint-disable no-console */
14
14
  const {
15
15
  branch
16
- } = envCi__default['default']();
16
+ } = envCi__default["default"]();
17
17
  const branchDefinition = {
18
18
  type: 'string',
19
19
  describe: 'The Phrase branch to target',
20
20
  default: branch || 'local-development'
21
21
  };
22
- let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions
22
+ let config = null;
23
23
 
24
- yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('config', {
24
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
25
+ yargs__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', {
25
26
  type: 'string',
26
27
  describe: 'Path to config file'
27
28
  }).middleware(async ({
@@ -31,7 +32,7 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
31
32
  console.log('Loaded config from', configPath || process.cwd());
32
33
  }).command({
33
34
  command: 'push',
34
- builder: () => yargs__default['default'].options({
35
+ builder: () => yargs__default["default"].options({
35
36
  branch: branchDefinition,
36
37
  'delete-unused-keys': {
37
38
  type: 'boolean',
@@ -44,7 +45,7 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
44
45
  }
45
46
  }).command({
46
47
  command: 'pull',
47
- builder: () => yargs__default['default'].options({
48
+ builder: () => yargs__default["default"].options({
48
49
  branch: branchDefinition
49
50
  }),
50
51
  handler: async options => {
@@ -52,7 +53,7 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
52
53
  }
53
54
  }).command({
54
55
  command: 'compile',
55
- builder: () => yargs__default['default'].options({
56
+ builder: () => yargs__default["default"].options({
56
57
  watch: {
57
58
  type: 'boolean',
58
59
  default: false
@@ -69,7 +70,6 @@ yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('con
69
70
  command: 'validate',
70
71
  handler: async () => {
71
72
  const valid = await core.validate(config);
72
-
73
73
  if (!valid) {
74
74
  throw new Error('Project invalid');
75
75
  }
@@ -12,8 +12,9 @@ const branchDefinition = {
12
12
  describe: 'The Phrase branch to target',
13
13
  default: branch || 'local-development'
14
14
  };
15
- let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions
15
+ let config = null;
16
16
 
17
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
17
18
  yargs(process.argv.slice(2)).scriptName('vocab').option('config', {
18
19
  type: 'string',
19
20
  describe: 'Path to config file'
@@ -62,7 +63,6 @@ yargs(process.argv.slice(2)).scriptName('vocab').option('config', {
62
63
  command: 'validate',
63
64
  handler: async () => {
64
65
  const valid = await validate(config);
65
-
66
66
  if (!valid) {
67
67
  throw new Error('Project invalid');
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocab/cli",
3
- "version": "0.0.0-package-files-20231142931",
3
+ "version": "0.0.0-push-split-translation-files-20230508031119",
4
4
  "main": "dist/vocab-cli.cjs.js",
5
5
  "module": "dist/vocab-cli.esm.js",
6
6
  "bin": {
@@ -14,8 +14,8 @@
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
16
  "@types/env-ci": "^3.1.0",
17
- "@vocab/core": "^1.1.0",
18
- "@vocab/phrase": "^0.0.0-package-files-20231142931",
17
+ "@vocab/core": "^1.3.1",
18
+ "@vocab/phrase": "0.0.0-push-split-translation-files-20230508031119",
19
19
  "env-ci": "^5.0.2",
20
20
  "fast-glob": "^3.2.4",
21
21
  "form-data": "^3.0.0",
@@ -28,4 +28,4 @@
28
28
  "@types/prettier": "^2.1.5",
29
29
  "@types/yargs": "^15.0.9"
30
30
  }
31
- }
31
+ }
package/CHANGELOG.md DELETED
@@ -1,213 +0,0 @@
1
- # @vocab/cli
2
-
3
- ## 0.0.0-package-files-20231142931
4
-
5
- ### Patch Changes
6
-
7
- - [`29c81d3`](https://github.com/seek-oss/vocab/commit/29c81d370799f631d97c45e727b8cf81453bd398) Thanks [@askoufis](https://github.com/askoufis)! - Exclude source files from package build
8
-
9
- - Updated dependencies [[`29c81d3`](https://github.com/seek-oss/vocab/commit/29c81d370799f631d97c45e727b8cf81453bd398)]:
10
- - @vocab/phrase@0.0.0-package-files-20231142931
11
-
12
- ## 1.2.0
13
-
14
- ### Minor Changes
15
-
16
- - [`66ed22c`](https://github.com/seek-oss/vocab/commit/66ed22cac6f89018d5fd69fd6f6408e090e1a382) [#93](https://github.com/seek-oss/vocab/pull/93) Thanks [@askoufis](https://github.com/askoufis)! - Add an optional `delete-unused-keys` flag to the `push` command. If set to `true`, unused keys will be deleted from Phrase after translations are pushed.
17
-
18
- **EXAMPLE USAGE**:
19
-
20
- ```bash
21
- vocab push --delete-unused-keys
22
- ```
23
-
24
- ### Patch Changes
25
-
26
- - Updated dependencies [[`66ed22c`](https://github.com/seek-oss/vocab/commit/66ed22cac6f89018d5fd69fd6f6408e090e1a382), [`159d559`](https://github.com/seek-oss/vocab/commit/159d559c87c66c3e91c707fb45a1f67ebec07b4d)]:
27
- - @vocab/phrase@1.1.0
28
-
29
- ## 1.1.0
30
-
31
- ### Minor Changes
32
-
33
- - [`87333d7`](https://github.com/seek-oss/vocab/commit/87333d79c4a883b07d7d8f2c272b16e2243c49bd) [#80](https://github.com/seek-oss/vocab/pull/80) Thanks [@askoufis](https://github.com/askoufis)! - Enable the creation of generated languages via the `generatedLanguages` config.
34
- See [the docs] for more information and examples.
35
-
36
- [the docs]: https://github.com/seek-oss/vocab#generated-languages
37
-
38
- ### Patch Changes
39
-
40
- - Updated dependencies [[`87333d7`](https://github.com/seek-oss/vocab/commit/87333d79c4a883b07d7d8f2c272b16e2243c49bd)]:
41
- - @vocab/core@1.1.0
42
-
43
- ## 1.0.1
44
-
45
- ### Patch Changes
46
-
47
- - [`3ec6dba`](https://github.com/seek-oss/vocab/commit/3ec6dbaad590299cc33e2d9d4a877576eb05853a) [#63](https://github.com/seek-oss/vocab/pull/63) Thanks [@jahredhope](https://github.com/jahredhope)! - Migrate to new @formatjs/icu-messageformat-parser as intl-messageformat-parser has been deprecated
48
-
49
- - Updated dependencies [[`3ec6dba`](https://github.com/seek-oss/vocab/commit/3ec6dbaad590299cc33e2d9d4a877576eb05853a)]:
50
- - @vocab/core@1.0.2
51
-
52
- ## 1.0.0
53
-
54
- ### Major Changes
55
-
56
- - [`3031054`](https://github.com/seek-oss/vocab/commit/303105440851db6126f0606e1607745b27dd981c) [#51](https://github.com/seek-oss/vocab/pull/51) Thanks [@jahredhope](https://github.com/jahredhope)! - Release v1.0.0
57
-
58
- Release Vocab as v1.0.0 to signify a stable API and support future [semver versioning](https://semver.org/) releases.
59
-
60
- Vocab has seen a lot of iteration and changes since it was first published on 20 November 2020. We are now confident with the API and believe Vocab is ready for common use.
61
-
62
- ### Patch Changes
63
-
64
- - Updated dependencies [[`0074382`](https://github.com/seek-oss/vocab/commit/007438273ef70f5d5ded45777933651ad8df36f6), [`3031054`](https://github.com/seek-oss/vocab/commit/303105440851db6126f0606e1607745b27dd981c)]:
65
- - @vocab/core@1.0.0
66
- - @vocab/phrase@1.0.0
67
-
68
- ## 0.0.16
69
-
70
- ### Patch Changes
71
-
72
- - Updated dependencies [[`5b1fdc0`](https://github.com/seek-oss/vocab/commit/5b1fdc019522b12e7ef94b2fec57b54a9310d41c)]:
73
- - @vocab/core@0.0.11
74
- - @vocab/phrase@0.0.11
75
-
76
- ## 0.0.15
77
-
78
- ### Patch Changes
79
-
80
- - Updated dependencies [[`7c96a14`](https://github.com/seek-oss/vocab/commit/7c96a142f602132d38c1df1a47a1f4657dc5c94c)]:
81
- - @vocab/core@0.0.10
82
- - @vocab/phrase@0.0.10
83
-
84
- ## 0.0.14
85
-
86
- ### Patch Changes
87
-
88
- - Updated dependencies [[`3034bd3`](https://github.com/seek-oss/vocab/commit/3034bd3de610a9d1f3bfbd8caefa27064dee2710), [`c110745`](https://github.com/seek-oss/vocab/commit/c110745b79df1a8ade6b1d8a49e798b04a7b95e1)]:
89
- - @vocab/core@0.0.9
90
- - @vocab/phrase@0.0.9
91
-
92
- ## 0.0.13
93
-
94
- ### Patch Changes
95
-
96
- - Updated dependencies [[`f2fca67`](https://github.com/seek-oss/vocab/commit/f2fca679c66ae65405a0aa24f0a0e472026aad0d)]:
97
- - @vocab/core@0.0.8
98
- - @vocab/phrase@0.0.8
99
-
100
- ## 0.0.12
101
-
102
- ### Patch Changes
103
-
104
- - Updated dependencies [[`283bcad`](https://github.com/seek-oss/vocab/commit/283bcada06e622ab14ed891743ed3f55cf09e245), [`ad0d240`](https://github.com/seek-oss/vocab/commit/ad0d2404545ded8e11621eae8f29467ff3352366), [`f3992ef`](https://github.com/seek-oss/vocab/commit/f3992efbf08939ebf853fac650a49cc46dc51dfb), [`f3992ef`](https://github.com/seek-oss/vocab/commit/f3992efbf08939ebf853fac650a49cc46dc51dfb)]:
105
- - @vocab/core@0.0.7
106
- - @vocab/phrase@0.0.7
107
-
108
- ## 0.0.11
109
-
110
- ### Patch Changes
111
-
112
- - Updated dependencies [[`80a46c0`](https://github.com/seek-oss/vocab/commit/80a46c01a55408675f5822c3618519f80136c3ab), [`80a46c0`](https://github.com/seek-oss/vocab/commit/80a46c01a55408675f5822c3618519f80136c3ab)]:
113
- - @vocab/core@0.0.6
114
- - @vocab/phrase@0.0.6
115
-
116
- ## 0.0.10
117
-
118
- ### Patch Changes
119
-
120
- - Updated dependencies [[`371ed16`](https://github.com/seek-oss/vocab/commit/371ed16a232a04dab13afa7e2b352dfb6724eea4), [`c222d68`](https://github.com/seek-oss/vocab/commit/c222d68a3c0c24723a338eccb959798881f6a118)]:
121
- - @vocab/core@0.0.5
122
- - @vocab/phrase@0.0.5
123
-
124
- ## 0.0.9
125
-
126
- ### Patch Changes
127
-
128
- - [`5f5c581`](https://github.com/seek-oss/vocab/commit/5f5c581a65bff28729ee19e1ec0bdea488a9d6c2) [#19](https://github.com/seek-oss/vocab/pull/19) Thanks [@jahredhope](https://github.com/jahredhope)! - Compile useable TypeScript importable files with `vocab compile`.
129
-
130
- The new `vocab compile` step replaces `vocab generate-types` in creating a fully functional **translations.ts** file.
131
-
132
- This allows vocab to be used **without the Webpack Plugin**, however use of the plugin is still heavily advised to ensure optimal loading of translation content on the web.
133
-
134
- Support for unit testing is now better than ever! The newly created **translations.ts** means your unit test code will see the same code as available while rendering.
135
-
136
- See the [documentation](https://github.com/seek-oss/vocab) for further usage details.
137
-
138
- - Updated dependencies [[`5f5c581`](https://github.com/seek-oss/vocab/commit/5f5c581a65bff28729ee19e1ec0bdea488a9d6c2), [`02f943c`](https://github.com/seek-oss/vocab/commit/02f943ca892913b41f9e4720a72400777cf14b3d)]:
139
- - @vocab/core@0.0.4
140
- - @vocab/phrase@0.0.4
141
-
142
- ## 0.0.8
143
-
144
- ### Patch Changes
145
-
146
- - [`ed6cf40`](https://github.com/seek-oss/vocab/commit/ed6cf408973f2e9c4d07a71fcb52f40294ebaf65) [#13](https://github.com/seek-oss/vocab/pull/13) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Add validation script for identifying missing keys
147
-
148
- * [`b5a5a05`](https://github.com/seek-oss/vocab/commit/b5a5a05a5bb87b48e6e9160af75f555728143ea2) [#15](https://github.com/seek-oss/vocab/pull/15) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Added watch mode to generate-types
149
-
150
- * Updated dependencies [[`08de30d`](https://github.com/seek-oss/vocab/commit/08de30d338c2a5ebdcf14da7c736dddf22e7ca9e), [`ed6cf40`](https://github.com/seek-oss/vocab/commit/ed6cf408973f2e9c4d07a71fcb52f40294ebaf65), [`26b52f4`](https://github.com/seek-oss/vocab/commit/26b52f4878ded440841e08c858bdc9e685500c2a), [`b5a5a05`](https://github.com/seek-oss/vocab/commit/b5a5a05a5bb87b48e6e9160af75f555728143ea2)]:
151
- - @vocab/core@0.0.3
152
- - @vocab/phrase@0.0.3
153
-
154
- ## 0.0.7
155
-
156
- ### Patch Changes
157
-
158
- - [`4710f34`](https://github.com/seek-oss/vocab/commit/4710f341f2827643e3eff69ef7e26d44ec6e8a2b) [#8](https://github.com/seek-oss/vocab/pull/8) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Infer `t` return type more intelligently
159
-
160
- The translate key function (`t`) will now infer the return type as ReactNode only when the tag syntax is used.
161
-
162
- - Updated dependencies [[`4710f34`](https://github.com/seek-oss/vocab/commit/4710f341f2827643e3eff69ef7e26d44ec6e8a2b)]:
163
- - @vocab/core@0.0.2
164
- - @vocab/phrase@0.0.2
165
-
166
- ## 0.0.6
167
-
168
- ### Patch Changes
169
-
170
- - [`45c4fe2`](https://github.com/seek-oss/vocab/commit/45c4fe273c5157475cb03ca57db662956ad5cbc9) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Improved type definitions for `t` function
171
-
172
- * [`33aeb0f`](https://github.com/seek-oss/vocab/commit/33aeb0f210687b8ce57417e963bba9db7c7cb4e3) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Respect prettier config for generated typescript declarations
173
-
174
- * Updated dependencies [[`2c7779f`](https://github.com/seek-oss/vocab/commit/2c7779f5384793af6a178f5ab4d56b6a9f09bc02)]:
175
- - @vocab/utils@0.0.6
176
-
177
- ## 0.0.5
178
-
179
- ### Patch Changes
180
-
181
- - Updated dependencies [[`f7b6b5c`](https://github.com/seek-oss/vocab/commit/f7b6b5c1cdb3f72bb0a3d0c5c7a3da844b2a1c87)]:
182
- - @vocab/utils@0.0.5
183
-
184
- ## 0.0.4
185
-
186
- ### Patch Changes
187
-
188
- - [`4589bce`](https://github.com/seek-oss/vocab/commit/4589bce912b7a8fb869e1c3a65d0c4c417043faf) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Support language fallbacks through `extends` config
189
-
190
- * [`bf36f86`](https://github.com/seek-oss/vocab/commit/bf36f86a74ced4f42271b2f8fb128e995bb8c849) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Use config location as CWD
191
-
192
- - [`f41c8f6`](https://github.com/seek-oss/vocab/commit/f41c8f67d78994bc071aca6eb20ef63421be2e96) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Access TranslationFile type from @vocab/cli instead of @vocab/types
193
-
194
- * [`870a74b`](https://github.com/seek-oss/vocab/commit/870a74b9a15ec2cb493c3de526c599b24fd5830d) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Support custom config file locations
195
-
196
- * Updated dependencies [[`4589bce`](https://github.com/seek-oss/vocab/commit/4589bce912b7a8fb869e1c3a65d0c4c417043faf), [`215eeba`](https://github.com/seek-oss/vocab/commit/215eeba619260b349a39d99a79fc69503dba5ccf), [`bf36f86`](https://github.com/seek-oss/vocab/commit/bf36f86a74ced4f42271b2f8fb128e995bb8c849), [`870a74b`](https://github.com/seek-oss/vocab/commit/870a74b9a15ec2cb493c3de526c599b24fd5830d)]:
197
- - @vocab/utils@0.0.4
198
-
199
- ## 0.0.3
200
-
201
- ### Patch Changes
202
-
203
- - Updated dependencies [[`6f2c084`](https://github.com/seek-oss/vocab/commit/6f2c08419ce5773c589901fafa7bec7a1c94d2a5)]:
204
- - @vocab/utils@0.0.3
205
-
206
- ## 0.0.2
207
-
208
- ### Patch Changes
209
-
210
- - [`9f99ea7`](https://github.com/seek-oss/vocab/commit/9f99ea7c827ec4d7c21a485e17e3adbbd1c49319) Thanks [@jahredhope](https://github.com/jahredhope)! - Remove React as dependency and target node
211
-
212
- - Updated dependencies [[`9f99ea7`](https://github.com/seek-oss/vocab/commit/9f99ea7c827ec4d7c21a485e17e3adbbd1c49319)]:
213
- - @vocab/utils@0.0.2