@jahia/create-module 0.0.3 → 0.0.5

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 (69) hide show
  1. package/.yarn/releases/{yarn-4.4.0.cjs → yarn-4.5.0.cjs} +224 -224
  2. package/.yarnrc.yml +1 -1
  3. package/README.md +9 -4
  4. package/index.js +68 -88
  5. package/package.json +5 -8
  6. package/template/.babelrc +9 -0
  7. package/{jsx → template}/doteslintrc.cjs +1 -0
  8. package/{handlebars → template}/dotgitignore +3 -0
  9. package/{jsx → template}/dotnpmignore +1 -1
  10. package/{jsx → template}/package.json +4 -4
  11. package/template/settings/README.md +30 -0
  12. package/template/settings/content-types-icons/MODULE_NAMESPACE_simpleContent.png +0 -0
  13. package/{jsx → template/settings}/definitions.cnd +2 -2
  14. package/template/settings/resources/MODULE_NAME.properties +3 -0
  15. package/template/settings/resources/MODULE_NAME_fr.properties +3 -0
  16. package/template/settings/template-thumbnail.png +0 -0
  17. package/{jsx → template}/src/client/index.jsx +1 -1
  18. package/template/src/server/templates/page/PageHome.jsx +31 -0
  19. package/template/src/server/views/index.js +1 -0
  20. package/template/src/server/views/simpleContent/SimpleContentDefault.jsx +19 -0
  21. package/template/src/server/views/simpleContent/index.js +1 -0
  22. package/{jsx → template}/webpack.config.js +4 -1
  23. package/babel.config.cjs.disabled +0 -3
  24. package/handlebars/components/MODULE_NAMESPACE/hello/hello.cnd +0 -6
  25. package/handlebars/components/MODULE_NAMESPACE/hello/hello.default.hbs +0 -1
  26. package/handlebars/components/MODULE_NAMESPACE/hello/hello.icon.png +0 -0
  27. package/handlebars/components/jnt/page/page.home.hbs +0 -18
  28. package/handlebars/components/jnt/page/page.home.png +0 -0
  29. package/handlebars/components/jnt/page/page.home.properties +0 -2
  30. package/handlebars/definitions.cnd +0 -8
  31. package/handlebars/dotenv +0 -4
  32. package/handlebars/doteslintrc.cjs +0 -29
  33. package/handlebars/dotnpmignore +0 -4
  34. package/handlebars/import.xml +0 -8
  35. package/handlebars/locales/de.json +0 -3
  36. package/handlebars/locales/en.json +0 -3
  37. package/handlebars/locales/fr.json +0 -3
  38. package/handlebars/package.json +0 -42
  39. package/handlebars/resources/MODULE_NAME.properties +0 -2
  40. package/handlebars/resources/MODULE_NAME_fr.properties +0 -2
  41. package/handlebars/settings/README.txt +0 -9
  42. package/handlebars/src/index.js +0 -0
  43. package/handlebars/webpack.config.js +0 -67
  44. package/jsx/.yarn/releases/yarn-4.3.1.cjs +0 -894
  45. package/jsx/.yarnrc.yml +0 -3
  46. package/jsx/README.md +0 -31
  47. package/jsx/dotgitignore +0 -18
  48. package/jsx/resources/MODULE_NAME.properties +0 -3
  49. package/jsx/resources/MODULE_NAME_fr.properties +0 -3
  50. package/jsx/settings/README.txt +0 -9
  51. package/jsx/src/server/templates/page/PageHome.jsx +0 -27
  52. package/jsx/src/server/views/hello/HelloDefault.jsx +0 -19
  53. package/jsx/src/server/views/hello/index.js +0 -1
  54. package/jsx/src/server/views/index.js +0 -1
  55. package/jsx/yarn.lock +0 -0
  56. /package/{handlebars → template}/.yarn/releases/yarn-4.3.1.cjs +0 -0
  57. /package/{handlebars → template}/.yarnrc.yml +0 -0
  58. /package/{handlebars → template}/README.md +0 -0
  59. /package/{jsx → template}/css/styles.css +0 -0
  60. /package/{jsx → template}/dotenv +0 -0
  61. /package/{jsx → template/settings}/import.xml +0 -0
  62. /package/{jsx → template/settings}/locales/de.json +0 -0
  63. /package/{jsx → template/settings}/locales/en.json +0 -0
  64. /package/{jsx → template/settings}/locales/fr.json +0 -0
  65. /package/{jsx → template}/src/server/components/index.js +0 -0
  66. /package/{jsx → template}/src/server/index.js +0 -0
  67. /package/{jsx → template}/src/server/templates/index.js +0 -0
  68. /package/{jsx → template}/src/server/templates/page/index.js +0 -0
  69. /package/{handlebars → template}/yarn.lock +0 -0
@@ -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
File without changes
@@ -1,67 +0,0 @@
1
- const path = require('path');
2
- const WebpackShellPluginNext = require('webpack-shell-plugin-next');
3
- const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin');
4
-
5
- module.exports = env => {
6
- // Unique config for jahia's server-side source code (components using server side rendering)
7
- // Those components have access to jahia's custom types and functions (https://academy.jahia.com/documentation/jahia/jahia-8/developer/javascript-module-development/javascript-modules-reference-documentation)
8
- const config = {
9
- entry: {
10
- main: path.resolve(__dirname, 'src/index')
11
- },
12
- output: {
13
- path: path.resolve(__dirname, 'dist')
14
- },
15
- externals: {
16
- // Those libraries are supplied to webpack at runtime (by the npm-module-engine project), and are not packaged in the output bundle
17
- '@jahia/js-server-core': 'jsServerCoreLibraryBuilder.getLibrary()',
18
- handlebars: 'jsServerCoreLibraryBuilder.getSharedLibrary(\'handlebars\')'
19
- },
20
- plugins: [
21
- // This plugin help you to attach extra files or dirs to webpack's watch system
22
- new ExtraWatchWebpackPlugin({
23
- files: [
24
- 'src/**/*',
25
- 'components/**/*',
26
- 'views/**/*',
27
- 'images/**/*',
28
- 'css/**/*',
29
- 'javascript/**/*',
30
- 'locales/**/*.json',
31
- 'resources/**/*.properties',
32
- 'settings/**/*',
33
- 'definitions.cnd',
34
- 'import.xml',
35
- 'package.json'
36
- ]
37
- })
38
- ],
39
- devtool: 'inline-source-map'
40
- };
41
-
42
- // 'jahia-pack' is a custom jahia script that makes a tgz package of the module's bundle
43
- if (env.pack) {
44
- config.plugins.push(
45
- // This plugin allows you to run any shell commands before or after webpack builds.
46
- new WebpackShellPluginNext({
47
- onAfterDone: {
48
- scripts: ['yarn jahia-pack']
49
- }
50
- })
51
- );
52
- }
53
-
54
- // 'jahia-deploy' is a custom jahia script that makes a tgz package of the module's bundle and deploy it to jahia via curl.
55
- if (env.deploy) {
56
- config.plugins.push(
57
- // This plugin allows you to run any shell commands before or after webpack builds.
58
- new WebpackShellPluginNext({
59
- onAfterDone: {
60
- scripts: ['yarn jahia-deploy']
61
- }
62
- })
63
- );
64
- }
65
-
66
- return config;
67
- };