jordwalke / esy-issues

Easy ISSUES
MIT License
49 stars 5 forks source link

"Build this project" #52

Open jordwalke opened 7 years ago

jordwalke commented 7 years ago

Is there a way to say: "Rebuild this current project quickly without rebuilding dependencies - unless I need to build those dependencies"?

I imagine right now, some of the time spend is checking if dependencies are rebuilt, and I'm curious if there's a way to quickly rebuild the top level project, when it's expected that it's probably (but not definitely) the case that dependencies don't need to be rebuilt. In other words could there be something like esy buildthis that optimizes for the case when no dependencies have changed (but still recompiles them if they have changed (or haven't been built)).

andreypopp commented 7 years ago

Agree, this is needed. Right now I use

% esy make build

for that where make build just runs package's build system. This is not idea as env might not be ejected at this point thus the build fails.

As suggested — esy buildthis will ensure if build is ejected and run only single target to build the root package.

jordwalke commented 7 years ago

esy make build assumes you have a makefile for your package with a build target right?