Comments (14)
Fixed. Thanks.
from generator-node.
Whoot, nice turnaround time!
from generator-node.
Released as 1.2.1
from generator-node.
Awesome!
On a vaguely related note, do you guys have any thoughts on adding an option to output ES5 javascript for publishing on npm and such? I know it isn't too difficult to set up, but I was a bit surprised when I realized that it wasn't built-in to the default generator-node setup. (Or is there a flag to turn it on that I just missed?)
from generator-node.
@nfriedly It's optional. Just use --no-babel
if you don't want babel.
from generator-node.
Yea, that's what I ended up doing, but I was asking about an option that lets me write es6/7 but automatically generates es5 (in out/
maybe) and sets that up to be published to npm? So, more of a --with-debabeling
sort of option.
from generator-node.
@arthurvr is Babel activated by default? I think we should do simple es5 by default as es6-7 is a harder publishing process.
from generator-node.
@SBoudrias Yes. I like that, personally. That's what we plan for other generators too.
from generator-node.
@arthurvr could you look what the current case is for generator-node and send a PR fixing it if it's an issue?
from generator-node.
@SBoudrias What do mean with "the current case"? The publishing process? Or the fact that Babel is on by default?
from generator-node.
@arthurvr Let me rephrase: can you send a PR making babel an option who's not the default?
from generator-node.
Yes I can, though, why? That's not the approach we're taking with other generators. It's future-proof, doesn't complicate the build more than a simple gulp task and I think it's a good idea to promote using ES6.
from generator-node.
Why would anybody possible mind more features, in a backwards compatible way? As said in the other generator by silvenon as well, I don't think it should even be optional.
from generator-node.
Well, speaking for myself here, I still develop in ES5 and I don't intend to start using babel by default anytime soon.
Maybe it's only my opinion, but the overhead of setting up babel is usually not worth the syntactic sugar it provide me.
ES5 is working fine, I don't see why we should be eager to integrate more tooling.
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.