I built Catlin to overcome the necessity of copying a boilerplate and change starter details on it every time me or my team started a new project. This simple and interactive cli-tool packs useful boilerplates which are output with dynamic values specific to each project.
Catlin is used by my myself and my team (of course, you are welcome to use it as well, it is open-source) when a new project is started. It asks a couple of questions during initiation generating dynamic values that are put in the output project files. As a result, you do not have to go inside the files and set unique details for each project.
- Serves the purpose of a boilerplate implementation tool.
- Fills in the unique project details itself automatically based on the answer of the questions during the initiation period.
- Initialises Git and makes the first commit.
Catlin requires NodeJS version 8.3.0 (minimum) but using the LTS version is always appreciated.
In order to install, please run the following command in your command line:
npm install -g catlin
For global installation, you'll need to have administrator privileges. You can use sudo
for that purpose, e.g. sudo npm install -g catlin
.
Catlin only provides one command for now:
catlin
Once you run this command on a folder, it will ask for some details based on which, it will prepare your next project to get started immediately without having to spend hours and configure everything manually.
Note: You need to have an empty Git repository with push permissions in order to be able to initialise Git successfully. At this moment, the program throws an error if this is not done before starting (everything except the Git initialisation gets done, though). This behaviour is going to change in the upcoming release. The current version works well for my team's workflow.
Catlin currently packs boilerplates for the following type of projects:
- Static HTML (with Webpack + SASS + Bootstrap + FontAwesome built-in).
- WordPress theme development boilerplate.
- WordPress plugin development boilerplate.
- ReactJS boilerplate.
Previously, when starting a new project, me and my team had to copy a boilerplate code, change the details (e.g. project name, description, author, GitHub repository) and initialise the Git repository, all manually. This used to take a long amount of time and effort. Thus came the necessity of a tool like Catlin, which would do all these for us automatically.
Catlin uses:
- Inquirer to ask interactive questions.
- EJS to input dynamic values inside the project templates.
- Simple Git for Git support.
- Babel for transforming ES6 into machine readable code.
- ASCII-art Logo for the app splash screen.
This project is heavily inspired by this post from Harriet Ryder.
You can sponsor this project and support my open-source development by becoming a Patron!