@strapi/generators 0.0.0-next.e9b6852d1c05518ff6e37d599321f7aa7aa0683b → 0.0.0-next.ea6e3b80ab37f554da4f8bde08dbfe9b57400d31

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 (91) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +35 -8
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +11 -6
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/plopfile.d.ts +1 -1
  8. package/dist/plopfile.d.ts.map +1 -1
  9. package/dist/plopfile.js +6 -123
  10. package/dist/plopfile.js.map +1 -1
  11. package/dist/plopfile.mjs +7 -104
  12. package/dist/plopfile.mjs.map +1 -1
  13. package/dist/plops/api.d.ts +1 -1
  14. package/dist/plops/api.d.ts.map +1 -1
  15. package/dist/plops/content-type.d.ts +1 -1
  16. package/dist/plops/content-type.d.ts.map +1 -1
  17. package/dist/plops/controller.d.ts +1 -1
  18. package/dist/plops/controller.d.ts.map +1 -1
  19. package/dist/plops/middleware.d.ts +1 -1
  20. package/dist/plops/middleware.d.ts.map +1 -1
  21. package/dist/plops/migration.d.ts +1 -1
  22. package/dist/plops/migration.d.ts.map +1 -1
  23. package/dist/plops/policy.d.ts +1 -1
  24. package/dist/plops/policy.d.ts.map +1 -1
  25. package/dist/plops/service.d.ts +1 -1
  26. package/dist/plops/service.d.ts.map +1 -1
  27. package/dist/templates/js/content-type.schema.json.hbs +0 -1
  28. package/dist/templates/ts/content-type.schema.json.hbs +0 -1
  29. package/dist/templates/ts/middleware.ts.hbs +2 -2
  30. package/package.json +12 -11
  31. package/dist/files/js/plugin/.gitattributes +0 -103
  32. package/dist/files/js/plugin/admin/src/components/Initializer/index.js +0 -26
  33. package/dist/files/js/plugin/admin/src/components/PluginIcon/index.js +0 -12
  34. package/dist/files/js/plugin/admin/src/index.js +0 -61
  35. package/dist/files/js/plugin/admin/src/pages/App/index.js +0 -25
  36. package/dist/files/js/plugin/admin/src/pages/HomePage/index.js +0 -20
  37. package/dist/files/js/plugin/admin/src/pluginId.js +0 -5
  38. package/dist/files/js/plugin/admin/src/translations/en.json +0 -1
  39. package/dist/files/js/plugin/admin/src/translations/fr.json +0 -1
  40. package/dist/files/js/plugin/admin/src/utils/getTrad.js +0 -5
  41. package/dist/files/js/plugin/server/bootstrap.js +0 -5
  42. package/dist/files/js/plugin/server/config/index.js +0 -6
  43. package/dist/files/js/plugin/server/content-types/index.js +0 -3
  44. package/dist/files/js/plugin/server/controllers/index.js +0 -7
  45. package/dist/files/js/plugin/server/controllers/my-controller.js.hbs +0 -10
  46. package/dist/files/js/plugin/server/destroy.js +0 -5
  47. package/dist/files/js/plugin/server/index.js +0 -25
  48. package/dist/files/js/plugin/server/middlewares/index.js +0 -3
  49. package/dist/files/js/plugin/server/policies/index.js +0 -3
  50. package/dist/files/js/plugin/server/register.js +0 -5
  51. package/dist/files/js/plugin/server/routes/index.js +0 -10
  52. package/dist/files/js/plugin/server/services/index.js +0 -7
  53. package/dist/files/js/plugin/server/services/my-service.js +0 -7
  54. package/dist/files/js/plugin/strapi-admin.js +0 -3
  55. package/dist/files/js/plugin/strapi-server.js +0 -3
  56. package/dist/files/ts/plugin/.gitattributes +0 -103
  57. package/dist/files/ts/plugin/admin/src/components/Initializer/index.tsx +0 -24
  58. package/dist/files/ts/plugin/admin/src/components/PluginIcon/index.tsx +0 -12
  59. package/dist/files/ts/plugin/admin/src/index.tsx +0 -67
  60. package/dist/files/ts/plugin/admin/src/pages/App/index.tsx +0 -25
  61. package/dist/files/ts/plugin/admin/src/pages/HomePage/index.tsx +0 -19
  62. package/dist/files/ts/plugin/admin/src/pluginId.ts +0 -5
  63. package/dist/files/ts/plugin/admin/src/translations/en.json +0 -1
  64. package/dist/files/ts/plugin/admin/src/translations/fr.json +0 -1
  65. package/dist/files/ts/plugin/admin/src/utils/getTrad.ts +0 -5
  66. package/dist/files/ts/plugin/custom.d.ts +0 -5
  67. package/dist/files/ts/plugin/server/bootstrap.ts +0 -5
  68. package/dist/files/ts/plugin/server/config/index.ts +0 -4
  69. package/dist/files/ts/plugin/server/content-types/index.ts +0 -1
  70. package/dist/files/ts/plugin/server/controllers/index.ts +0 -5
  71. package/dist/files/ts/plugin/server/controllers/my-controller.ts.hbs +0 -10
  72. package/dist/files/ts/plugin/server/destroy.ts +0 -5
  73. package/dist/files/ts/plugin/server/index.ts +0 -23
  74. package/dist/files/ts/plugin/server/middlewares/index.ts +0 -1
  75. package/dist/files/ts/plugin/server/policies/index.ts +0 -1
  76. package/dist/files/ts/plugin/server/register.ts +0 -5
  77. package/dist/files/ts/plugin/server/routes/index.ts +0 -10
  78. package/dist/files/ts/plugin/server/services/index.ts +0 -5
  79. package/dist/files/ts/plugin/server/services/my-service.ts +0 -7
  80. package/dist/files/ts/plugin/strapi-admin.js +0 -3
  81. package/dist/files/ts/plugin/strapi-server.js +0 -3
  82. package/dist/files/ts/plugin/tsconfig.json +0 -20
  83. package/dist/files/ts/plugin/tsconfig.server.json +0 -25
  84. package/dist/plops/plugin.d.ts +0 -4
  85. package/dist/plops/plugin.d.ts.map +0 -1
  86. package/dist/plops/prompts/draft-and-publish-prompts.d.ts +0 -4
  87. package/dist/plops/prompts/draft-and-publish-prompts.d.ts.map +0 -1
  88. package/dist/templates/js/README.md.hbs +0 -3
  89. package/dist/templates/js/plugin-package.json.hbs +0 -42
  90. package/dist/templates/ts/README.md.hbs +0 -3
  91. package/dist/templates/ts/plugin-package.json.hbs +0 -51
