@jahia/create-module 0.0.2 → 0.0.4

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 (67) hide show
  1. package/.github/workflows/lint.yml +5 -3
  2. package/.github/workflows/publish-release.yml +2 -2
  3. package/.yarn/releases/yarn-4.5.0.cjs +925 -0
  4. package/.yarnrc.yml +3 -0
  5. package/README.md +9 -4
  6. package/index.js +34 -67
  7. package/package.json +7 -10
  8. package/template/.babelrc +9 -0
  9. package/template/.yarn/releases/yarn-4.3.1.cjs +894 -0
  10. package/template/.yarnrc.yml +3 -0
  11. package/{jsx → template}/README.md +20 -0
  12. package/{handlebars → template}/dotenv +1 -1
  13. package/template/dotgitignore +18 -0
  14. package/{jsx → template}/dotnpmignore +1 -1
  15. package/{jsx → template}/package.json +16 -16
  16. package/template/settings/README.md +30 -0
  17. package/{jsx → template/settings}/definitions.cnd +6 -0
  18. package/template/settings/locales/de.json +5 -0
  19. package/template/settings/locales/en.json +5 -0
  20. package/template/settings/locales/fr.json +5 -0
  21. package/template/src/server/templates/page/PageHome.jsx +29 -0
  22. package/template/src/server/views/hello/HelloDefault.jsx +19 -0
  23. package/{jsx → template}/webpack.config.js +49 -23
  24. package/babel.config.cjs.disabled +0 -3
  25. package/handlebars/README.md +0 -11
  26. package/handlebars/components/MODULE_NAMESPACE/hello/hello.cnd +0 -6
  27. package/handlebars/components/MODULE_NAMESPACE/hello/hello.default.hbs +0 -1
  28. package/handlebars/components/MODULE_NAMESPACE/hello/hello.icon.png +0 -0
  29. package/handlebars/components/jnt/page/page.home.hbs +0 -18
  30. package/handlebars/components/jnt/page/page.home.png +0 -0
  31. package/handlebars/components/jnt/page/page.home.properties +0 -2
  32. package/handlebars/definitions.cnd +0 -8
  33. package/handlebars/doteslintrc.cjs +0 -29
  34. package/handlebars/dotgitignore +0 -15
  35. package/handlebars/dotnpmignore +0 -4
  36. package/handlebars/import.xml +0 -8
  37. package/handlebars/locales/de.json +0 -3
  38. package/handlebars/locales/en.json +0 -3
  39. package/handlebars/locales/fr.json +0 -3
  40. package/handlebars/package.json +0 -41
  41. package/handlebars/resources/MODULE_NAME.properties +0 -2
  42. package/handlebars/resources/MODULE_NAME_fr.properties +0 -2
  43. package/handlebars/settings/README.txt +0 -9
  44. package/handlebars/src/index.js +0 -0
  45. package/handlebars/webpack.config.js +0 -49
  46. package/jsx/dotenv +0 -4
  47. package/jsx/dotgitignore +0 -15
  48. package/jsx/locales/de.json +0 -4
  49. package/jsx/locales/en.json +0 -4
  50. package/jsx/locales/fr.json +0 -4
  51. package/jsx/settings/README.txt +0 -9
  52. package/jsx/src/server/templates/page/PageHome.jsx +0 -24
  53. package/jsx/src/server/views/hello/HelloDefault.jsx +0 -18
  54. package/jsx/yarn.lock +0 -0
  55. /package/{jsx → template}/css/styles.css +0 -0
  56. /package/{jsx → template}/doteslintrc.cjs +0 -0
  57. /package/{jsx → template/settings}/import.xml +0 -0
  58. /package/{jsx → template/settings}/resources/MODULE_NAME.properties +0 -0
  59. /package/{jsx → template/settings}/resources/MODULE_NAME_fr.properties +0 -0
  60. /package/{jsx → template}/src/client/index.jsx +0 -0
  61. /package/{jsx → template}/src/server/components/index.js +0 -0
  62. /package/{jsx → template}/src/server/index.js +0 -0
  63. /package/{jsx → template}/src/server/templates/index.js +0 -0
  64. /package/{jsx → template}/src/server/templates/page/index.js +0 -0
  65. /package/{jsx → template}/src/server/views/hello/index.js +0 -0
  66. /package/{jsx → template}/src/server/views/index.js +0 -0
  67. /package/{handlebars → template}/yarn.lock +0 -0
@@ -1,4 +0,0 @@
1
- {
2
- "greeting": "Hello !",
3
- "welcomeTitle" : "Welcome to Jahia !"
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "greeting": "Salut !",
3
- "welcomeTitle" : "Bienvenue chez Jahia !"
4
- }
@@ -1,9 +0,0 @@
1
- In this directory you can put directly :
2
- - Rule files (*.drl, *.dsl)
3
- - URL rewrite XML files
4
-
5
- In the configurations directory you can put :
6
- - OSGi configuration files (*.cfg, *.yml)
7
-
8
- In the jahia-content-editor-forms you can put content editor form and field set overrides,
9
- see examples here : https://academy.jahia.com/documentation/jahia/jahia-8/developer/extending-and-customizing-jahia-ui/customizing-content-editor-forms/examples-of-content-definition-json-overrides
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import {Area, AddResources} from '@jahia/js-server-core';
3
-
4
- export const PageHome = () => {
5
- return (<>
6
- <head>
7
- <AddResources type='css' resources='styles.css' />
8
- <title>Home</title>
9
- </head>
10
- <body>
11
- <h1>Home Template</h1>
12
- <main>
13
- <Area name="pagecontent" />
14
- </main>
15
- </body>
16
- </>);
17
- }
18
-
19
- PageHome.jahiaComponent = { // This object is used to register the template in Jahia
20
- nodeType: 'jnt:page', // The content node type the template applies to
21
- name: 'home', // The name of the template
22
- displayName: 'Home page', // The display name of the page template
23
- componentType: 'template' // the component type is set to template (as opposed to view component types)
24
- }
@@ -1,18 +0,0 @@
1
- import React from 'react'
2
- import { useServerContext, getNodeProps } from '@jahia/js-server-core'
3
-
4
- export const HelloDefault = () => {
5
- const { currentNode } = useServerContext();
6
- const props = getNodeProps(currentNode, ['textHello']);
7
- return (
8
- <div>
9
- <h2>{props.textHello}</h2>
10
- </div>
11
- )
12
- }
13
-
14
- HelloDefault.jahiaComponent = { // this object is used to register the view in Jahia
15
- nodeType: '$$MODULE_NAMESPACE$$:hello', // The content node type the template applies to
16
- displayName: 'Hello (default)', // The display name of the view
17
- componentType: 'view' // the component type is set to view (as opposed to template component types)
18
- }
package/jsx/yarn.lock DELETED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes