@feathersjs/cli 4.6.2 → 5.0.0-pre.24

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 (163) hide show
  1. package/CHANGELOG.md +10 -917
  2. package/LICENSE +1 -1
  3. package/README.md +9 -34
  4. package/bin/feathers +9 -0
  5. package/lib/app/index.d.ts +29 -0
  6. package/lib/app/index.js +123 -0
  7. package/lib/app/index.js.map +1 -0
  8. package/lib/app/index.ts +198 -0
  9. package/lib/app/static/.gitignore +121 -0
  10. package/lib/app/templates/app.test.tpl.d.ts +2 -0
  11. package/lib/app/templates/app.test.tpl.js +48 -0
  12. package/lib/app/templates/app.test.tpl.js.map +1 -0
  13. package/lib/app/templates/app.test.tpl.ts +48 -0
  14. package/lib/app/templates/app.tpl.d.ts +2 -0
  15. package/lib/app/templates/app.tpl.js +110 -0
  16. package/lib/app/templates/app.tpl.js.map +1 -0
  17. package/lib/app/templates/app.tpl.ts +119 -0
  18. package/lib/app/templates/channels.tpl.d.ts +2 -0
  19. package/lib/app/templates/channels.tpl.js +76 -0
  20. package/lib/app/templates/channels.tpl.js.map +1 -0
  21. package/lib/app/templates/channels.tpl.ts +81 -0
  22. package/lib/app/templates/client.tpl.d.ts +2 -0
  23. package/lib/app/templates/client.tpl.js +22 -0
  24. package/lib/app/templates/client.tpl.js.map +1 -0
  25. package/lib/app/templates/client.tpl.ts +27 -0
  26. package/lib/app/templates/config.tpl.d.ts +2 -0
  27. package/lib/app/templates/config.tpl.js +21 -0
  28. package/lib/app/templates/config.tpl.js.map +1 -0
  29. package/lib/app/templates/config.tpl.ts +21 -0
  30. package/lib/app/templates/configuration.tpl.d.ts +2 -0
  31. package/lib/app/templates/configuration.tpl.js +36 -0
  32. package/lib/app/templates/configuration.tpl.js.map +1 -0
  33. package/lib/app/templates/configuration.tpl.ts +41 -0
  34. package/lib/app/templates/declarations.tpl.d.ts +2 -0
  35. package/lib/app/templates/declarations.tpl.js +23 -0
  36. package/lib/app/templates/declarations.tpl.js.map +1 -0
  37. package/lib/app/templates/declarations.tpl.ts +31 -0
  38. package/lib/app/templates/index.html.tpl.d.ts +2 -0
  39. package/lib/app/templates/index.html.tpl.js +85 -0
  40. package/lib/app/templates/index.html.tpl.js.map +1 -0
  41. package/lib/app/templates/index.html.tpl.ts +85 -0
  42. package/lib/app/templates/index.tpl.d.ts +2 -0
  43. package/lib/app/templates/index.tpl.js +18 -0
  44. package/lib/app/templates/index.tpl.js.map +1 -0
  45. package/lib/app/templates/index.tpl.ts +23 -0
  46. package/lib/app/templates/logger.tpl.d.ts +2 -0
  47. package/lib/app/templates/logger.tpl.js +33 -0
  48. package/lib/app/templates/logger.tpl.js.map +1 -0
  49. package/lib/app/templates/logger.tpl.ts +38 -0
  50. package/lib/app/templates/package.json.tpl.d.ts +2 -0
  51. package/lib/app/templates/package.json.tpl.js +53 -0
  52. package/lib/app/templates/package.json.tpl.js.map +1 -0
  53. package/lib/app/templates/package.json.tpl.ts +65 -0
  54. package/lib/app/templates/readme.md.tpl.d.ts +2 -0
  55. package/lib/app/templates/readme.md.tpl.js +50 -0
  56. package/lib/app/templates/readme.md.tpl.js.map +1 -0
  57. package/lib/app/templates/readme.md.tpl.ts +50 -0
  58. package/lib/app/templates/services.tpl.d.ts +2 -0
  59. package/lib/app/templates/services.tpl.js +14 -0
  60. package/lib/app/templates/services.tpl.js.map +1 -0
  61. package/lib/app/templates/services.tpl.ts +19 -0
  62. package/lib/app/templates/tsconfig.json.tpl.d.ts +2 -0
  63. package/lib/app/templates/tsconfig.json.tpl.js +20 -0
  64. package/lib/app/templates/tsconfig.json.tpl.js.map +1 -0
  65. package/lib/app/templates/tsconfig.json.tpl.ts +26 -0
  66. package/lib/authentication/index.d.ts +71 -0
  67. package/lib/authentication/index.js +94 -0
  68. package/lib/authentication/index.js.map +1 -0
  69. package/lib/authentication/index.ts +103 -0
  70. package/lib/authentication/templates/authentication.tpl.d.ts +2 -0
  71. package/lib/authentication/templates/authentication.tpl.js +40 -0
  72. package/lib/authentication/templates/authentication.tpl.js.map +1 -0
  73. package/lib/authentication/templates/authentication.tpl.ts +53 -0
  74. package/lib/authentication/templates/config.tpl.d.ts +2 -0
  75. package/lib/authentication/templates/config.tpl.js +46 -0
  76. package/lib/authentication/templates/config.tpl.js.map +1 -0
  77. package/lib/authentication/templates/config.tpl.ts +51 -0
  78. package/lib/authentication/templates/declarations.tpl.d.ts +2 -0
  79. package/lib/authentication/templates/declarations.tpl.js +19 -0
  80. package/lib/authentication/templates/declarations.tpl.js.map +1 -0
  81. package/lib/authentication/templates/declarations.tpl.ts +29 -0
  82. package/lib/authentication/templates/knex.tpl.d.ts +2 -0
  83. package/lib/authentication/templates/knex.tpl.js +41 -0
  84. package/lib/authentication/templates/knex.tpl.js.map +1 -0
  85. package/lib/authentication/templates/knex.tpl.ts +59 -0
  86. package/lib/authentication/templates/test.tpl.d.ts +2 -0
  87. package/lib/authentication/templates/test.tpl.js +43 -0
  88. package/lib/authentication/templates/test.tpl.js.map +1 -0
  89. package/lib/authentication/templates/test.tpl.ts +50 -0
  90. package/lib/authentication/templates/user.resolver.tpl.d.ts +2 -0
  91. package/lib/authentication/templates/user.resolver.tpl.js +96 -0
  92. package/lib/authentication/templates/user.resolver.tpl.js.map +1 -0
  93. package/lib/authentication/templates/user.resolver.tpl.ts +109 -0
  94. package/lib/authentication/templates/user.schema.tpl.d.ts +2 -0
  95. package/lib/authentication/templates/user.schema.tpl.js +85 -0
  96. package/lib/authentication/templates/user.schema.tpl.js.map +1 -0
  97. package/lib/authentication/templates/user.schema.tpl.ts +93 -0
  98. package/lib/commons.d.ts +120 -0
  99. package/lib/commons.js +137 -0
  100. package/lib/commons.js.map +1 -0
  101. package/lib/commons.ts +187 -0
  102. package/lib/connection/index.d.ts +53 -0
  103. package/lib/connection/index.js +86 -0
  104. package/lib/connection/index.js.map +1 -0
  105. package/lib/connection/index.ts +109 -0
  106. package/lib/connection/templates/knex.tpl.d.ts +2 -0
  107. package/lib/connection/templates/knex.tpl.js +59 -0
  108. package/lib/connection/templates/knex.tpl.js.map +1 -0
  109. package/lib/connection/templates/knex.tpl.ts +79 -0
  110. package/lib/connection/templates/mongodb.tpl.d.ts +2 -0
  111. package/lib/connection/templates/mongodb.tpl.js +39 -0
  112. package/lib/connection/templates/mongodb.tpl.js.map +1 -0
  113. package/lib/connection/templates/mongodb.tpl.ts +51 -0
  114. package/lib/hook/index.d.ts +22 -0
  115. package/lib/hook/index.js +40 -0
  116. package/lib/hook/index.js.map +1 -0
  117. package/lib/hook/index.ts +45 -0
  118. package/lib/hook/templates/hook.tpl.d.ts +2 -0
  119. package/lib/hook/templates/hook.tpl.js +21 -0
  120. package/lib/hook/templates/hook.tpl.js.map +1 -0
  121. package/lib/hook/templates/hook.tpl.ts +28 -0
  122. package/lib/index.d.ts +16 -0
  123. package/lib/index.js +24 -62
  124. package/lib/index.js.map +1 -0
  125. package/lib/index.ts +27 -0
  126. package/lib/service/index.d.ts +130 -0
  127. package/lib/service/index.js +84 -0
  128. package/lib/service/index.js.map +1 -0
  129. package/lib/service/index.ts +150 -0
  130. package/lib/service/templates/client.tpl.d.ts +2 -0
  131. package/lib/service/templates/client.tpl.js +16 -0
  132. package/lib/service/templates/client.tpl.js.map +1 -0
  133. package/lib/service/templates/client.tpl.ts +27 -0
  134. package/lib/service/templates/resolver.tpl.d.ts +2 -0
  135. package/lib/service/templates/resolver.tpl.js +73 -0
  136. package/lib/service/templates/resolver.tpl.js.map +1 -0
  137. package/lib/service/templates/resolver.tpl.ts +78 -0
  138. package/lib/service/templates/schema.tpl.d.ts +2 -0
  139. package/lib/service/templates/schema.tpl.js +75 -0
  140. package/lib/service/templates/schema.tpl.js.map +1 -0
  141. package/lib/service/templates/schema.tpl.ts +80 -0
  142. package/lib/service/templates/service.tpl.d.ts +2 -0
  143. package/lib/service/templates/service.tpl.js +92 -0
  144. package/lib/service/templates/service.tpl.js.map +1 -0
  145. package/lib/service/templates/service.tpl.ts +117 -0
  146. package/lib/service/templates/test.tpl.d.ts +2 -0
  147. package/lib/service/templates/test.tpl.js +24 -0
  148. package/lib/service/templates/test.tpl.js.map +1 -0
  149. package/lib/service/templates/test.tpl.ts +29 -0
  150. package/lib/service/type/custom.tpl.d.ts +4 -0
  151. package/lib/service/type/custom.tpl.js +79 -0
  152. package/lib/service/type/custom.tpl.js.map +1 -0
  153. package/lib/service/type/custom.tpl.ts +81 -0
  154. package/lib/service/type/knex.tpl.d.ts +5 -0
  155. package/lib/service/type/knex.tpl.js +50 -0
  156. package/lib/service/type/knex.tpl.js.map +1 -0
  157. package/lib/service/type/knex.tpl.ts +62 -0
  158. package/lib/service/type/mongodb.tpl.d.ts +4 -0
  159. package/lib/service/type/mongodb.tpl.js +29 -0
  160. package/lib/service/type/mongodb.tpl.js.map +1 -0
  161. package/lib/service/type/mongodb.tpl.ts +34 -0
  162. package/package.json +56 -36
  163. package/bin/feathers.js +0 -5
