A minimal starter template for creating AntelopeJS modules with TypeScript. This template provides the basic lifecycle hooks and project configuration, ready for you to build on.
-
Install dependencies:
pnpm install
-
Start development mode:
pnpm run dev
src/
└── index.ts # Module entry point with lifecycle hooks
antelope.config.ts # AntelopeJS project configuration
package.json
tsconfig.json
The module entry point exports four lifecycle hooks:
construct()— Called when the module is loaded. Use this to initialize resources.start()— Called to activate the module after construction.stop()— Called to deactivate the module.destroy()— Called to release all resources.
pnpm run build— Build the module for distribution.pnpm run dev— Start development mode with watch.