GithubHelp home page GithubHelp logo

create-project-cli's Introduction

create-project-cli

Custom create project cli for speed up works

Since creating and defining folder structure for each project is painful

I decide to make a custom cli for automating this job

This code source based on blog post :

https://www.twilio.com/blog/how-to-build-a-cli-with-node-js?utm_source=youtube&utm_medium=video&utm_campaign=node-cli-howto

this project includes templates below :

  • Javascript
  • Canvas
  • Webpack
  • React

Hot to use it?

just clone the repo and then run this line on command prompt:

npm install

Then run this line to link (creat-project) command to this project:

npm link

now You can test your new create-project command without any prefixes

How to add new Templates?

you need to add your desire template in templates directory with lowercase name

for example , if i want to add vue.js template, i just need to make a vue.js folder and create a new vue.js project in it

after that You need to add Vue.js name on templates array which can be found on

src/cli.js - line 5

Note

You don't need to include node_module in your new template

Args

--git or --g

initialize a git repo for your new project

--install or --i

install all npm dependencies automatically after creating a new project

cheers!

create-project-cli's People

Contributors

sina-developer avatar

Watchers

 avatar

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.