tiliger
v1.3.2
Published
command tool for reusable project setups
Downloads
7
Maintainers
Readme
tiliger
A command line tool to create predefined packages based on templates.
It's designed to create monorepos, with inherited configuration.
The idea behind it that in a monorepo many times you have very similar packages. With the help of tiliger you can spawn a new package. Also, it's possible to have your own setups, and reuse them later (COMING LATER).
Tiliger uses lerna to manage the packages.
Installation
npm i -g tiliger
Create a new project
tiliger create <project>
creates a monorepo in the package name of my-project-wrapper
in the my-project
folder.
The folder should not exist!
Basic usage
tiliger create my-project
cd my-project
npm install
Please change the git url-s in the package.json
later on
Usage with github repo
tiliger create <project> --repo=<repo>
initialises the project with a github repository, and fills in the git urls in the package.json
.
tiliger create my-project [email protected]:zsotyooo/tiliger-test-repo.git
cd my-project
npm install
Help
tiliger create --help
Create a new package in the monorepo
tiliger package <package>
creates a package inside the mono repo. The default setup is a typescipt and rollup based setup.
Basic usage
It will create a package with the name of "my-package"
cd /path/to/my-project
tiliger package my-package
npm run boot
Usage with scope
It creates a package with the name of "@my-project/my-package"
.
cd /path/to/my-project
tiliger package my-package --scope=my-project
npm run boot
Usage with custom template
cd /path/to/my-project
tiliger package my-package --template="ts"
npm run boot
Currently ony one template is available (ts), but new ones will be added frequently
Help
tiliger package --help