Code Monkey home page Code Monkey logo

catlin's Introduction

Node.js version catlin

Description

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.

Use Cases

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.

Core Features

  • 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.

Requirements

Catlin requires NodeJS version 8.3.0 (minimum) but using the LTS version is always appreciated.

Installation

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.

Usage

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.

Boilerplates

Catlin currently packs boilerplates for the following type of projects:

  1. Static HTML (with Webpack + SASS + Bootstrap + FontAwesome built-in).

Coming soon:

  1. WordPress theme development boilerplate.
  2. WordPress plugin development boilerplate.
  3. ReactJS boilerplate.

Background

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.

Credits

Catlin uses:

  1. Inquirer to ask interactive questions.
  2. EJS to input dynamic values inside the project templates.
  3. Simple Git for Git support.
  4. Babel for transforming ES6 into machine readable code.
  5. ASCII-art Logo for the app splash screen.

This project is heavily inspired by this post from Harriet Ryder.

Sponsor

You can sponsor this project and support my open-source development by becoming a Patron!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.