neutralinojs / neutralinojs-cli

neu cli for Neutralinojs
https://neutralino.js.org/docs/cli/neu-cli
MIT License
91 stars 56 forks source link

Add option to `neu build` to clean/not clean build directory #258

Closed ArcticFqx closed 3 months ago

ArcticFqx commented 3 months ago

neu build at version 11.0.0 used to not clean the build directory, but the 11.0.1 update started doing that automatically with no option to turn that behavior off.

This unfortunately broke the build process of all my Neutralino projects as the build directory had intermediate build files which Neutralino is supposed to consume.

I propose that a CLI flag or that a flag in neutralino.config.json is added to control this behavior.

Sadaf-A commented 3 months ago

neu build at version 11.0.0 used to not clean the build directory, but the 11.0.1 update started doing that automatically with no option to turn that behavior off.

This unfortunately broke the build process of all my Neutralino projects as the build directory had intermediate build files which Neutralino is supposed to consume.

I propose that a CLI flag or that a flag in neutralino.config.json is added to control this behavior.

Hey, thanks for pointing this out I have opened a PR which adds a CLI flag for this

shalithasuranga commented 3 months ago

Thanks so much for reporting this issue and working on it. This issue was fixed via #259 and changes will be released with the next CLI release soon :tada: