@swell/cli 1.0.2 → 2.0.1-alpha.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 (105) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +1 -1
  3. package/bin/dev.cmd +3 -0
  4. package/bin/dev.js +7 -0
  5. package/bin/run.cmd +3 -0
  6. package/bin/run.js +7 -0
  7. package/dist/app-command.d.ts +22 -0
  8. package/dist/app-command.js +45 -0
  9. package/dist/commands/app/_pull.d.ts +8 -0
  10. package/dist/commands/app/_pull.js +45 -0
  11. package/dist/commands/app/_uninstall.d.ts +12 -0
  12. package/dist/commands/app/_uninstall.js +45 -0
  13. package/dist/commands/app/info.d.ts +15 -0
  14. package/dist/commands/app/info.js +92 -0
  15. package/dist/commands/app/install.d.ts +17 -0
  16. package/dist/commands/app/install.js +177 -0
  17. package/dist/commands/app/push.d.ts +17 -0
  18. package/dist/commands/app/push.js +158 -0
  19. package/dist/commands/app/version.d.ts +18 -0
  20. package/dist/commands/app/version.js +156 -0
  21. package/dist/commands/app/watch.d.ts +15 -0
  22. package/dist/commands/app/watch.js +110 -0
  23. package/dist/commands/create/app.d.ts +21 -0
  24. package/dist/commands/create/app.js +210 -0
  25. package/dist/commands/create/content.d.ts +19 -0
  26. package/dist/commands/create/content.js +87 -0
  27. package/dist/commands/create/function.d.ts +25 -0
  28. package/dist/commands/create/function.js +191 -0
  29. package/dist/commands/create/index.d.ts +6 -0
  30. package/dist/commands/create/index.js +34 -0
  31. package/dist/commands/create/model.d.ts +19 -0
  32. package/dist/commands/create/model.js +87 -0
  33. package/dist/commands/create/notification.d.ts +25 -0
  34. package/dist/commands/create/notification.js +170 -0
  35. package/dist/commands/login.d.ts +22 -0
  36. package/dist/commands/login.js +77 -0
  37. package/dist/commands/logout.d.ts +8 -0
  38. package/dist/commands/logout.js +45 -0
  39. package/dist/commands/logs.d.ts +23 -0
  40. package/dist/commands/logs.js +207 -0
  41. package/dist/commands/switch.d.ts +10 -0
  42. package/dist/commands/switch.js +41 -0
  43. package/dist/commands/whoami.d.ts +7 -0
  44. package/dist/commands/whoami.js +24 -0
  45. package/dist/create-collection-command.d.ts +26 -0
  46. package/dist/create-collection-command.js +97 -0
  47. package/dist/create-command.d.ts +16 -0
  48. package/dist/create-command.js +59 -0
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +1 -0
  51. package/dist/lib/api.d.ts +13 -0
  52. package/dist/lib/api.js +117 -0
  53. package/dist/lib/app-config.d.ts +29 -0
  54. package/dist/lib/app-config.js +127 -0
  55. package/dist/lib/apps/app-config.d.ts +42 -0
  56. package/dist/lib/apps/app-config.js +167 -0
  57. package/dist/lib/apps/index.d.ts +67 -0
  58. package/dist/lib/apps/index.js +167 -0
  59. package/dist/lib/apps/paths.d.ts +18 -0
  60. package/dist/lib/apps/paths.js +54 -0
  61. package/dist/lib/bundle.d.ts +1 -0
  62. package/dist/lib/bundle.js +40 -0
  63. package/dist/lib/config.d.ts +37 -0
  64. package/dist/lib/config.js +131 -0
  65. package/dist/lib/constants.d.ts +5 -0
  66. package/dist/lib/constants.js +17 -0
  67. package/dist/lib/create/content.d.ts +23 -0
  68. package/dist/lib/create/content.js +40 -0
  69. package/dist/lib/create/function.d.ts +17 -0
  70. package/dist/lib/create/function.js +36 -0
  71. package/dist/lib/create/index.d.ts +13 -0
  72. package/dist/lib/create/index.js +20 -0
  73. package/dist/lib/create/model.d.ts +22 -0
  74. package/dist/lib/create/model.js +30 -0
  75. package/dist/lib/create/notification.d.ts +25 -0
  76. package/dist/lib/create/notification.js +1 -0
  77. package/dist/lib/info.d.ts +38 -0
  78. package/dist/lib/info.js +91 -0
  79. package/dist/lib/logs/index.d.ts +23 -0
  80. package/dist/lib/logs/index.js +88 -0
  81. package/dist/lib/logs/line-output.d.ts +5 -0
  82. package/dist/lib/logs/line-output.js +13 -0
  83. package/dist/lib/logs/output.d.ts +7 -0
  84. package/dist/lib/logs/output.js +8 -0
  85. package/dist/lib/logs/table-output.d.ts +11 -0
  86. package/dist/lib/logs/table-output.js +128 -0
  87. package/dist/lib/sessions.d.ts +9 -0
  88. package/dist/lib/sessions.js +110 -0
  89. package/dist/lib/stores.d.ts +63 -0
  90. package/dist/lib/stores.js +173 -0
  91. package/dist/lib/style.d.ts +24 -0
  92. package/dist/lib/style.js +29 -0
  93. package/dist/lib/swell-function-wrapper.d.ts +88 -0
  94. package/dist/lib/swell-function-wrapper.js +302 -0
  95. package/dist/remote-app-command.d.ts +36 -0
  96. package/dist/remote-app-command.js +367 -0
  97. package/dist/swell-command.d.ts +21 -0
  98. package/dist/swell-command.js +43 -0
  99. package/oclif.manifest.json +1085 -0
  100. package/package.json +89 -42
  101. package/LICENSE +0 -674
  102. package/dist/bin/multipart-parser-85ef9626.js +0 -456
  103. package/dist/bin/swell-0f71f07d.js +0 -30670
  104. package/dist/bin/swell.js +0 -24
  105. package/dist/man/swell.1 +0 -85
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@swell/cli",
3
- "version": "1.0.2",
3
+ "version": "2.0.1-alpha.0",
4
+ "type": "module",
4
5
  "description": "Swell's command line interface/utility",
