Replies: 10 comments
-
You should be able to do or if it's a preset |
Beta Was this translation helpful? Give feedback.
-
@MattBodey AFAICT that doesn't work, b/c For example this command does not work for me w/o our task already
|
Beta Was this translation helpful? Give feedback.
-
@stephenh Ah sorry, I mistyped above.
I use this, and I have neither mrm or my preset installed globally. I think for the above to work you need to publish your custom task in a preset rather than as a separate task https://mrm.js.org/docs/making-presets. Unfortunately I have no knowledge about how to do this for tasks published outside of a preset |
Beta Was this translation helpful? Give feedback.
-
I also want this solution, and am digging into how we could solve this... This first thing I notice is that using You can see in this flame graph that the majority of the first half of the run is I digress, since I have been in the internals of I was thinking about using degit to run our own personal tasks since it can:
I was thinking of adding to our
to which on running @stephenh, @MattBodey What do you think? |
Beta Was this translation helpful? Give feedback.
-
@kevinkhill personally publishing tasks to npm wasn't a big deal for us. Really great to hear you're poking around at mrm internals though! Its a great project. |
Beta Was this translation helpful? Give feedback.
-
I don't really have an answer why, but I've never really published to npm. It's always felt daunting 🤷 It almost feels like an extra step to have to setup github actions to publish or do it myself, when I am already pushing it to github. I really like |
Beta Was this translation helpful? Give feedback.
-
@kevinkhill ah yeah, I get that. When I used to do Java projects back in the day, publishing to Maven central (their npm) was a huge PITA (mostly b/c Maven central was actually secure (for some definition of secure) and required registering your package via an email address from your org's DNS) So yeah being able to "just pull from a git url" seems neat too. Especially if it's public/no auth. |
Beta Was this translation helpful? Give feedback.
-
I've been toying around and accidentally ripped the whole thing apart..... 😬 I was trying really hard not to change too much, but then got carried away.... It's kinda far from what I will keep playing with it because it is really fun! 😁 🥂 to |
Beta Was this translation helpful? Give feedback.
-
I accidentally made it TypeScript! heh, really It's just something fun to tinker with before work, keep myself fresh on TypeScript... If it is useful to anyone else, super, if not, that's cool too. 😎 |
Beta Was this translation helpful? Give feedback.
-
I'd like to be able to run an mrm task without a) globally installing mrm and b) without globally installing the task. I.e. just:
And have that be it.
AFAIU right now I have to both
npm i -g mrm
as well asnpm i -g @my-org/my-task
, to finally be able to domrm @my-org/my-task
.Granted, if I'm going to run
mrm
and@my-org/my-task
repetitively, this is fine, but I'd like to usemrm
for things similar tonpx create-react-app
, where users who want to use/install a library want to run just a one-time command or two, and won't necessarily have/wantmrm
to be installed globally and stick around.(Note that I know
npx mrm
works, but AFAIU I can't avoid annpm i -g
for custom tasks, i.e. how can I invoke@my-org/my-task
with a singlenpx
invocation?)(Fwiw, my guess that this is admittedly tricky because
npx
would need to fetch both the coremrm
as well as@my-org/my-task
with a singlenpx
invocation, so it's probably "simplest" for thenpx
command to look likenpx @my-org/my-task
and then somehow the task knows it's being run directly and actually invokesmrm
with itself as the task to run.)Beta Was this translation helpful? Give feedback.
All reactions