You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Francesco Mari <ma...@gmail.com> on 2013/08/13 18:15:00 UTC

Grunt task leveragin the POST servlet

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

Re: Grunt task leveragin the POST servlet

Posted by Dascalita Dragos <dd...@gmail.com>.
That was quick :). Thanks for sharing this Francesco. I will take a look
soon after the current sprint, early next week.


On Wed, Aug 14, 2013 at 10:42 AM, Francesco Mari
<ma...@gmail.com>wrote:

> I just published the package to NPM [1]. I also changed the name of
> the git repository, as "grunt-sling" seemed too generic for me. The
> new repo is at [2].
>
> [1]: https://npmjs.org/package/grunt-sling-content
> [2]: https://github.com/francescomari/grunt-sling-content
>
> 2013/8/13 Francesco Mari <ma...@gmail.com>:
> > 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.
> >
> > 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.
> >
> > Il giorno 13/ago/2013 19:58, "Dascalita Dragos" <dd...@gmail.com> 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
> >> <dd...@gmail.com>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
> >> > <ma...@gmail.com>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
> >> >>
> >> >
> >> >
>

Re: Grunt task leveragin the POST servlet

Posted by Francesco Mari <ma...@gmail.com>.
I just updated the task with a couple of improvements, an example and
better documentation. Read release notes [1] or install the new
version from NPM [2].

[1]: https://github.com/francescomari/grunt-sling-content/releases/tag/v0.0.2
[2]: https://npmjs.org/package/grunt-sling-content

2013/8/14 Francesco Mari <ma...@gmail.com>:
> Cool, thanks for the information.
>
> 2013/8/14 James Stansell <js...@gmail.com>:
>> Francesco,
>>
>> vlt has recently been added to the jackrabbit svn:
>>
>> [ANNOUCE] Contribution of Jackrabbit FileVault
>> http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/201308.mbox/%3CCAB%2Bdfi%3Dk_MfWvz0yMxT03fCaheOUVUE_XFGvaZ0k0BiByX__nQ%40mail.gmail.com%3E
>>
>> ...
>>
>> and I'm pleased
>> to announce the completion of Adobe's contribution of file vault. Now
>> known as Jackrabbit FileVault.
>> To quickly recap, Jackrabbit FileVault provides tooling around
>> exporting, importing and syncing content from and to a JCR repository
>> for development.
>>
>> The source is checked in under Jackrabbit commons [0] and is not released yet.
>> ...
>> [0] http://svn.apache.org/repos/asf/jackrabbit/commons/filevault/trunk/
>>
>>
>>
>> On Wed, Aug 14, 2013 at 10:54 AM, Francesco Mari
>> <ma...@gmail.com>wrote:
>>
>>> I wasn't aware of this issue regarding the availability of the POST
>>> servlet, but as I wrote in a previous mail, I'm waiting for vlt to be
>>> released under open source license to use it.
>>>
>>> Bertrand, I already have an issue for it [1], and it's going to be closed
>>> soon!
>>>
>>> [1]: https://github.com/francescomari/grunt-sling-content/issues/3
>>>
>>> 2013/8/14 Bertrand Delacretaz <bd...@apache.org>:
>>> > On Wed, Aug 14, 2013 at 9:42 AM, Francesco Mari
>>> > <ma...@gmail.com> wrote:
>>> > ...
>>> >> [2]: https://github.com/francescomari/grunt-sling-content...
>>> >
>>> > Interesting...would you mind adding a minimal usage example to the
>>> README.md?
>>> >
>>> > My knowledge of Grunt is null so far but this looks cool.
>>> >
>>> > -Bertrand
>>>

Re: Grunt task leveragin the POST servlet

Posted by Francesco Mari <ma...@gmail.com>.
Cool, thanks for the information.

2013/8/14 James Stansell <js...@gmail.com>:
> Francesco,
>
> vlt has recently been added to the jackrabbit svn:
>
> [ANNOUCE] Contribution of Jackrabbit FileVault
> http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/201308.mbox/%3CCAB%2Bdfi%3Dk_MfWvz0yMxT03fCaheOUVUE_XFGvaZ0k0BiByX__nQ%40mail.gmail.com%3E
>
> ...
>
> and I'm pleased
> to announce the completion of Adobe's contribution of file vault. Now
> known as Jackrabbit FileVault.
> To quickly recap, Jackrabbit FileVault provides tooling around
> exporting, importing and syncing content from and to a JCR repository
> for development.
>
> The source is checked in under Jackrabbit commons [0] and is not released yet.
> ...
> [0] http://svn.apache.org/repos/asf/jackrabbit/commons/filevault/trunk/
>
>
>
> On Wed, Aug 14, 2013 at 10:54 AM, Francesco Mari
> <ma...@gmail.com>wrote:
>
>> I wasn't aware of this issue regarding the availability of the POST
>> servlet, but as I wrote in a previous mail, I'm waiting for vlt to be
>> released under open source license to use it.
>>
>> Bertrand, I already have an issue for it [1], and it's going to be closed
>> soon!
>>
>> [1]: https://github.com/francescomari/grunt-sling-content/issues/3
>>
>> 2013/8/14 Bertrand Delacretaz <bd...@apache.org>:
>> > On Wed, Aug 14, 2013 at 9:42 AM, Francesco Mari
>> > <ma...@gmail.com> wrote:
>> > ...
>> >> [2]: https://github.com/francescomari/grunt-sling-content...
>> >
>> > Interesting...would you mind adding a minimal usage example to the
>> README.md?
>> >
>> > My knowledge of Grunt is null so far but this looks cool.
>> >
>> > -Bertrand
>>