5
6
  "keywords": [
6
7
  "swell",
@@ -9,57 +10,103 @@
9
10
  ],
10
11
  "author": "Swell",
11
12
  "license": "GPLv3",
12
- "bugs": {
13
- "url": "https://github.com/orgs/swellstores/discussions"
14
- },
13
+ "bugs": "https://github.com/orgs/swellstores/discussions",
15
14
  "homepage": "https://www.swell.is",
16
- "type": "module",
17
15
  "bin": {
18
- "swell": "dist/bin/swell.js"
16
+ "swell": "./bin/run.js"
19
17
  },
20
- "man": [
21
- "dist/man/swell.1"
22
- ],
18
+ "main": "dist/index.js",
23
19
  "watch": {
24
20
  "prepack": "src/**/*.js"
25
21
  },
26
- "scripts": {
27
- "watch": "npm-watch",
28
- "prepack": "rimraf \"./dist/bin/!(swell).js\" && rollup -c && npm run man",
29
- "man": "mkdir -p dist/man && marked-man MAN_PAGE.md > dist/man/swell.1",
30
- "test": "cross-env NODE_OPTIONS=--loader=testdouble NODE_ENV=test uvu tests"
31
- },
32
22
  "files": [
33
- "dist"
23
+ "/bin",
24
+ "/dist",
25
+ "/npm-shrinkwrap.json",
26
+ "/oclif.manifest.json"
34
27
  ],
