Coder Social home page Coder Social logo

create-from-github's Introduction

Application generator done right

Finally an application generator that doesn't do magic - only the things that are required!

Ladies and gentleman, may I present you - the Github NPM project generator.

What's all the fuzz all about?

Generating projects with npm is not a very tedious task. Just npm init -y and you're almost done. Almost...

The next thing that comes is installation of dependencies, project configuration and other tuning that needs to happen before you can get started with your project.

That's what the 2nd argument for npm init is for!

Exactly right! The 2nd argument is part of a name of a project generator. For example if we ran the following command:

$ npm init vite

NPM knows that there is a project called create-vite, it knows to install it if not already present and execute it instead of just creating a package.json with some default values. "Instead" being the operative word, because once the 2nd argument has been given it completely takes over the process of scaffolding the app.

Let's be serious about it: most projects will have one setup that works and that'll be what you would use most of the time. In point of fact there are lots of projects that provide such repositories already!

The cool thing about create-from-github is that those repositories can be used as-is to scaffold projects using this package! Here's an example:

$ npm init from-github padcom/tailwindcss-text-stroke

And off you go! There's a tailwindcss-text-stroke1 project scaffolded that has all the necessary places updated so that it's a perfectly customized clone of the tailwindcss-text-stroke repository.

create-from-github's People

Contributors

padcom avatar

Watchers

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