Skip to content

Commit

Permalink
feat(sites-js,fe-build): add exports for all js modules
Browse files Browse the repository at this point in the history
added main js entry points for all js sites modules and added gateway main entry point for js package that can be imported as package.json

1367
  • Loading branch information
jkoebner committed Mar 3, 2021
1 parent 9b55159 commit 3179dc5
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/package.json
Expand Up @@ -9,6 +9,7 @@
"type": "git",
"url": "https://github.com/adobe/aem-core-wcm-components"
},
"main": "src/content/jcr_root/apps/core/wcm/components/main.js",
"scripts": {
"aemfed": "aemfed -e \"**/*___jb_+(old|tmp)___\" -w \"src/content/jcr_root/\"",
"eslint": "eslint .",
Expand Down
@@ -0,0 +1,4 @@
export default () => {
require("./polyfills")
require("./accordion")
}
@@ -0,0 +1,4 @@
export default () => {
require("./polyfills")
require("./image")
}
@@ -0,0 +1,4 @@
export default () => {
require("./polyfills")
require("./image")
}
13 changes: 13 additions & 0 deletions content/src/content/jcr_root/apps/core/wcm/components/main.js
@@ -0,0 +1,13 @@
import accordionv1 from './accordion/v1/accordion/clientlibs/site/js/main';
import imagev1 from './image/v1/image/clientlibs/site/js/main';
import imagev2 from './image/v2/image/clientlibs/site/js/main';
import pdfviewerv1 from './pdfviewer/v1/pdfviewer/clientlibs/site/js/main';
import searchv1 from './search/v1/search/clientlibs/site/js/main';
import tabsv1 from './tabs/v1/tabs/clientlibs/site/js/main';

export function accordionv1() {accordionv1()};
export function imagev1() {imagev1()};
export function imagev2() {imagev2()};
export function pdfviewerv1() {pdfviewerv1()};
export function searchv1() {searchv1()};
export function tabsv1() {tabsv1()};
@@ -0,0 +1,3 @@
export default () => {
require("./pdfviewer")
}
@@ -0,0 +1,3 @@
export default () => {
require("./search")
}
@@ -0,0 +1,4 @@
export default () => {
require("./polyfills")
require("./tabs")
}

0 comments on commit 3179dc5

Please sign in to comment.