@contentstack/apps-cli 1.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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +200 -0
  3. package/bin/dev +17 -0
  4. package/bin/dev.cmd +3 -0
  5. package/bin/run +5 -0
  6. package/bin/run.cmd +3 -0
  7. package/lib/commands/app/base-command.d.ts +51 -0
  8. package/lib/commands/app/base-command.js +123 -0
  9. package/lib/commands/app/create.d.ts +68 -0
  10. package/lib/commands/app/create.js +288 -0
  11. package/lib/commands/app/delete.d.ts +10 -0
  12. package/lib/commands/app/delete.js +72 -0
  13. package/lib/commands/app/get.d.ts +12 -0
  14. package/lib/commands/app/get.js +57 -0
  15. package/lib/commands/app/index.d.ts +7 -0
  16. package/lib/commands/app/index.js +35 -0
  17. package/lib/commands/app/install.d.ts +11 -0
  18. package/lib/commands/app/install.js +77 -0
  19. package/lib/commands/app/uninstall.d.ts +11 -0
  20. package/lib/commands/app/uninstall.js +51 -0
  21. package/lib/commands/app/update.d.ts +34 -0
  22. package/lib/commands/app/update.js +190 -0
  23. package/lib/config/index.d.ts +16 -0
  24. package/lib/config/index.js +20 -0
  25. package/lib/config/manifest.json +69 -0
  26. package/lib/index.d.ts +2 -0
  27. package/lib/index.js +3 -0
  28. package/lib/messages/index.d.ts +83 -0
  29. package/lib/messages/index.js +101 -0
  30. package/lib/types/app.d.ts +101 -0
  31. package/lib/types/app.js +29 -0
  32. package/lib/types/index.d.ts +2 -0
  33. package/lib/types/index.js +5 -0
  34. package/lib/types/utils.d.ts +18 -0
  35. package/lib/types/utils.js +2 -0
  36. package/lib/util/common-utils.d.ts +18 -0
  37. package/lib/util/common-utils.js +148 -0
  38. package/lib/util/fs.d.ts +2 -0
  39. package/lib/util/fs.js +36 -0
  40. package/lib/util/index.d.ts +4 -0
  41. package/lib/util/index.js +9 -0
  42. package/lib/util/inquirer.d.ts +34 -0
  43. package/lib/util/inquirer.js +198 -0
  44. package/lib/util/log.d.ts +41 -0
  45. package/lib/util/log.js +150 -0
  46. package/package.json +99 -0
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@contentstack/apps-cli",
3
+ "version": "1.0.0",
4
+ "description": "App ClI",
5
+ "author": "Contentstack CLI",
6
+ "homepage": "https://github.com/contentstack/contentstack-apps-cli",
7
+ "license": "MIT",
8
+ "main": "./lib/index.js",
9
+ "bin": {
10
+ "app": "./bin/run"
11
+ },
12
+ "repository": "contentstack/apps-cli",
13
+ "files": [
14
+ "/bin",
15
+ "/lib",
16
+ "/npm-shrinkwrap.json",
17
+ "/oclif.manifest.json"
18
+ ],
19
+ "dependencies": {
20
+ "@contentstack/cli-command": "^1.2.9",
21
+ "@contentstack/cli-utilities": "^1.4.5",
22
+ "adm-zip": "^0.5.10",
23
+ "chalk": "^4.1.2",
24
+ "lodash": "^4.17.21",
25
+ "open": "^9.1.0",
26
+ "shelljs": "^0.8.5",
27
+ "tmp": "^0.2.1",
28
+ "winston": "^3.9.0"
29
+ },
30
+ "devDependencies": {
31
+ "@oclif/test": "^2.0.3",
32
+ "@types/adm-zip": "^0.5.0",
33
+ "@types/chai": "^4.3.5",
34
+ "@types/mocha": "^10.0.1",
35
+ "@types/node": "^20.3.1",
36
+ "@types/shelljs": "^0.8.12",
37
+ "@types/tmp": "^0.2.3",
38
+ "axios": "^1.4.0",
39
+ "chai": "^4.3.7",
40
+ "dotenv": "^16.3.1",
41
+ "eslint": "^8.43.0",
42
+ "eslint-config-oclif": "^4.0.0",
43
+ "eslint-config-oclif-typescript": "^1.0.3",
44
+ "mocha": "^10.2.0",
45
+ "nyc": "^15.1.0",
46
+ "oclif": "^3.10.0",
47
+ "shx": "^0.3.4",
48
+ "ts-node": "^10.9.1",
49
+ "tslib": "^2.5.3",
50
+ "typescript": "^5.1.3"
51
+ },
52
+ "oclif": {
53
+ "bin": "csdx",
54
+ "dirname": "apps-cli",
55
+ "commands": "./lib/commands",
56
+ "plugins": [],
57
+ "topicSeparator": ":",
58
+ "additionalHelpFlags": [
59
+ "-h"
60
+ ],
61
+ "additionalVersionFlags": [
62
+ "-v"
63
+ ],
64
+ "topics": {
65
+ "app": {
66
+ "description": "Perform developer-hub app related activities"
67
+ }
68
+ }
69
+ },
70
+ "scripts": {
71
+ "build": "npm run clean && shx rm -rf lib && tsc -b",
72
+ "lint": "eslint . --ext .ts --config .eslintrc",
73
+ "postpack": "shx rm -f oclif.manifest.json",
74
+ "posttest": "npm run lint",
75
+ "prepack": "npm run build && oclif manifest && oclif readme",
76
+ "test": "mocha --forbid-only \"test/**/*.test.ts\"",
77
+ "version": "oclif readme && git add README.md",
78
+ "clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json",
79
+ "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
80
+ },
81
+ "engines": {
82
+ "node": ">=16"
83
+ },
84
+ "bugs": "https://github.com/contentstack/contentstack-apps-cli/issues",
85
+ "keywords": [
86
+ "oclif"
87
+ ],
88
+ "types": "./lib/index.d.ts",
89
+ "csdxConfig": {
90
+ "shortCommandName": {
91
+ "app:get": "APGT",
92
+ "app:create": "APCRT",
93
+ "app:update": "APUPT",
94
+ "app:delete": "APDLT",
95
+ "app:install": "API",
96
+ "app:uninstall": "APUI"
97
+ }
98
+ }
99
+ }