@codotype/cli v0.8.0-canary.31
@codotype/cli
:hammer_and_wrench: CLI for development with codotype.org
Installation:
yard add -D @codotype/cliUsage:
codotype run
The codotype run executes a generator with a single blueprint as it's argument. The command must be used inside a generator's root directory. Example:
codotype run ./path_to_blueprint --config ./path_to_configcodotype doctor
The codotype doctor validates a generator's metadata and structure. The command must be used inside a generator's root directory. It's particularly helpful while developing or updating generators.
codotype serve
The codotype serve serves a web UI and API for a standalone generator. The command must be used inside a generator's root directory.
codotype build
The codotype build builds a production-ready pre-rendered UI for a standalone generator. The command must be used inside a generator's root directory.
Future commands
codotype generator register/add PATH_TO_GENERATOR- registers a generator in the local registrycodotype generator new- create a new generator (opens up generator editor in browser window)codotype generator serve- serves a small webapp that exposes a generator via the Web UIcodotype blueprint ls- lists all Blueprints in global registrycodotype blueprint new- opens up a Blueprint editor in a browser window, stores the result in the global registrycodotype blueprint add PATH_TO_BLUEPRINT- adds a single blueprint JSON file to global registrycodotype blueprint rm BLUEPRINT_NAME- removes a single blueprint from the global registry- Serve local Next.js server
- Build CodotypeGenerator.json from
src/index.tsorsrc/generator.ts(or something similar)
TODOs
- Add global registry for JSON blueprints
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago