Comments (15)
I would vote for all props.
from generator-node.
One question.
How do I support variable like safeSlugname
? That's not from props
.
from generator-node.
In what scenario it won't be from props
? As of now it's slugified props.name
from generator-node.
safeSlugname
is original from slugname
which is from the props
But sometimes we need other variables
which are not being given by user in props
In my opinion, maybe variable
is cool enough.
In the template, we don't need <% props.xxxx %>
props
again. Just use <% xxxx %>
But we need to assign the variable from props in the index.js
, that's the trouble works.
from generator-node.
In that case the variables are a good solution.
What says @sindresorhus @SBoudrias ?
from generator-node.
Total 10 props, I think more than 10 will cause dislike 😢
var prompts = [{
name: 'description',
message: 'Description',
default: 'The best module ever.'
}, {
name: 'homepage',
message: 'Homepage'
}, {
name: 'license',
message: 'License',
default: 'MIT'
}, {
name: 'githubUsername',
message: 'GitHub username'
}, {
name: 'authorName',
message: 'Author\'s Name'
}, {
name: 'authorEmail',
message: 'Author\'s Email'
}, {
name: 'authorUrl',
message: 'Author\'s Homepage'
}, {
name: 'keywords',
message: 'Key your keywords (comma to split)'
}, {
name: 'cli',
message: 'Do you need cli tools?',
default: 'yes'
}, {
name: 'browser',
message: 'Do you need browserify?',
default: 'yes'
}];
from generator-node.
We could just stick on the github user name or author name and skip email and URL?
from generator-node.
I think email
is still needed.
But url
and author name
can retrieve from user name
from generator-node.
👍 So be it?
Update: @huei90 Lets reduce it to bare minimal.
from generator-node.
Hi guys,
how your affairs with this task?
I want fix some trailing spaces in package.json.
Should I wait when you finish this task?
from generator-node.
@faustman Go ahead, this is yet to be finalized.
from generator-node.
@faustman Go Ahead!
from generator-node.
@huei90 If you notice the latest _package.json
expect keywords
all of them are props.
from generator-node.
no action from me,
no more trailing spaces since 6adf1f4
from generator-node.
👍
from generator-node.
Related Issues (20)
- Release new version of generator-node HOT 10
- [FEAT] Git hooks HOT 1
- eslint still failing
- [FEAT] Use yarn by default HOT 3
- Remove `--ignore-path` option in ESLint npm script HOT 3
- [Bug] Freezes when using node 8.1.0 HOT 2
- jest test for node 4 failed with error HOT 3
- npm install failed due to nsp check HOT 1
- Allow using scoped package names HOT 3
- Usage behind proxy HOT 5
- cannot replace 'pretest' script. HOT 4
- The Node Security Platform service is shutting down 9/30/2018 HOT 1
- TypeError: Cannot read property '0' of undefined HOT 4
- question: husky config not in generated package.json but it is devDependencies HOT 1
- suggestion:provider option installer and skipInstallSilent
- using yarn HOT 2
- Getting error while running yo node
- --skip-install not working
- Update dependencies to latest versions
- `generator.run is not a function` when i use [email protected] HOT 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 generator-node.