carts
v0.3.1
Published
CLI Scaffolding tool with modular design for TypeScript developers.
Downloads
7
Readme
carts
CLI Scaffolding tool with modular design for TypeScript developers.
Still under active development, first stable release will be
v1.0.0
. All suggestions are welcomed!
Goals
These are the main design goals:
- Versatile: front end, back end, HTTP server, library ... supports any type of project
- Opinionated: only provider one "canonical" solution for each use-case
- Component-based architecture: modular desgin allows reusing building blocks for quick evolvement
Usage
$ npm install -g carts
$ carts COMMAND
running command...
$ carts (-v|--version|version)
carts/0.3.1 darwin-x64 node-v13.2.0
$ carts --help [COMMAND]
USAGE
$ carts COMMAND
...
Commands
carts basic NAME [DESTDIR]
Create a basic project.
USAGE
$ carts basic NAME [DESTDIR]
ARGUMENTS
NAME project's name
DESTDIR destination directory, using `<NAME>` when omitted
OPTIONS
-h, --help show CLI help
--skipInstall only write dependencies to `package.json`, skip downloading
EXAMPLE
$ carts create my-project
See code: src/commands/basic.ts
carts help [COMMAND]
display help for carts
USAGE
$ carts help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
carts monorepo NAME [DESTDIR]
Create a monorepo library.
USAGE
$ carts monorepo NAME [DESTDIR]
ARGUMENTS
NAME project's name
DESTDIR destination directory, using `<NAME>` when omitted
OPTIONS
-f, --force
-h, --help show CLI help
-s, --scope=scope package scope for namespacing like `@my-org/my-lib` (`--scope=my-org`), not using scope by default
--skipInstall only write dependencies to `package.json`, skip downloading
EXAMPLE
$ carts monorepo my-monolib --scope=my-org
See code: src/commands/monorepo.ts
Credits
- Learned a lot from facebook/create-react-app
- UI inspired by jaredpalmer/tsdx