@strapi/generators 4.10.1-experimental.0 → 4.10.1

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 (143) hide show
  1. package/package.json +4 -4
  2. package/dist/files/js/plugin/admin/src/components/Initializer/index.js +0 -26
  3. package/dist/files/js/plugin/admin/src/components/PluginIcon/index.js +0 -12
  4. package/dist/files/js/plugin/admin/src/index.js +0 -63
  5. package/dist/files/js/plugin/admin/src/pages/App/index.js +0 -25
  6. package/dist/files/js/plugin/admin/src/pages/HomePage/index.js +0 -20
  7. package/dist/files/js/plugin/admin/src/pluginId.js +0 -5
  8. package/dist/files/js/plugin/admin/src/translations/en.json +0 -1
  9. package/dist/files/js/plugin/admin/src/translations/fr.json +0 -1
  10. package/dist/files/js/plugin/admin/src/utils/getTrad.js +0 -5
  11. package/dist/files/js/plugin/server/bootstrap.js +0 -5
  12. package/dist/files/js/plugin/server/config/index.js +0 -6
  13. package/dist/files/js/plugin/server/content-types/index.js +0 -3
  14. package/dist/files/js/plugin/server/controllers/index.js +0 -7
  15. package/dist/files/js/plugin/server/controllers/my-controller.js.hbs +0 -10
  16. package/dist/files/js/plugin/server/destroy.js +0 -5
  17. package/dist/files/js/plugin/server/index.js +0 -25
  18. package/dist/files/js/plugin/server/middlewares/index.js +0 -3
  19. package/dist/files/js/plugin/server/policies/index.js +0 -3
  20. package/dist/files/js/plugin/server/register.js +0 -5
  21. package/dist/files/js/plugin/server/routes/index.js +0 -10
  22. package/dist/files/js/plugin/server/services/index.js +0 -7
  23. package/dist/files/js/plugin/server/services/my-service.js +0 -7
  24. package/dist/files/js/plugin/strapi-admin.js +0 -3
  25. package/dist/files/js/plugin/strapi-server.js +0 -3
  26. package/dist/files/ts/plugin/admin/src/components/Initializer/index.tsx +0 -24
  27. package/dist/files/ts/plugin/admin/src/components/PluginIcon/index.tsx +0 -12
  28. package/dist/files/ts/plugin/admin/src/index.tsx +0 -67
  29. package/dist/files/ts/plugin/admin/src/pages/App/index.tsx +0 -25
  30. package/dist/files/ts/plugin/admin/src/pages/HomePage/index.tsx +0 -19
  31. package/dist/files/ts/plugin/admin/src/pluginId.ts +0 -5
  32. package/dist/files/ts/plugin/admin/src/translations/en.json +0 -1
  33. package/dist/files/ts/plugin/admin/src/translations/fr.json +0 -1
  34. package/dist/files/ts/plugin/admin/src/utils/getTrad.ts +0 -5
  35. package/dist/files/ts/plugin/custom.d.ts +0 -5
  36. package/dist/files/ts/plugin/server/bootstrap.ts +0 -5
  37. package/dist/files/ts/plugin/server/config/index.ts +0 -4
  38. package/dist/files/ts/plugin/server/content-types/index.ts +0 -1
  39. package/dist/files/ts/plugin/server/controllers/index.ts +0 -5
  40. package/dist/files/ts/plugin/server/controllers/my-controller.ts.hbs +0 -10
  41. package/dist/files/ts/plugin/server/destroy.ts +0 -5
  42. package/dist/files/ts/plugin/server/index.ts +0 -23
  43. package/dist/files/ts/plugin/server/middlewares/index.ts +0 -1
  44. package/dist/files/ts/plugin/server/policies/index.ts +0 -1
  45. package/dist/files/ts/plugin/server/register.ts +0 -5
  46. package/dist/files/ts/plugin/server/routes/index.ts +0 -10
  47. package/dist/files/ts/plugin/server/services/index.ts +0 -5
  48. package/dist/files/ts/plugin/server/services/my-service.ts +0 -7
  49. package/dist/files/ts/plugin/strapi-admin.js +0 -3
  50. package/dist/files/ts/plugin/strapi-server.js +0 -3
  51. package/dist/files/ts/plugin/tsconfig.json +0 -20
  52. package/dist/files/ts/plugin/tsconfig.server.json +0 -25
  53. package/dist/index.d.ts +0 -5
  54. package/dist/index.js +0 -32
  55. package/dist/index.js.map +0 -1
  56. package/dist/plopfile.d.ts +0 -3
  57. package/dist/plopfile.js +0 -29
  58. package/dist/plopfile.js.map +0 -1
  59. package/dist/plops/api.d.ts +0 -3
  60. package/dist/plops/api.js +0 -79
  61. package/dist/plops/api.js.map +0 -1
  62. package/dist/plops/content-type.d.ts +0 -3
  63. package/dist/plops/content-type.js +0 -135
  64. package/dist/plops/content-type.js.map +0 -1
  65. package/dist/plops/controller.d.ts +0 -3
  66. package/dist/plops/controller.js +0 -40
  67. package/dist/plops/controller.js.map +0 -1
  68. package/dist/plops/middleware.d.ts +0 -3
  69. package/dist/plops/middleware.js +0 -40
  70. package/dist/plops/middleware.js.map +0 -1
  71. package/dist/plops/migration.d.ts +0 -3
  72. package/dist/plops/migration.js +0 -35
  73. package/dist/plops/migration.js.map +0 -1
  74. package/dist/plops/plugin.d.ts +0 -3
  75. package/dist/plops/plugin.js +0 -84
  76. package/dist/plops/plugin.js.map +0 -1
  77. package/dist/plops/policy.d.ts +0 -3
  78. package/dist/plops/policy.js +0 -40
  79. package/dist/plops/policy.js.map +0 -1
  80. package/dist/plops/prompts/bootstrap-api-prompts.d.ts +0 -3
  81. package/dist/plops/prompts/bootstrap-api-prompts.js +0 -12
  82. package/dist/plops/prompts/bootstrap-api-prompts.js.map +0 -1
  83. package/dist/plops/prompts/ct-names-prompts.d.ts +0 -3
  84. package/dist/plops/prompts/ct-names-prompts.js +0 -45
  85. package/dist/plops/prompts/ct-names-prompts.js.map +0 -1
  86. package/dist/plops/prompts/draft-and-publish-prompts.d.ts +0 -3
  87. package/dist/plops/prompts/draft-and-publish-prompts.js +0 -12
  88. package/dist/plops/prompts/draft-and-publish-prompts.js.map +0 -1
  89. package/dist/plops/prompts/get-attributes-prompts.d.ts +0 -3
  90. package/dist/plops/prompts/get-attributes-prompts.js +0 -95
  91. package/dist/plops/prompts/get-attributes-prompts.js.map +0 -1
  92. package/dist/plops/prompts/get-destination-prompts.d.ts +0 -5
  93. package/dist/plops/prompts/get-destination-prompts.js +0 -72
  94. package/dist/plops/prompts/get-destination-prompts.js.map +0 -1
  95. package/dist/plops/prompts/kind-prompts.d.ts +0 -3
  96. package/dist/plops/prompts/kind-prompts.js +0 -21
  97. package/dist/plops/prompts/kind-prompts.js.map +0 -1
  98. package/dist/plops/service.d.ts +0 -3
  99. package/dist/plops/service.js +0 -38
  100. package/dist/plops/service.js.map +0 -1
  101. package/dist/plops/utils/get-file-path.d.ts +0 -2
  102. package/dist/plops/utils/get-file-path.js +0 -15
  103. package/dist/plops/utils/get-file-path.js.map +0 -1
  104. package/dist/plops/utils/get-formatted-date.d.ts +0 -2
  105. package/dist/plops/utils/get-formatted-date.js +0 -9
  106. package/dist/plops/utils/get-formatted-date.js.map +0 -1
  107. package/dist/plops/utils/validate-attribute-input.d.ts +0 -2
  108. package/dist/plops/utils/validate-attribute-input.js +0 -10
  109. package/dist/plops/utils/validate-attribute-input.js.map +0 -1
  110. package/dist/plops/utils/validate-file-name-input.d.ts +0 -2
  111. package/dist/plops/utils/validate-file-name-input.js +0 -10
  112. package/dist/plops/utils/validate-file-name-input.js.map +0 -1
  113. package/dist/plops/utils/validate-input.d.ts +0 -2
  114. package/dist/plops/utils/validate-input.js +0 -10
  115. package/dist/plops/utils/validate-input.js.map +0 -1
  116. package/dist/templates/js/README.md.hbs +0 -3
  117. package/dist/templates/js/collection-type-routes.js.hbs +0 -49
  118. package/dist/templates/js/content-type.schema.json.hbs +0 -15
  119. package/dist/templates/js/controller.js.hbs +0 -15
  120. package/dist/templates/js/core-controller.js.hbs +0 -9
  121. package/dist/templates/js/core-router.js.hbs +0 -9
  122. package/dist/templates/js/core-service.js.hbs +0 -9
  123. package/dist/templates/js/middleware.js.hbs +0 -14
  124. package/dist/templates/js/migration.js.hbs +0 -15
  125. package/dist/templates/js/plugin-package.json.hbs +0 -42
  126. package/dist/templates/js/policy.js.hbs +0 -18
  127. package/dist/templates/js/service.js.hbs +0 -7
  128. package/dist/templates/js/single-route.js.hbs +0 -13
  129. package/dist/templates/js/single-type-routes.js.hbs +0 -33
  130. package/dist/templates/ts/README.md.hbs +0 -3
  131. package/dist/templates/ts/collection-type-routes.ts.hbs +0 -49
  132. package/dist/templates/ts/content-type.schema.json.hbs +0 -15
  133. package/dist/templates/ts/controller.ts.hbs +0 -13
  134. package/dist/templates/ts/core-controller.ts.hbs +0 -7
  135. package/dist/templates/ts/core-router.ts.hbs +0 -7
  136. package/dist/templates/ts/core-service.ts.hbs +0 -7
  137. package/dist/templates/ts/middleware.ts.hbs +0 -14
  138. package/dist/templates/ts/migration.ts.hbs +0 -11
  139. package/dist/templates/ts/plugin-package.json.hbs +0 -51
  140. package/dist/templates/ts/policy.ts.hbs +0 -16
  141. package/dist/templates/ts/service.ts.hbs +0 -5
  142. package/dist/templates/ts/single-route.ts.hbs +0 -13
  143. package/dist/templates/ts/single-type-routes.ts.hbs +0 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/generators",
3
- "version": "4.10.1-experimental.0",
3
+ "version": "4.10.1",
4
4
  "description": "Interactive API generator.",
5
5
  "keywords": [
6
6
  "strapi",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@sindresorhus/slugify": "1.1.0",
36
- "@strapi/typescript-utils": "4.10.1-experimental.0",
37
- "@strapi/utils": "4.10.1-experimental.0",
36
+ "@strapi/typescript-utils": "4.10.1",
37
+ "@strapi/utils": "4.10.1",
38
38
  "chalk": "4.1.2",
39
39
  "fs-extra": "10.0.0",
40
40
  "node-plop": "0.26.3",
@@ -45,5 +45,5 @@
45
45
  "node": ">=14.19.1 <=18.x.x",
46
46
  "npm": ">=6.0.0"
47
47
  },
48
- "gitHead": "ce60415a0779e850da2c2edd80799f98918c000c"
48
+ "gitHead": "23b531cef55c1583ea7d526b2baf2340a3129dad"
49
49
  }
@@ -1,26 +0,0 @@
1
- /**
2
- *
3
- * Initializer
4
- *
5
- */
6
-
7
- import { useEffect, useRef } from 'react';
8
- import PropTypes from 'prop-types';
9
- import pluginId from '../../pluginId';
10
-
11
- const Initializer = ({ setPlugin }) => {
12
- const ref = useRef();
13
- ref.current = setPlugin;
14
-
15
- useEffect(() => {
16
- ref.current(pluginId);
17
- }, []);
18
-
19
- return null;
20
- };
21
-
22
- Initializer.propTypes = {
23
- setPlugin: PropTypes.func.isRequired,
24
- };
25
-
26
- export default Initializer;
@@ -1,12 +0,0 @@
1
- /**
2
- *
3
- * PluginIcon
4
- *
5
- */
6
-
7
- import React from 'react';
8
- import { Puzzle } from '@strapi/icons';
9
-
10
- const PluginIcon = () => <Puzzle />;
11
-
12
- export default PluginIcon;
@@ -1,63 +0,0 @@
1
- import { prefixPluginTranslations } from '@strapi/helper-plugin';
2
- import pluginPkg from '../../package.json';
3
- import pluginId from './pluginId';
4
- import Initializer from './components/Initializer';
5
- import PluginIcon from './components/PluginIcon';
6
-
7
- const name = pluginPkg.strapi.name;
8
-
9
- export default {
10
- register(app) {
11
- app.addMenuLink({
12
- to: `/plugins/${pluginId}`,
13
- icon: PluginIcon,
14
- intlLabel: {
15
- id: `${pluginId}.plugin.name`,
16
- defaultMessage: name,
17
- },
18
- Component: async () => {
19
- const component = await import(/* webpackChunkName: "[request]" */ './pages/App');
20
-
21
- return component;
22
- },
23
- permissions: [
24
- // Uncomment to set the permissions of the plugin here
25
- // {
26
- // action: '', // the action name should be plugin::plugin-name.actionType
27
- // subject: null,
28
- // },
29
- ],
30
- });
31
- app.registerPlugin({
32
- id: pluginId,
33
- initializer: Initializer,
34
- isReady: false,
35
- name,
36
- });
37
- },
38
-
39
- bootstrap(app) {},
40
- async registerTrads({ locales }) {
41
- const importedTrads = await Promise.all(
42
- locales.map((locale) => {
43
- return import(
44
- /* webpackChunkName: "translation-[request]" */ `./translations/${locale}.json`
45
- )
46
- .then(({ default: data }) => {
47
- return {
48
- data: prefixPluginTranslations(data, pluginId),
49
- locale,
50
- };
51
- })
52
- .catch(() => {
53
- return {
54
- data: {},
55
- locale,
56
- };
57
- });
58
- })
59
- );
60
-
61
- return Promise.resolve(importedTrads);
62
- },
63
- };
@@ -1,25 +0,0 @@
1
- /**
2
- *
3
- * This component is the skeleton around the actual pages, and should only
4
- * contain code that should be seen on all pages. (e.g. navigation bar)
5
- *
6
- */
7
-
8
- import React from 'react';
9
- import { Switch, Route } from 'react-router-dom';
10
- import { AnErrorOccurred } from '@strapi/helper-plugin';
11
- import pluginId from '../../pluginId';
12
- import HomePage from '../HomePage';
13
-
14
- const App = () => {
15
- return (
16
- <div>
17
- <Switch>
18
- <Route path={`/plugins/${pluginId}`} component={HomePage} exact />
19
- <Route component={AnErrorOccurred} />
20
- </Switch>
21
- </div>
22
- );
23
- };
24
-
25
- export default App;
@@ -1,20 +0,0 @@
1
- /*
2
- *
3
- * HomePage
4
- *
5
- */
6
-
7
- import React from 'react';
8
- // import PropTypes from 'prop-types';
9
- import pluginId from '../../pluginId';
10
-
11
- const HomePage = () => {
12
- return (
13
- <div>
14
- <h1>{pluginId}&apos;s HomePage</h1>
15
- <p>Happy coding</p>
16
- </div>
17
- );
18
- };
19
-
20
- export default HomePage;
@@ -1,5 +0,0 @@
1
- import pluginPkg from '../../package.json';
2
-
3
- const pluginId = pluginPkg.name.replace(/^(@[^-,.][\w,-]+\/|strapi-)plugin-/i, '');
4
-
5
- export default pluginId;
@@ -1,5 +0,0 @@
1
- import pluginId from '../pluginId';
2
-
3
- const getTrad = (id) => `${pluginId}.${id}`;
4
-
5
- export default getTrad;
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = ({ strapi }) => {
4
- // bootstrap phase
5
- };
@@ -1,6 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- default: {},
5
- validator() {},
6
- };
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {};
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- const myController = require('./my-controller');
4
-
5
- module.exports = {
6
- myController,
7
- };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = ({ strapi }) => ({
4
- index(ctx) {
5
- ctx.body = strapi
6
- .plugin('{{ pluginName }}')
7
- .service('myService')
8
- .getWelcomeMessage();
9
- },
10
- });
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = ({ strapi }) => {
4
- // destroy phase
5
- };
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- const register = require('./register');
4
- const bootstrap = require('./bootstrap');
5
- const destroy = require('./destroy');
6
- const config = require('./config');
7
- const contentTypes = require('./content-types');
8
- const controllers = require('./controllers');
9
- const routes = require('./routes');
10
- const middlewares = require('./middlewares');
11
- const policies = require('./policies');
12
- const services = require('./services');
13
-
14
- module.exports = {
15
- register,
16
- bootstrap,
17
- destroy,
18
- config,
19
- controllers,
20
- routes,
21
- services,
22
- contentTypes,
23
- policies,
24
- middlewares,
25
- };
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {};
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {};
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = ({ strapi }) => {
4
- // registeration phase
5
- };
@@ -1,10 +0,0 @@
1
- module.exports = [
2
- {
3
- method: 'GET',
4
- path: '/',
5
- handler: 'myController.index',
6
- config: {
7
- policies: [],
8
- },
9
- },
10
- ];
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- const myService = require('./my-service');
4
-
5
- module.exports = {
6
- myService,
7
- };
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = ({ 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('./server');
@@ -1,24 +0,0 @@
1
- /**
2
- *
3
- * Initializer
4
- *
5
- */
6
-
7
- import { useEffect, useRef } from 'react';
8
- import pluginId from '../../pluginId';
9
-
10
- type InitializerProps = {
11
- setPlugin: (id: string) => void;
12
- };
13
-
14
- const Initializer = ({ setPlugin }: InitializerProps) => {
15
- const ref = useRef(setPlugin);
16
-
17
- useEffect(() => {
18
- ref.current(pluginId);
19
- }, []);
20
-
21
- return null;
22
- };
23
-
24
- export default Initializer;
@@ -1,12 +0,0 @@
1
- /**
2
- *
3
- * PluginIcon
4
- *
5
- */
6
-
7
- import React from 'react';
8
- import { Puzzle } from '@strapi/icons';
9
-
10
- const PluginIcon = () => <Puzzle />;
11
-
12
- export default PluginIcon;
@@ -1,67 +0,0 @@
1
- import { prefixPluginTranslations } from '@strapi/helper-plugin';
2
-
3
- import pluginPkg from '../../package.json';
4
- import pluginId from './pluginId';
5
- import Initializer from './components/Initializer';
6
- import PluginIcon from './components/PluginIcon';
7
-
8
- const name = pluginPkg.strapi.name;
9
-
10
- export default {
11
- register(app: any) {
12
- app.addMenuLink({
13
- to: `/plugins/${pluginId}`,
14
- icon: PluginIcon,
15
- intlLabel: {
16
- id: `${pluginId}.plugin.name`,
17
- defaultMessage: name,
18
- },
19
- Component: async () => {
20
- const component = await import(/* webpackChunkName: "[request]" */ './pages/App');
21
-
22
- return component;
23
- },
24
- permissions: [
25
- // Uncomment to set the permissions of the plugin here
26
- // {
27
- // action: '', // the action name should be plugin::plugin-name.actionType
28
- // subject: null,
29
- // },
30
- ],
31
- });
32
- const plugin = {
33
- id: pluginId,
34
- initializer: Initializer,
35
- isReady: false,
36
- name,
37
- };
38
-
39
- app.registerPlugin(plugin);
40
- },
41
-
42
- bootstrap(app: any) {},
43
-
44
- async registerTrads(app: any) {
45
- const { locales } = app;
46
-
47
- const importedTrads = await Promise.all(
48
- (locales as any[]).map((locale) => {
49
- return import(`./translations/${locale}.json`)
50
- .then(({ default: data }) => {
51
- return {
52
- data: prefixPluginTranslations(data, pluginId),
53
- locale,
54
- };
55
- })
56
- .catch(() => {
57
- return {
58
- data: {},
59
- locale,
60
- };
61
- });
62
- })
63
- );
64
-
65
- return Promise.resolve(importedTrads);
66
- },
67
- };
@@ -1,25 +0,0 @@
1
- /**
2
- *
3
- * This component is the skeleton around the actual pages, and should only
4
- * contain code that should be seen on all pages. (e.g. navigation bar)
5
- *
6
- */
7
-
8
- import React from 'react';
9
- import { Switch, Route } from 'react-router-dom';
10
- import { AnErrorOccurred } from '@strapi/helper-plugin';
11
- import pluginId from '../../pluginId';
12
- import HomePage from '../HomePage';
13
-
14
- const App = () => {
15
- return (
16
- <div>
17
- <Switch>
18
- <Route path={`/plugins/${pluginId}`} component={HomePage} exact />
19
- <Route component={AnErrorOccurred} />
20
- </Switch>
21
- </div>
22
- );
23
- };
24
-
25
- export default App;
@@ -1,19 +0,0 @@
1
- /*
2
- *
3
- * HomePage
4
- *
5
- */
6
-
7
- import React from 'react';
8
- import pluginId from '../../pluginId';
9
-
10
- const HomePage = () => {
11
- return (
12
- <div>
13
- <h1>{pluginId}&apos;s HomePage</h1>
14
- <p>Happy coding</p>
15
- </div>
16
- );
17
- };
18
-
19
- export default HomePage;
@@ -1,5 +0,0 @@
1
- import pluginPkg from '../../package.json';
2
-
3
- const pluginId = pluginPkg.name.replace(/^(@[^-,.][\w,-]+\/|strapi-)plugin-/i, '');
4
-
5
- export default pluginId;
@@ -1,5 +0,0 @@
1
- import pluginId from '../pluginId';
2
-
3
- const getTrad = (id: string) => `${pluginId}.${id}`;
4
-
5
- export default getTrad;
@@ -1,5 +0,0 @@
1
- declare module '@strapi/design-system/*';
2
- declare module '@strapi/design-system';
3
- declare module '@strapi/icons';
4
- declare module '@strapi/icons/*';
5
- declare module '@strapi/helper-plugin';
@@ -1,5 +0,0 @@
1
- import { Strapi } from '@strapi/strapi';
2
-
3
- export default ({ strapi }: { strapi: Strapi }) => {
4
- // bootstrap phase
5
- };
@@ -1,4 +0,0 @@
1
- export default {
2
- default: {},
3
- validator() {},
4
- };
@@ -1 +0,0 @@
1
- export default {};
@@ -1,5 +0,0 @@
1
- import myController from './my-controller';
2
-
3
- export default {
4
- myController,
5
- };
@@ -1,10 +0,0 @@
1
- import { Strapi } from '@strapi/strapi';
2
-
3
- export default ({ strapi }: { strapi: Strapi }) => ({
4
- index(ctx) {
5
- ctx.body = strapi
6
- .plugin('{{ pluginName }}')
7
- .service('myService')
8
- .getWelcomeMessage();
9
- },
10
- });
@@ -1,5 +0,0 @@
1
- import { Strapi } from '@strapi/strapi';
2
-
3
- export default ({ strapi }: { strapi: Strapi }) => {
4
- // destroy phase
5
- };
@@ -1,23 +0,0 @@
1
- import register from './register';
2
- import bootstrap from './bootstrap';
3
- import destroy from './destroy';
4
- import config from './config';
5
- import contentTypes from './content-types';
6
- import controllers from './controllers';
7
- import routes from './routes';
8
- import middlewares from './middlewares';
9
- import policies from './policies';
10
- import services from './services';
11
-
12
- export default {
13
- register,
14
- bootstrap,
15
- destroy,
16
- config,
17
- controllers,
18
- routes,
19
- services,
20
- contentTypes,
21
- policies,
22
- middlewares,
23
- };
@@ -1 +0,0 @@
1
- export default {};
@@ -1 +0,0 @@
1
- export default {};
@@ -1,5 +0,0 @@
1
- import { Strapi } from '@strapi/strapi';
2
-
3
- export default ({ strapi }: { strapi: Strapi }) => {
4
- // registeration phase
5
- };
@@ -1,10 +0,0 @@
1
- export default [
2
- {
3
- method: 'GET',
4
- path: '/',
5
- handler: 'myController.index',
6
- config: {
7
- policies: [],
8
- },
9
- },
10
- ];
@@ -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
- }