Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Tie roxy './ml local deploy modules' into grunt watch #436

Closed
sgehringDesign opened this issue May 7, 2015 · 10 comments
Closed

Tie roxy './ml local deploy modules' into grunt watch #436

sgehringDesign opened this issue May 7, 2015 · 10 comments

Comments

@sgehringDesign
Copy link

This is more of a question... Would it be possible to tie roxy ./ml local deploy modules into a grunt watch? This way when my local grunt watch detects a change to my LESS or JS code it will push the built code to into my local MarkLogic DB?

@rlouapre
Copy link
Contributor

rlouapre commented May 8, 2015

watch from grunt or gulp should not be an issue.
We are using similar technique to rebuilt dist directory [1]

Can Roxy only deploy the files changed as opposed to the entire src directory?

[1] - https://github.com/nativelogix/xquerrail2.framework/blob/master/gulpfile.js#L114-L120

@dmcassel
Copy link
Collaborator

dmcassel commented May 8, 2015

You could tell grunt (or gulp) to call "ml local load...". See "ml load -h" for details; it's for loading a single file. It defaults to the content database, but you can tell it to use the modules database instead.

@rlouapre
Copy link
Contributor

@dmcassel thanks for the tip ml {env} load

I have created a gist using gulp / watch https://gist.github.com/rlouapre/f4d1e257dda43364995f

@dmcassel
Copy link
Collaborator

I like it. @grtjn, something to add to the slush generator?

@grtjn
Copy link
Contributor

grtjn commented May 13, 2015

Ha, would be nice if gulp could leverage roxy properties directly, instead of you needing to duplicate settings inside gulpfile.js. Maybe by reading ./ml local info with some output format? :)

Yes, definitely worth considering to add to the slush template. I'll open a ticket..

@rlouapre
Copy link
Contributor

@grtjn that was the point of #437

@grtjn
Copy link
Contributor

grtjn commented May 13, 2015

Hereby referenced.. ;-)

@stephen-gehring-ml
Copy link

THANKS! =O)

@dmcassel
Copy link
Collaborator

I think that this kind of integration is a combination of #437 and work external to Roxy. With that in mind, I propose closing this ticket. Anybody see something else to be done here?

@grtjn
Copy link
Contributor

grtjn commented Jun 19, 2015

A ticket was opened in the slush project, +1 for closing..

@grtjn grtjn modified the milestone: 1.7.3 Jun 30, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants