keithamus / npm-scripts-example

An example of how to use NPM scripts over Grunt/Gulp & Friends. http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool
MIT License
841 stars 101 forks source link

migrate from Gulp #39

Closed gerardolima closed 6 years ago

gerardolima commented 7 years ago

Hi, guys,

I'm doing a painful migration from Grunt to Gulp. Not that I miss, Grunt (not at all!), but all js/ts and css/scss file traversing feels unnatural with glob patterns. Therefore, I rely on Sass and Browserify to safely build my bundles and my build process is actually done by them -- both these tools also provide watch functionality! So, I'm left with very few ups on having Grulp, or whatever other task runner.

O the other way, though, my dev and build environments are windows and it also feels awkward to use old CMD syntax, so, what would you suggest? I also found the npm-build-tools on the Npm registry and it seems to overcome some differences between Win and bash; is it a good/recommended approach?

thank you in advance!

patkujawa-wf commented 7 years ago

You might not need a separate build tool once you read https://www.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/ :)

gerardolima commented 7 years ago

Thank you, @patkujawa-wf, I had already read that article. My doubts are regarding having inconsistent scripting between dev machines (windows) and CI tools in linux environment, for example.

gmmedia commented 7 years ago

@gerardolima Do you use now the new Linux subsystem in Windows 10? It's great.

gerardolima commented 7 years ago

@gmmedia I changed the shell interpreter in npm to use bash; it "feels" unnatural, but solved my problem.