The Makefile I use with JavaScript projects
olioapps.com
The Makefile I use with JavaScript projects
1–10 of 525 posts
Re: The Makefile I use with JavaScript projects
#2What is the best approach to make sure your Makefile will work as expected on every platform, meaning, windows included?
For example: Can we write file paths using forward-slashes, or is it still an issue? I imagine running it via git bash (bash provided by the git installer on windows).
Re: The Makefile I use with JavaScript projects
#3Re: The Makefile I use with JavaScript projects
#4One thing I've found useful about gulp and webpack is the fact that it's multiplatform. What is the best approach to make sure your Makefile will work as expected on every platform, meaning, windows included? For example: Can we write file paths using forward-slashes, or is it still an issue? I imagine running it via git bash (bash provided by the git installer on windows).
Re: The Makefile I use with JavaScript projects
#5Re: The Makefile I use with JavaScript projects
#6One target to build (prod), another to run with fsevents doing auto-rebuild when a file is saved (instant gratification during dev), then a few targets for cleaup & housekeeping. All said, the file is 1/4 the size of any other JS-based build systems.
Re: The Makefile I use with JavaScript projects
#7This makefile snippet:
lib/index.js: src/index.js
mkdir -p $(dir $@)
babel $
The source and the output are both called index.js? Why, God, WHY???Re: The Makefile I use with JavaScript projects
#8Previous discussion on this: https://news.ycombinator.com/item?id=15154994
Re: The Makefile I use with JavaScript projects
#9One thing I've found useful about gulp and webpack is the fact that it's multiplatform. What is the best approach to make sure your Makefile will work as expected on every platform, meaning, windows included? For example: Can we write file paths using forward-slashes, or is it still an issue? I imagine running it via git bash (bash provided by the git installer on windows).
Re: The Makefile I use with JavaScript projects
#10I'm not a web dev, but this article has uncovered yet another thing in the js ecosystem that just seems crazy to me. This makefile snippet: lib/index.js: src/index.js mkdir -p $(dir $@) babel $ The source and the output are both called index.js? Why, God, WHY???
The capitalized rending-of-garments is silly. This is transpiling; file names should remain the same from input to output.