28
+ "dependencies": {
29
+ "@npmcli/git": "5.0.3",
30
+ "@oclif/core": "3.7.1",
31
+ "@oclif/plugin-help": "6.0.4",
32
+ "@oclif/plugin-plugins": "3.9.4",
33
+ "conf": "11.0.2",
34
+ "configstore": "6.0.0",
35
+ "inflection": "3.0.0",
36
+ "node-fetch": "3.3.2",
37
+ "oclif": "4.0.3",
38
+ "open": "9.1.0",
39
+ "semver": "7.5.4",
40
+ "table": "6.8.1"
41
+ },
35
42
  "devDependencies": {
36
- "@rollup/plugin-commonjs": "24.1.0",
37
- "@rollup/plugin-inject": "5.0.3",
38
- "@rollup/plugin-json": "6.0.0",
39
- "@rollup/plugin-node-resolve": "15.0.2",
40
- "@rollup/plugin-replace": "5.0.2",
41
- "arg": "5.0.2",
42
- "case-anything": "2.1.10",
43
- "chalk": "^5.2.0",
43
+ "@inquirer/prompts": "3.2.0",
44
+ "@inquirer/testing": "2.1.8",
45
+ "@oclif/errors": "1.3.6",
46
+ "@oclif/test": "3.0.3",
47
+ "@rollup/plugin-commonjs": "25.0.7",
48
+ "@rollup/plugin-json": "6.0.1",
49
+ "@rollup/plugin-node-resolve": "15.2.3",
50
+ "@types/chai": "4.3.9",
51
+ "@types/configstore": "6.0.1",
52
+ "@types/inquirer": "9.0.6",
53
+ "@types/mocha": "10.0.3",
54
+ "@types/node": "20.8.8",
55
+ "@typescript-eslint/eslint-plugin": "6.9.0",
56
+ "chai": "4.3.10",
57
+ "chalk": "5.3.0",
44
58
  "configstore": "6.0.0",
45
- "cross-env": "7.0.3",
46
- "deepmerge": "^4.3.1",
47
- "list-it": "1.3.10",
48
- "marked": "^4.3.0",
49
- "marked-man": "^1.3.3",
50
- "nock": "13.3.1",
51
- "npm-watch": "0.11.0",
52
- "ora": "6.3.0",
53
- "rimraf": "^5.0.0",
54
- "rollup": "^3.21.3",
55
- "rollup-plugin-glob-import": "^0.5.0",
56
- "rollup-plugin-node-externals": "5.1.2",
57
- "strip-ansi": "7.0.1",
58
- "testdouble": "3.17.2",
59
- "uvu": "0.5.6",
60
- "zx": "^7.2.2"
59
+ "dotenv": "16.3.1",
60
+ "esbuild": "0.19.5",
61
+ "eslint": "8.52.0",
62
+ "eslint-config-oclif": "5.0.0",
63
+ "eslint-config-oclif-typescript": "3.0.8",
64
+ "eslint-config-prettier": "9.0.0",
65
+ "eslint-plugin-prettier": "5.0.1",
66
+ "eslint-plugin-unicorn": "48.0.1",
67
+ "list-it": "1.3.12",
68
+ "lodash": "4.17.21",
69
+ "mocha": "10.2.0",
70
+ "nock": "13.3.6",
71
+ "npm-decode": "1.4.2",
72
+ "oclif": "4.0.3",
73
+ "ora": "7.0.1",
74
+ "rollup": "4.1.4",
75
+ "shx": "0.3.4",
76
+ "testdouble": "3.20.0",
77
+ "ts-node": "10.9.1",
78
+ "tslib": "2.6.2",
79
+ "typescript": "5.2.2",
80
+ "uvu": "0.5.6"
81
+ },
82
+ "oclif": {
83
+ "bin": "swell",
84
+ "dirname": "swell",
85
+ "commands": "./dist/commands",
86
+ "plugins": [
87
+ "@oclif/plugin-help"
88
+ ],
89
+ "topicSeparator": " ",
90
+ "topics": {
91
+ "app": {
92
+ "description": "Manage your Swell app."
93
+ },
94
+ "create": {
95
+ "description": "Create dependencies for your Swell app."
96
+ }
97
+ }
98
+ },
99
+ "scripts": {
100
+ "build": "shx rm -rf dist && shx rm -f tsconfig.tsbuildinfo && tsc -b",
101
+ "lint": "eslint . --ext .ts --config .eslintrc",
102
+ "postpack": "shx rm -f oclif.manifest.json",
103
+ "posttest": "npm run lint",
104
+ "prepack": "npm run build && oclif manifest && oclif readme",
105
+ "test": "mocha --forbid-only \"test/**/*.test.ts\"",
106
+ "version": "oclif readme && git add README.md"
61
107
  },
62
108
  "engines": {
63
- "node": ">= 16.18.1"
64
- }
109
+ "node": ">= 18.16.1"
110
+ },
111
+ "types": "dist/index.d.ts"
65
112
  }