@@ -1,5 +0,0 @@
1
- import myService from './my-service';
2
-
3
- export default {
4
- myService,
5
- };
@@ -1,7 +0,0 @@
1
- import { Strapi } from '@strapi/strapi';
2
-
3
- export default ({ strapi }: { strapi: Strapi }) => ({
4
- getWelcomeMessage() {
5
- return 'Welcome to Strapi 🚀';
6
- },
7
- });
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = require('./admin/src').default;
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = require('./dist/server');
@@ -1,20 +0,0 @@
1
- {
2
- "extends": "@strapi/typescript-utils/tsconfigs/admin",
3
-
4
- "compilerOptions": {
5
- "target": "ESNext",
6
- "strict": true
7
- },
8
-
9
- "include": ["admin", "custom.d.ts"],
10
-
11
- "exclude": [
12
- "node_modules/",
13
- "dist/",
14
-
15
- // Do not include server files in the server compilation
16
- "server/",
17
- // Do not include test files
18
- "**/*.test.ts"
19
- ]
20
- }
@@ -1,25 +0,0 @@
1
- {
2
- "extends": "@strapi/typescript-utils/tsconfigs/server",
3
-
4
- "compilerOptions": {
5
- "outDir": "dist",
6
- "rootDir": "."
7
- },
8
-
9
- "include": [
10
- // Include the root directory
11
- "server",
12
- // Force the JSON files in the src folder to be included
13
- "server/**/*.json"
14
- ],
15
-
16
- "exclude": [
17
- "node_modules/",
18
- "dist/",
19
-
20
- // Do not include admin files in the server compilation
21
- "admin/",
22
- // Do not include test files
23
- "**/*.test.ts"
24
- ]
25
- }
@@ -1,4 +0,0 @@
1
- import { NodePlopAPI } from 'plop';
2
- declare const _default: (plop: NodePlopAPI) => void;
3
- export default _default;
4
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plops/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;+BAmCb,WAAW;AAAjC,wBA8DE"}
@@ -1,4 +0,0 @@
1
- import type { PromptQuestion } from 'node-plop';
2
- declare const questions: Array<PromptQuestion>;
3
- export default questions;
4
- //# sourceMappingURL=draft-and-publish-prompts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draft-and-publish-prompts.d.ts","sourceRoot":"","sources":["../../../src/plops/prompts/draft-and-publish-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,cAAc,CAOpC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,3 +0,0 @@
1
- # Strapi plugin {{ pluginName }}
2
-
3
- A quick description of {{ pluginName }}.
@@ -1,42 +0,0 @@
1
- {
2
- "name": "{{ pluginName }}",
3
- "version": "0.0.0",
4
- "description": "This is the description of the plugin.",
5
- "strapi": {
6
- "name": "{{ pluginName }}",
7
- "description": "Description of {{titleCase pluginName }} plugin",
8
- "kind": "plugin",
9
- "displayName": "{{titleCase pluginName }}"
10
- },
11
- "dependencies": {
12
- "@strapi/design-system": "^1.6.3",
13
- "@strapi/helper-plugin": "^4.6.0",
14
- "@strapi/icons": "^1.6.3",
15
- "prop-types": "^15.7.2"
16
- },
17
- "devDependencies": {
18
- "react": "^18.2.0",
19
- "react-dom": "^18.2.0",
20
- "react-router-dom": "^5.3.4",
21
- "styled-components": "^5.3.6"
22
- },
23
- "peerDependencies": {
24
- "react": "^17.0.0 || ^18.0.0",
25
- "react-dom": "^17.0.0 || ^18.0.0",
26
- "react-router-dom": "^5.2.0",
27
- "styled-components": "^5.2.1"
28
- },
29
- "author": {
30
- "name": "A Strapi developer"
31
- },
32
- "maintainers": [
33
- {
34
- "name": "A Strapi developer"
35
- }
36
- ],
37
- "engines": {
38
- "node": ">=18.0.0 <=20.x.x",
39
- "npm": ">=6.0.0"
40
- },
41
- "license": "MIT"
42
- }
@@ -1,3 +0,0 @@
1
- # Strapi plugin {{ pluginName }}
2
-
3
- A quick description of {{ pluginName }}.
@@ -1,51 +0,0 @@
1
- {
2
- "name": "{{ pluginName }}",
3
- "version": "0.0.0",
4
- "description": "This is the description of the plugin.",
5
- "strapi": {
6
- "name": "{{ pluginName }}",
7
- "description": "Description of {{ pluginName }} plugin",
8
- "kind": "plugin"
9
- },
10
- "dependencies": {
11
- "@strapi/design-system": "^1.6.3",
12
- "@strapi/helper-plugin": "^4.6.0",
13
- "@strapi/icons": "^1.6.3",
14
- "prop-types": "^15.7.2"
15
- },
16
- "devDependencies": {
17
- "@strapi/typescript-utils": "^4.6.0",
18
- "@types/react": "^17.0.53",
19
- "@types/react-dom": "^18.0.28",
20
- "@types/react-router-dom": "^5.3.3",
21
- "@types/styled-components": "^5.1.32",
22
- "react": "^18.2.0",
23
- "react-dom": "^18.2.0",
24
- "react-router-dom": "^5.3.4",
25
- "styled-components": "^5.3.6",
26
- "typescript": "5.0.4"
27
- },
28
- "peerDependencies": {
29
- "react": "^17.0.0 || ^18.0.0",
30
- "react-dom": "^17.0.0 || ^18.0.0",
31
- "react-router-dom": "^5.2.0",
32
- "styled-components": "^5.2.1"
33
- },
34
- "author": {
35
- "name": "A Strapi developer"
36
- },
37
- "maintainers": [
38
- {
39
- "name": "A Strapi developer"
40
- }
41
- ],
42
- "engines": {
43
- "node": ">=18.0.0 <=20.x.x",
44
- "npm": ">=6.0.0"
45
- },
46
- "scripts": {
47
- "develop": "tsc -p tsconfig.server.json -w",
48
- "build": "tsc -p tsconfig.server.json"
49
- },
50
- "license": "MIT"
51
- }