You've already forked tribes-plugin-template
664ed5222f
CI / Test (push) Failing after 1m10s
Add AGENTS.md with usage_rules-generated guidance, host-aware smoke checks, TypeScript asset defaults, and plugin contract docs. Split Tribes path dependencies for dev/test so templates compile entry-module beams for host loading while preserving runtime-backed tests, and update rename.sh for bridge modules and TS assets.
18 lines
423 B
TypeScript
18 lines
423 B
TypeScript
// Plugin TypeScript entry point.
|
|
//
|
|
// This file is compiled to /priv/static/my_plugin.js, served by the host at
|
|
// /plugins-assets/my_plugin/my_plugin.js, and included when declared in
|
|
// manifest.json assets.global_js.
|
|
|
|
declare global {
|
|
interface Window {
|
|
TribesPluginHooks?: Record<string, unknown>;
|
|
}
|
|
}
|
|
|
|
window.TribesPluginHooks = window.TribesPluginHooks ?? {};
|
|
|
|
console.info("my_plugin loaded");
|
|
|
|
export {};
|