atom-build icon indicating copy to clipboard operation
atom-build copied to clipboard

[Feature Request] Settings should be overridable from .atom-build.json

Open forivall opened this issue 9 years ago • 5 comments

Ideally, the toplevel of .atom-build.json shouldn't be a build path, but instead be settings to use and override the default settings. Or, these settings could be stored in some other file like .atom-build.user.json.

My use case is that, I want my c++ projects to build on save, but not everything else.

forivall avatar Jun 20 '15 00:06 forivall

Not sure what you're asking for here. Do you want to override the global settings on a per-project basis? Why do you prefer your C++ projects to build on save, and not other projects?

noseglid avatar Jun 22 '15 07:06 noseglid

Exactly, the ability to override global settings on a per-project basis.

To be specific, I don't really want atom and node projects to npm install every time I save a file, it seems like more work than necessary. Unless npm has updated recently so that it checks which packages are already installed first, but last time i checked, it does a full install every time. And npm install isn't really checking my code, whereas my c++ build is checking my code for errors every time. If the build was running unit tests, then i'd maybe want it to build on every save, but I'd use a custom build file for that. And then with that custom build file, I could enable build on save.

It's just an idea. If it doesn't appeal to you, I'd be fine with writing and submitting a PR for this.

forivall avatar Jun 22 '15 16:06 forivall

Perhaps the discussion should rather be if these configurations should be on a per-project basis, rather than global. But then you wouldn't be able to use the built in tools (since it would require creating an .atom-build.json-file to be able to set the configurations) if you wanted Build on Save or Save on Build.

noseglid avatar Jun 24 '15 12:06 noseglid

:+1: I use "gulp watch" for JS (no autobuild needed), but i want "Build on Save" for my golang project.

averrin avatar Mar 30 '16 10:03 averrin

I need this feature, too. It is possible that the global settings can act as the default settings, if none is found in the .atom-build.json?

paulequilibrio avatar Oct 19 '16 13:10 paulequilibrio