package/package.json CHANGED
@@ -1,67 +1,87 @@
1
1
  {
2
2
  "name": "@feathersjs/cli",
3
- "description": "Command-line Feathers generator",
4
- "version": "4.6.2",
5
- "homepage": "https://github.com/feathersjs/cli",
3
+ "description": "The command line interface for creating Feathers applications",
4
+ "version": "5.0.0-pre.24",
5
+ "homepage": "https://feathersjs.com",
6
6
  "main": "lib/",
7
7
  "bin": {
8
- "feathers": "./bin/feathers.js"
8
+ "feathers": "./bin/feathers"
9
9
  },
10
10
  "keywords": [
11
11
  "feathers",
12
12
  "feathers-plugin"
13
13
  ],
14
14
  "license": "MIT",
15
+ "funding": {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/daffl"
18
+ },
15
19
  "repository": {
16
20
  "type": "git",
17
- "url": "git://github.com/feathersjs/cli.git"
21
+ "url": "git://github.com/feathersjs/feathers.git"
18
22
  },
19
23
  "author": {
20
24
  "name": "Feathers contributors",
21
25
  "email": "hello@feathersjs.com",
22
26
  "url": "https://feathersjs.com"
23
27
  },
28
+ "contributors": [],
24
29
  "bugs": {
25
- "url": "https://github.com/feathersjs/cli/issues"
30
+ "url": "https://github.com/feathersjs/feathers/issues"
26
31
  },
27
32
  "engines": {
28
- "node": ">= 10"
33
+ "node": ">= 14"
29
34
  },
35
+ "files": [
36
+ "CHANGELOG.md",
37
+ "LICENSE",
38
+ "README.md",
39
+ "lib/**",
40
+ "bin/**",
41
+ "*.d.ts",
42
+ "*.js"
43
+ ],
30
44
  "scripts": {
31
- "publish": "git push origin --tags && npm run changelog && git push origin",
32
- "changelog": "github_changelog_generator -u feathersjs -p cli && git add CHANGELOG.md && git commit -am \"Updating changelog\"",
33
- "release:pre": "npm version prerelease && npm publish --tag pre --access public",
34
- "release:patch": "npm version patch && npm publish --access public",
35
- "release:minor": "npm version minor && npm publish --access public",
36
- "release:major": "npm version major && npm publish --access public",
37
- "mocha": "mocha --recursive test/",
38
- "test": "npm run lint && npm run mocha",
39
- "lint": "semistandard --fix",
40
- "update-dependencies": "ncu -u -x yeoman-environment"
45
+ "prepublish": "npm run compile",
46
+ "compile": "shx rm -rf lib/ && tsc && shx cp -r src/. lib/",
47
+ "mocha": "mocha --timeout 60000 --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts",
48
+ "test": "npm run compile && npm run mocha"
41
49
  },
42
50
  "directories": {
43
- "lib": "lib"
51
+ "lib": "lib/cli"
44
52
  },
45
- "semistandard": {
46
- "sourceType": "module",
47
- "env": [
48
- "mocha"
49
- ]
53
+ "publishConfig": {
54
+ "access": "public"
50
55
  },
51
- "preferGlobal": true,
52
56
  "dependencies": {
53
- "@feathersjs/tools": "^0.2.3",
54
- "commander": "^8.3.0",
55
- "generator-feathers": "4.5.2",
56
- "generator-feathers-plugin": "1.0.1",
57
- "semver": "^7.3.5",
58
- "update-notifier": "^5.1.0",
59
- "yeoman-environment": "^2.10.3"
57
+ "@feathershq/pinion": "^0.3.3",
58
+ "chalk": "^4.0.1",
59
+ "lodash": "^4.17.21",
60
+ "prettier": "^2.7.1"
60
61
  },
61
62
  "devDependencies": {
62
- "lodash": "^4.17.21",
63
- "mocha": "^9.1.3",
64
- "npm-check-updates": "^12.0.3",
65
- "semistandard": "^16.0.1"
66
- }
63
+ "@feathersjs/authentication": "^5.0.0-pre.24",
64
+ "@feathersjs/authentication-local": "^5.0.0-pre.24",
65
+ "@feathersjs/authentication-oauth": "^5.0.0-pre.24",
66
+ "@feathersjs/configuration": "^5.0.0-pre.24",
67
+ "@feathersjs/errors": "^5.0.0-pre.24",
68
+ "@feathersjs/express": "^5.0.0-pre.24",
69
+ "@feathersjs/feathers": "^5.0.0-pre.24",
70
+ "@feathersjs/knex": "^5.0.0-pre.24",
71
+ "@feathersjs/koa": "^5.0.0-pre.24",
72
+ "@feathersjs/mongodb": "^5.0.0-pre.24",
73
+ "@feathersjs/schema": "^5.0.0-pre.24",
74
+ "@feathersjs/socketio": "^5.0.0-pre.24",
75
+ "@feathersjs/transport-commons": "^5.0.0-pre.24",
76
+ "@types/mocha": "^9.1.1",
77
+ "@types/node": "^17.0.40",
78
+ "@types/prettier": "^2.6.3",
79
+ "axios": "^0.27.2",
80
+ "mocha": "^10.0.0",
81
+ "shx": "^0.3.4",
82
+ "ts-node": "^10.8.1",
83
+ "type-fest": "^2.13.0",
84
+ "typescript": "^4.7.3"
85
+ },
86
+ "gitHead": "72779fa2938f43d7b345b6861ff0035481a07de3"
67
87
  }
package/bin/feathers.js DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- 'use strict';
4
-
5
- require('../lib')(process.argv);