Comments (8)
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.
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.
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.
from create-node-module.
... FOUR spaces? 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.
Come to think of it, I'll run the code through prettier before you read it. :)
from create-node-module.
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!
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 othergitignore.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.
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.
I'm going to move this discussion to the pull request.
from create-node-module.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-node-module.