Re: Grunt task leveragin the POST servlet

Posted by James Stansell <js...@gmail.com>.
Francesco,

vlt has recently been added to the jackrabbit svn:

[ANNOUCE] Contribution of Jackrabbit FileVault
http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/201308.mbox/%3CCAB%2Bdfi%3Dk_MfWvz0yMxT03fCaheOUVUE_XFGvaZ0k0BiByX__nQ%40mail.gmail.com%3E

...

and I'm pleased
to announce the completion of Adobe's contribution of file vault. Now
known as Jackrabbit FileVault.
To quickly recap, Jackrabbit FileVault provides tooling around
exporting, importing and syncing content from and to a JCR repository
for development.

The source is checked in under Jackrabbit commons [0] and is not released yet.
...
[0] http://svn.apache.org/repos/asf/jackrabbit/commons/filevault/trunk/



On Wed, Aug 14, 2013 at 10:54 AM, Francesco Mari
<ma...@gmail.com>wrote:

> I wasn't aware of this issue regarding the availability of the POST
> servlet, but as I wrote in a previous mail, I'm waiting for vlt to be
> released under open source license to use it.
>
> Bertrand, I already have an issue for it [1], and it's going to be closed
> soon!
>
> [1]: https://github.com/francescomari/grunt-sling-content/issues/3
>
> 2013/8/14 Bertrand Delacretaz <bd...@apache.org>:
> > On Wed, Aug 14, 2013 at 9:42 AM, Francesco Mari
> > <ma...@gmail.com> wrote:
> > ...
> >> [2]: https://github.com/francescomari/grunt-sling-content...
> >
> > Interesting...would you mind adding a minimal usage example to the
> README.md?
> >
> > My knowledge of Grunt is null so far but this looks cool.
> >
> > -Bertrand
>

Re: Grunt task leveragin the POST servlet

Posted by Francesco Mari <ma...@gmail.com>.
I wasn't aware of this issue regarding the availability of the POST
servlet, but as I wrote in a previous mail, I'm waiting for vlt to be
released under open source license to use it.

Bertrand, I already have an issue for it [1], and it's going to be closed soon!

[1]: https://github.com/francescomari/grunt-sling-content/issues/3

2013/8/14 Bertrand Delacretaz <bd...@apache.org>:
> On Wed, Aug 14, 2013 at 9:42 AM, Francesco Mari
> <ma...@gmail.com> wrote:
> ...
>> [2]: https://github.com/francescomari/grunt-sling-content...
>
> Interesting...would you mind adding a minimal usage example to the README.md?
>
> My knowledge of Grunt is null so far but this looks cool.
>
> -Bertrand

Re: Grunt task leveragin the POST servlet

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Wed, Aug 14, 2013 at 9:42 AM, Francesco Mari
<ma...@gmail.com> wrote:
...
> [2]: https://github.com/francescomari/grunt-sling-content...

Interesting...would you mind adding a minimal usage example to the README.md?

My knowledge of Grunt is null so far but this looks cool.

-Bertrand

Re: Grunt task leveragin the POST servlet

Posted by Francesco Mari <ma...@gmail.com>.
I just published the package to NPM [1]. I also changed the name of
the git repository, as "grunt-sling" seemed too generic for me. The
new repo is at [2].

[1]: https://npmjs.org/package/grunt-sling-content
[2]: https://github.com/francescomari/grunt-sling-content

2013/8/13 Francesco Mari <ma...@gmail.com>:
> 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.
>
> 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.
>
> Il giorno 13/ago/2013 19:58, "Dascalita Dragos" <dd...@gmail.com> 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
>> <dd...@gmail.com>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
>> > <ma...@gmail.com>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
>> >>
>> >
>> >

Re: Grunt task leveragin the POST servlet

Posted by Robert Munteanu <ro...@apache.org>.
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" <dd...@gmail.com> 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 <ddragosd@gmail.com
> > >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 <
> > mari.francesco@gmail.com>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
> > >>
> > >
> > >
> >




Re: Grunt task leveragin the POST servlet

Posted by Francesco Mari <ma...@gmail.com>.
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.

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.
Il giorno 13/ago/2013 19:58, "Dascalita Dragos" <dd...@gmail.com> 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 <ddragosd@gmail.com
> >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 <
> mari.francesco@gmail.com>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
> >>
> >
> >
>

Re: Grunt task leveragin the POST servlet

Posted by Dascalita Dragos <dd...@gmail.com>.
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 <dd...@gmail.com>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 <ma...@gmail.com>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
>>
>
>

Re: Grunt task leveragin the POST servlet

Posted by Dascalita Dragos <dd...@gmail.com>.
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 <ma...@gmail.com>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
>