-
Notifications
You must be signed in to change notification settings - Fork 26
Feature: Support arbitrary pre*
and post*
scripts
#68
Comments
@coopy -- Can you walk me through what the difference is with say:
? Having magic Thanks! |
Composition will certainly take care of my use case, since I can easily modify the archetype. Composition will not help you if you wanted to add a I guess the question is how far do we take the "just like npm" approach? For now, I'll close this. |
That is worth considering. Up to this point to manage complexity, we've been deliberately avoiding Happy to leave this one open in the |
It would be great if this could make it into the next release. We have a bunch of scripts that
$ builder run multitask -- --flag |
@jstrimpel -- I've added the ticket to our priority list for OSS work and will see if I personally have bandwidth to get it going next week. I've started rewriting the description of this issue to better reflect the work going into it. |
@ryan-roemer Awesome. Thanks. I can be a beta tester. |
@jstrimpel -- If you get a moment, can you peruse my WIP README updates of how I envision this feature working? (at https://github.com/FormidableLabs/builder/compare/feature/pre-post-lifecycle#diff-04c6e90faac2675aa89e2176d2eec7d8R383) Specifically, while Thanks! |
@ryan-roemer Makes sense to me. |
Status update: Didn't have a ton of time to work on this this week, but current progress is at https://github.com/FormidableLabs/builder/compare/feature/pre-post-lifecycle I think I've mostly planned out the complexities for things like I should be able to land this next week... |
Implemented in #156 |
Feature Request
npm
supports defining scripts starting withpre
andpost
to be run before and after the named script. E.g. you can definepredev
which would be run prior to runningdev
. This is a very useful lifecycle hook, and a use case for it is to generate an Ecology docsindex.html
fromstatic-index.jsx
prior to starting upbuilder run docs-dev|docs-hot
(FormidableLabs/victory-component-boilerplate#20).From the
npm
docs:Tasks
pre<task>
,post<task>
.-- --FLAG
to main task likenpm
Notes
Note: A
--
passed flag only attaches to<task>
, not pre or post for bothnpm
andyarn
Note - npm: If running a
pre<task>
command directly, aprepre<task>
orpostpre<task>
will not run.Note - yarn: If running a
pre<task>
command directly, aprepre<task>
orpostpre<task>
will run, unlikenpm
The text was updated successfully, but these errors were encountered: