olum-compiler 1.9.6 → 1.9.7

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.
package/bin/copySrc.js CHANGED
@@ -38,7 +38,7 @@ function injectIndexHtml(indexHtmlPath) {
38
38
  : `<script>globalThis.__OLUM_DEV__ = true;</script>\n`;
39
39
  indexHtmlContent = indexHtmlContent.replace(
40
40
  /<\/body>/,
41
- `\n<div id="app"></div>\n${devFlagTag}${importMapTag}<script defer type="module" src="../src/main.js"></script>\n${devtoolScriptContent}</body>`,
41
+ `\n<div id="olum-app"></div>\n${devFlagTag}${importMapTag}<script defer type="module" src="../src/main.js"></script>\n${devtoolScriptContent}</body>`,
42
42
  );
43
43
  fs.writeFileSync(indexHtmlPath, indexHtmlContent);
44
44
  }
package/lib/changes.txt CHANGED
@@ -1,8 +1,8 @@
1
- change /tmp/olum-dev-test-bTmY24/src/page.html
2
- change /tmp/olum-dev-test-bTmY24/public/main.css
3
- addDir /tmp/olum-dev-test-bTmY24/src/blog
4
- add /tmp/olum-dev-test-bTmY24/src/blog/page.html
5
- unlink /tmp/olum-dev-test-bTmY24/src/blog/page.html
6
- unlinkDir /tmp/olum-dev-test-bTmY24/src/blog
7
- change /tmp/olum-dev-test-bTmY24/src/util.js
8
- change /tmp/olum-dev-test-bTmY24/src/page.html
1
+ change /tmp/olum-dev-test-E0g6QU/src/page.html
2
+ change /tmp/olum-dev-test-E0g6QU/public/main.css
3
+ addDir /tmp/olum-dev-test-E0g6QU/src/blog
4
+ add /tmp/olum-dev-test-E0g6QU/src/blog/page.html
5
+ unlink /tmp/olum-dev-test-E0g6QU/src/blog/page.html
6
+ unlinkDir /tmp/olum-dev-test-E0g6QU/src/blog
7
+ change /tmp/olum-dev-test-E0g6QU/src/util.js
8
+ change /tmp/olum-dev-test-E0g6QU/src/page.html
package/lib/helpers.js CHANGED
@@ -775,7 +775,7 @@ const compileRoutes = (entryPoint) => {
775
775
  if (manifest["not-found"]) has404Page = true;
776
776
  const libImports = `import Olum from "olum";\nimport Router from "olum-router";`;
777
777
  const imports = generateImports(manifest);
778
- const config = `const config = { mode: "history", root: "/", ${has404Page ? `err: "/404",` : ""} routes: routes };\nconst router = new Router(config);\nnew Olum().$("#app").use(router);`;
778
+ const config = `const config = { mode: "history", root: "/", ${has404Page ? `err: "/404",` : ""} routes: routes };\nconst router = new Router(config);\nnew Olum().$("#olum-app").use(router);`;
779
779
  routes = generateRoutes(manifest);
780
780
 
781
781
  return `${libImports}\n${imports}\n${routes}\n${config}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "olum-compiler",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "description": "A module for compiling/bundling olumjs projects",
5
5
  "main": "bin/index.js",
6
6
  "bin": {
@@ -891,7 +891,7 @@ checkFn(
891
891
  /err: "\/404",/.test(out) &&
892
892
  !/Widget|_drafts|Drafts/.test(out) &&
893
893
  /new Router\(config\)/.test(out) &&
894
- /new Olum\(\)\.\$\("#app"\)\.use\(router\)/.test(out)
894
+ /new Olum\(\)\.\$\("olum-app"\)\.use\(router\)/.test(out)
895
895
  );
896
896
  },
897
897
  );