@vocab/cli 1.3.0 → 1.3.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/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": "1.3.0",
3
+ "version": "1.3.2",
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.2.0",
18
- "@vocab/phrase": "^1.2.0",
17
+ "@vocab/core": "^1.2.5",
18
+ "@vocab/phrase": "^1.2.3",
19
19
  "env-ci": "^5.0.2",
20
20
  "fast-glob": "^3.2.4",
21
21
  "form-data": "^3.0.0",
@@ -26,6 +26,7 @@
26
26
  "devDependencies": {
27
27
  "@types/node-fetch": "^2.5.7",
28
28
  "@types/prettier": "^2.1.5",
29
- "@types/yargs": "^15.0.9"
29
+ "@types/yargs": "^15.0.9",
30
+ "@vocab/types": "^1.1.2"
30
31
  }
31
- }
32
+ }