On Tue, 2013-08-13 at 21:12 +0200, Francesco Mari wrote:
> The article you linked looks like the typical use case I wrote the task
> for. It would be very interesting if you can play with the task and give me
> some feedback. Pull requests or GitHub issues are welcome!
>
> I could release a first version of the task on NPM tomorrow. It requires
> only minor adjustments to the project.
This is actually quite cool :-)
>
> Regarding the work made by Robert, I find it very interesting, but it is a
> different approach than mine. I would like to have very sole tooling, and
> avoid the IDE as much as possible. But I agree with Robert's decision to
> include VLT in the mix as soon as it's released in the open.
If you're using the SlingPostServlet, you're bound to hit a variation of
SLING-2666 [1] sooner or later . The root issue is that the
Sling{Post,Get}Servlets are no always available, for some resources they
are overridden.
One solution is to use vlt, since it bypasses that quite elegantly.
Another is to mount the Sling{Post,Get}Servlet at a different path and
redirect all tooling there.
Depending on how you plan to use your Grunt task, you might be
interested in either of these solutions.
Robert
[1]: https://issues.apache.org/jira/browse/SLING-2666
> Il giorno 13/ago/2013 19:58, "Dascalita Dragos" <[email protected]> ha
> scritto:
>
> > Btw, I forgot to also add a really nice work started by Robert, which does
> > something similar straight from your IDE - [0]
> >
> > Dragos
> > [0] - https://cwiki.apache.org/confluence/display/SLING/Sling+IDE+tooling
> >
> >
> > On Tue, Aug 13, 2013 at 8:55 PM, Dascalita Dragos <[email protected]
> > >wrote:
> >
> > > It looks cool. I was just playing with Grunt earlier this month, in order
> > > to automatically watch for changes, compile and deploy my Client-side
> > files
> > > into JCR - [0]
> > >
> > > This is where I'd see the benefit of using Grunt.
> > >
> > > I'll try integrating with your task too, as I was only using 'curl'
> > > commands to upload and I like that you have used 'request' lib;
> > > Did you consider writing a NPM out of this task ? I think that would come
> > > handy.
> > >
> > > Cheers,
> > > Dragos
> > >
> > > [0] -
> > > http://www.flexthinker.com/2013/08/using-grunt-js-with-apache-sling/
> > >
> > >
> > > On Tue, Aug 13, 2013 at 7:15 PM, Francesco Mari <
> > [email protected]>wrote:
> > >
> > >> Hi all,
> > >>
> > >> I created a new task for Grunt [1] which uses the POST servlet to
> > >> rollout local content to a repository managed by a runnign Sling
> > >> instance. I also wrote some information in the README file, which can
> > >> help you have a better understanding of what it does.
> > >>
> > >> I found this task to be very handy for rapid prototyping of
> > >> Sling-based applications. To use this task you only need a minimal
> > >> Grunt build file. You can focus building the content in your
> > >> filesystem, without bothering about configuration. The task also
> > >> support the creation of arbitrary nodes by using .json files (more or
> > >> less like the jcr.contentloader bundle already does), but you don't
> > >> have to create a bundle or a Maven project.
> > >>
> > >> If anybody is interested in it, I would follow up with further
> > >> development. Please keep in mind that I pushed it only some minutes
> > >> ago and it has never been used in the wild. It's not yet deployed to
> > >> NPM.
> > >>
> > >> Regards,
> > >>
> > >> Francesco
> > >>
> > >> [1]: http://gruntjs.com/
> > >> [2]: https://github.com/francescomari/grunt-sling
> > >>
> > >
> > >
> >