Giter Club home page Giter Club logo

Comments (8)

pladaria avatar pladaria commented on September 28, 2024

Hi,
Sounds cool, I also wanted to port it to JS and add new features.
Send me a PR once you have the basic structure so we can take that as starting point and discuss the organization and features.

from create-node-module.

billiegoose avatar billiegoose commented on September 28, 2024

Just want to followup to say this will happen! I just get busy. I did start on a basic structure a while ago, but only got as far as a command line program that prints a help and validates options. But since that's all I've got, I might as well show you a little instead of nothing.

master...wmhilton:js

It's enough of a start that there's some things we can disagree about, like what command line parsers, or async/await, etc. You might really like it or you might be completely repulsed and say, "You don't use semicolons? That's it, we can't be friends anymore". ¯\_(ツ)_/¯

from create-node-module.

pladaria avatar pladaria commented on September 28, 2024

from create-node-module.

billiegoose avatar billiegoose commented on September 28, 2024

... FOUR spaces? 🤣 Yeah, let's use prettier. I use standard myself, but am unashamedly pragmatist.

Glad you like async/await! The more I use it the more I miss it when I have to go without it.

from create-node-module.

billiegoose avatar billiegoose commented on September 28, 2024

Come to think of it, I'll run the code through prettier before you read it. :)

from create-node-module.

billiegoose avatar billiegoose commented on September 28, 2024

I don't know WHAT I was smoking when I wrote that first attempt at code. Actually I do know, I was trying to design from the top down, which never works. The new code is MUCH more concise, and actually does something: generate a .gitignore from the Github templates!

image

So what I've got now is basically organized like this:

  • src
    • bin
      • cli.js - putting the CLI bits here allows /src/index.js to just expose the API for other modules to use
    • index.js - executes each feature one after the other
    • gitignore.js - the gitignore feature
    • ... - travis feature, github feature, etc each "feature" gets a file for easy testing
  • dist - same exact structure as /src but transpiled

from create-node-module.

billiegoose avatar billiegoose commented on September 28, 2024

OK, the code is MUCH less embarrassing now: https://github.com/wmhilton/create-node-module/tree/js

It now does babelrc, gitignore, and license, and lets you can set the default answers to the questions in a .rc file

from create-node-module.

billiegoose avatar billiegoose commented on September 28, 2024

I'm going to move this discussion to the pull request.

from create-node-module.

Related Issues (1)

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.