aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-03-17 17:33:50 +0000
committerHayleigh Thompson <me@hayleigh.dev>2024-03-17 17:33:50 +0000
commit32b4bbc572f1c03e52f4be650e750f16dae645f6 (patch)
tree93d1a2fbb76540bb831cd7343851f5371e5e3a98 /priv
parent80b418f6ee44321d55ed18375d34db1d35620deb (diff)
downloadlustre-32b4bbc572f1c03e52f4be650e750f16dae645f6.tar.gz
lustre-32b4bbc572f1c03e52f4be650e750f16dae645f6.zip
:recycle: Move component entry script into external template.
Diffstat (limited to 'priv')
-rw-r--r--priv/templates/component-entry.mjs4
1 files changed, 4 insertions, 0 deletions
diff --git a/priv/templates/component-entry.mjs b/priv/templates/component-entry.mjs
new file mode 100644
index 0000000..c9e2823
--- /dev/null
+++ b/priv/templates/component-entry.mjs
@@ -0,0 +1,4 @@
+import { register } from '../dev/javascript/lustre/client-component.ffi.mjs';
+import { name, {component_name} as component } from '../dev/javascript/{app_name}/{module_path}.mjs';
+
+register(component(), name); \ No newline at end of file