A locally installed CLI package for starting projects the quick way.
Currently this project only supports the use of npm, support for yarn is on the way
- In your terminal of choice clone this repo
git clone https://github.com/garrett-huggins/tcli
- cd to the newly created
tcli
directory
cd tcli
- Install dependencies
npm install
- Create a local build
npm run build
- Install globaly to use anywhere on your machine
npm install -g
After installing, you now have access to your local tcli
package that can be used to jump-start any project and help you get straight to the fun part.
To start using the package, run tcli
tcli
You will then be prompted to select any of the template projects found in the packages templates
directory
After that you will be able to give your new project a name, wait for the templates dependencies to be installed, and your new project is ready.
Why not publish tcli
as an npm package?
The key to cloning the package and installing it from your local directory is you can now easily make changes to any of the template files and have access to them everywhere with just a simple re-build.
- In your
tcli
directory, create a new folder undertemplates
and give it the name of the template project you are creating. This is the name you will see when selecting the project template from your cli - Add any of the files you wish to start your new projects with
- Use
npm run build
to add your new project template - Re-install your new build with
npm install -g
You will now see your new project template as an option the next time you run tcli
If your new project contains a package.json
then you may also want to run npm run dev-package
which will change the name in each of the templates' package.json
to instead be a template variable that is set to the project name you provide when using tcli