Comments (22)
npm run scripts
I would vote for bash as well. 👍
from generator-node.
npm run scripts
but if it gets too complex then shell
from generator-node.
I think if user doesn't choose a build system, the project is usually simple so the structure could be simpler: instead of having /lib/
, /test/
and /bin/
folders it should be just flattened, just like https://github.com/sindresorhus/generator-nm. In fact a lot of times I just move those files manually after everything is generated. It would be great to flatten the file structure if no build system is selected.
from generator-node.
npm run scripts I would vote for bash as well. 👍
Npm scripts, but not bash. Bash isn't cross platform, only the part npm shims is.
from generator-node.
👍
Npm scripts, but not bash. Bash isn't cross platform, only the part npm shims is.
yes :) i think @hemanth just meant that.
from generator-node.
voting for npm-scripts version. I chose them it turns out very well https://github.com/iamstarkov/generator-tiny-es-nm/blob/master/app/templates/_package.json#L6-L17
from generator-node.
I can make pull-request to bring support of raw build system here. should I?
from generator-node.
@iamstarkov PR is welcomed!
from generator-node.
I tried yesterday, but failed. the scope is very broad, should I replicate gulp flow? which step should be replicated?
from generator-node.
@iamstarkov test + coverage + nsp check.
We should probably drop babel from the raw build.
from generator-node.
I planned to respect babel option in the raw build. is it ok?
from generator-node.
@iamstarkov If someone wants a raw build system, I assume they'd want simplicity - and that's not babel.
from generator-node.
@SBoudrias but maybe they want es2015 goodies too. for example me. so if you dont mind ill try later this week to implement it again. thank you for response about pr scope.
from generator-node.
I agree with @iamstarkov, the complexity of adding Babel is still way less than having a complete Gulp build workflow.
from generator-node.
@SBoudrias @arthurvr as a followup i have a question, because i tried to add pure build support without removing gulp deps and it turned out to be quite messy: right now its only two branches gulp with or without es2015, if we are adding pure build then its become 4 branches: gulp or pure with or without babel. its quite complex. so the question is: why did generator-node need gulp dev-flow in the first place?
from generator-node.
why did generator-node need gulp dev-flow in the first place?
With mocha and istanbul, that's the easiest setup (sure beats the cli). Also, windows doesn't have &&
support in their cli.
from generator-node.
there are possible solutions for &&
problem like:
npm pre/post scripts
for simple scripts- npm-run-all to run complicated scripts
from generator-node.
@iamstarkov see xojs/create-xo#3 and xojs/create-xo#6
from generator-node.
@stevemao sorry, dont really get what you wanted to point out
from generator-node.
Those issues are discussing npm pre/post scripts
and &&
problem etc.
from generator-node.
yeah, i got that part and as i far as i understood pre/post scripts
are doing better than &&
from generator-node.
Since v2.0, this ticket is now un-relevant. We don't use gulp anymore :)
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.