@oclif/plugin-command-snapshot 3.0.0
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/CHANGELOG.md +50 -0
- package/LICENSE +21 -0
- package/README.md +43 -0
- package/lib/commands/schema/compare.d.ts +15 -0
- package/lib/commands/schema/compare.js +95 -0
- package/lib/commands/schema/generate.d.ts +25 -0
- package/lib/commands/schema/generate.js +134 -0
- package/lib/commands/snapshot/compare.d.ts +44 -0
- package/lib/commands/snapshot/compare.js +120 -0
- package/lib/commands/snapshot/generate.d.ts +12 -0
- package/lib/commands/snapshot/generate.js +23 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lib/snapshot-command.d.ts +10 -0
- package/lib/snapshot-command.js +25 -0
- package/oclif.manifest.json +1 -0
- package/package.json +77 -0
- package/schemas/schema-compare.json +41 -0
- package/schemas/schema-generate.json +12 -0
- package/schemas/snapshot-compare.json +77 -0
- package/schemas/snapshot-generate.json +32 -0
- package/yarn.lock +6283 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oclif/plugin-command-snapshot",
|
|
3
|
+
"description": "generates and compares OCLIF plugins snapshot files",
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"author": "Ramyasri @nramyasri-sf",
|
|
6
|
+
"bugs": "https://github.com/oclif/plugin-command-snapshot/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@oclif/core": "^0.5.39",
|
|
9
|
+
"chalk": "^4.1.1",
|
|
10
|
+
"just-diff": "^3.1.1",
|
|
11
|
+
"semver": "^7.3.5",
|
|
12
|
+
"sinon": "^11.1.1",
|
|
13
|
+
"ts-json-schema-generator": "^0.93.0",
|
|
14
|
+
"tslib": "^2"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@commitlint/config-conventional": "^12.1.4",
|
|
18
|
+
"@oclif/plugin-help": "^5.1.0",
|
|
19
|
+
"@oclif/test": "^1.2.7",
|
|
20
|
+
"@types/chai": "^4",
|
|
21
|
+
"@types/mocha": "^8",
|
|
22
|
+
"@types/node": "^15",
|
|
23
|
+
"@types/semver": "^7.3.6",
|
|
24
|
+
"chai": "^4",
|
|
25
|
+
"commitlint": "^12.1.4",
|
|
26
|
+
"eslint": "^7",
|
|
27
|
+
"eslint-config-oclif": "^3.1",
|
|
28
|
+
"eslint-config-oclif-typescript": "^0.2",
|
|
29
|
+
"globby": "^11",
|
|
30
|
+
"husky": "6",
|
|
31
|
+
"mocha": "^8",
|
|
32
|
+
"nyc": "^15",
|
|
33
|
+
"oclif": "^2.0.0-main.5",
|
|
34
|
+
"ts-node": "^9",
|
|
35
|
+
"typescript": "^4.0.2"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=12.0.0"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"/lib",
|
|
42
|
+
"/npm-shrinkwrap.json",
|
|
43
|
+
"/oclif.manifest.json",
|
|
44
|
+
"/schemas",
|
|
45
|
+
"/yarn.lock"
|
|
46
|
+
],
|
|
47
|
+
"homepage": "https://github.com/oclif/plugin-command-snapshot",
|
|
48
|
+
"keywords": [
|
|
49
|
+
"oclif-plugin"
|
|
50
|
+
],
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"oclif": {
|
|
53
|
+
"commands": "./lib/commands",
|
|
54
|
+
"bin": "oclif-example",
|
|
55
|
+
"topics": {
|
|
56
|
+
"snapshot": {
|
|
57
|
+
"description": "generates and compares OCLIF plugins snapshot files"
|
|
58
|
+
},
|
|
59
|
+
"schema": {
|
|
60
|
+
"description": "generates and compares OCLIF plugins schema files"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"devPlugins": [
|
|
64
|
+
"@oclif/plugin-help"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"repository": "oclif/plugin-command-snapshot",
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "rm -rf lib && tsc -b",
|
|
70
|
+
"commitlint": "commitlint",
|
|
71
|
+
"postpack": "rm -f oclif.manifest.json",
|
|
72
|
+
"posttest": "eslint . --ext .ts --config .eslintrc",
|
|
73
|
+
"prepack": "rm -rf lib && tsc -b && oclif manifest . && oclif readme",
|
|
74
|
+
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\" --timeout 10000",
|
|
75
|
+
"version": "oclif readme && git add README.md"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/SchemaComparison",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"SchemaComparison": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"op": {
|
|
11
|
+
"$ref": "#/definitions/Operation"
|
|
12
|
+
},
|
|
13
|
+
"path": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": [
|
|
17
|
+
"string",
|
|
18
|
+
"number"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"value": {}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"op",
|
|
26
|
+
"path",
|
|
27
|
+
"value"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"Operation": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"add",
|
|
36
|
+
"replace",
|
|
37
|
+
"remove"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/CompareResponse",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"CompareResponse": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"addedCommands": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"removedCommands": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"removedFlags": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"diffCommands": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"properties": {
|
|
32
|
+
"name": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"removed": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"added": {
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
"plugin": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"flags": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"name": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"removed": {
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"added": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"name"
|
|
61
|
+
],
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"flags",
|
|
68
|
+
"name",
|
|
69
|
+
"plugin"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/Snapshots",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Snapshots": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"command": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"plugin": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"flags": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"command",
|
|
25
|
+
"plugin",
|
|
26
|
+
"flags"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|