Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@contextjs/templates) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@contextjs/templates
Official project templates for ContextJS.
Overview
This package provides all official project templates for the ContextJS ecosystem.
Templates are discovered and used automatically by the @contextjs/context CLI when installed globally.
- Not a standalone CLI.
- No direct API surface; it’s consumed by the main ContextJS CLI.
Usage
To use these templates, install both @contextjs/context and @contextjs/templates globally:
npm install -g @contextjs/context @contextjs/templatesThen run:
ctx newYou will see all available official templates, and can scaffold projects directly from them.
Example
To create a new Web API project:
ctx new webapi myapiTo see all templates:
ctx newAvailable Templates
The following templates are included (the actual list may change with each release):
- webapi – REST API starter
Each template includes:
- Standard project structure
- Preconfigured ContextJS settings
- Example source files
How It Works
When @contextjs/templates is installed globally,
the @contextjs/context CLI will automatically detect and list all included templates when you run ctx new.
- You do not invoke this package directly.
- Removing this package will remove access to official templates in the CLI.