Problem with grunt-init (was: Re: [amber-lang] Re: amber-kickstart)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with grunt-init (was: Re: [amber-lang] Re: amber-kickstart)

Herby Vojčík
Hi!

This seems to be a serious show-stopper to me. Should we rely on
grunt-init when it first need to perform npm install grunt in the
project directory?

IT seems it's defying logic of it, as it should be initializing the
project... Manfred, do we do something wrong?

Herby

paul wrote:

> Hey Hannes,
> I encountered the same and read
> http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt
> installing grunt locally in the project by running "npm install grunt"
> seems to have solved the problem.
> Kind regards,
> Paul
>
> Am Donnerstag, 10. April 2014 17:16:12 UTC+2 schrieb Hannes:
>
>     Manfred,
>
>     I have started here
>
>     https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>     <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>
>     I installed http://gruntjs.com/project-scaffolding
>     <http://gruntjs.com/project-scaffolding> (grunt-init) and
>     followed the instructions
>
>     But then after
>
>     mkdir myamberproject
>     cd myamberproject
>     bower install amber --save
>     grunt init amber
>
>
>     Then I get the following
>     <errorMessage>
>     grunt-cli: The grunt command line interface. (v0.1.13)
>
>     Fatal error: Unable to find local grunt.
>
>     If you're seeing this message, either a Gruntfile wasn't found or grunt
>     hasn't been installed locally to your project. For more information
>     about
>     installing and configuring grunt, please see the Getting Started guide:
>
>     http://gruntjs.com/getting-started <http://gruntjs.com/getting-started>
>     </errorMessage>
>
>     I have installed grunt-cli in addition.
>
>     What I did is here
>     https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>     <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>
>     What am I missing?
>
>     --Hannes
>
>     On 4/10/14, H. Hirzel <[hidden email] <javascript:>> wrote:
>      > Philippe, Nicolas and Manfred
>      >
>      > I have forked Philippe's 'amber-kickstart' and made it simpler (
>      >
>      > - only one index.html
>      > - renamed 'SamplePackage' to 'MyPackage'.
>      > - Added button which brings up the 'Counter'.
>      > - Unfortunately the old IDE does not work anymore. But Helios does.
>      >
>      > https://github.com/hhzl/amber-kickstart
>     <https://github.com/hhzl/amber-kickstart>
>      >
>      > Armed with the insight gained this exercise I now move on to update
>      >
>      > https://github.com/mkroehnert/grunt-init-amber
>     <https://github.com/mkroehnert/grunt-init-amber>
>      >
>      >
>      > The grunt-init-amber approach will have the following advantages
>      >
>      > - It allows for parametrization of the package name
>      > - When added to amber there is no need to download an additional
>     project.
>      >
>      > --Hannes
>      >
>      > On 4/10/14, [hidden email] <javascript:>
>     <[hidden email] <javascript:>> wrote:
>      >> Yes
>      >>
>      >> On Thursday, April 10, 2014, H. Hirzel <[hidden email]
>     <javascript:>> wrote:
>      >>
>      >>> On 4/5/14, [hidden email] <javascript:> <javascript:;>
>      >>> <[hidden email] <javascript:><javascript:;>>
>      >>> wrote:
>      >>> > In order to help getting things work faster, I make
>     amber-kickstart.
>      >>> >
>      >>> > *https://github.com/philippeback/amber-kickstart
>     <https://github.com/philippeback/amber-kickstart>
>      >>> > <https://github.com/philippeback/amber-kickstart
>     <https://github.com/philippeback/amber-kickstart>>*
>      >>> >
>      >>> > *Next would be to have a nicer bower json thing in there.*
>      >>> >
>      >>> > *But what was biting me the most what the the IDE wouldn't
>     load if the
>      >>> > package was required and empty. Bummer but can be a
>     showstopper for a
>      >>> > couple of people.*
>      >>>
>      >>> I assume you created
>      >>>
>      >>>
>     https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st
>     <https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st>
>
>      >>> manually to work around this?
>      >>>
>      >>> --Hannes
>      >>>
>      >>> > *Phil*
>      >>>
>      >>>
>      >>> P.S. This applies to the released version 0.12.3, correct?
>      >>>
>     https://github.com/amber-smalltalk/amber/issues/milestones?state=closed
>     <https://github.com/amber-smalltalk/amber/issues/milestones?state=closed>
>
>      >>>
>      >>> --
>      >>> You received this message because you are subscribed to the Google
>      >>> Groups
>      >>> "amber-lang" group.
>      >>> To unsubscribe from this group and stop receiving emails from
>     it, send
>      >>> an
>      >>> email to [hidden email] <javascript:>
>     <javascript:;>.
>      >>> For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>      >>>
>      >>
>      >>
>      >> --
>      >> ---
>      >> Philippe Back
>      >> Visible Performance Improvements
>      >> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
>      >> [hidden email] <javascript:> | Web: http://philippeback.eu
>      >> Blog: http://philippeback.be | Twitter: @philippeback
>      >> Youtube: http://www.youtube.com/user/philippeback/videos
>     <http://www.youtube.com/user/philippeback/videos>
>      >>
>      >> High Octane SPRL
>      >> rue cour Boisacq 101 | 1301 Bierges | Belgium
>      >>
>      >> Pharo Consortium Member - http://consortium.pharo.org/
>      >> Featured on the Software Process and Measurement Cast -
>      >> http://spamcast.libsyn.com
>      >> Sparx Systems Enterprise Architect and Ability Engineering
>     EADocX Value
>      >> Added Reseller
>      >>
>      >> --
>      >> You received this message because you are subscribed to the
>     Google Groups
>      >> "amber-lang" group.
>      >> To unsubscribe from this group and stop receiving emails from
>     it, send an
>      >> email to [hidden email] <javascript:>.
>      >> For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>      >>
>      >
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with grunt-init (was: Re: [amber-lang] Re: amber-kickstart)

Hannes Hirzel
We have the issue No 658
https://github.com/amber-smalltalk/amber/issues/658

amber cli should have command 'create' that creates template of a new project


The implementation could be done either with
a)
    grunt-init amber myPackage


or an amber CLI command

b)
   amber create myPackage

I prefer actually b) but as for now it seems that the implementation
of a) is not all that far away ....   :)

What do you think? Do we need both in the end? Probably not?

--Hannes

P.S. Is this issue related to
AmberCli: write package command?
https://github.com/amber-smalltalk/amber/issues/673
?

On 4/11/14, Herby Vojčík <[hidden email]> wrote:

> Hi!
>
> This seems to be a serious show-stopper to me. Should we rely on
> grunt-init when it first need to perform npm install grunt in the
> project directory?
>
> IT seems it's defying logic of it, as it should be initializing the
> project... Manfred, do we do something wrong?
>
> Herby
>
> paul wrote:
>> Hey Hannes,
>> I encountered the same and read
>> http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt
>> installing grunt locally in the project by running "npm install grunt"
>> seems to have solved the problem.
>> Kind regards,
>> Paul
>>
>> Am Donnerstag, 10. April 2014 17:16:12 UTC+2 schrieb Hannes:
>>
>>     Manfred,
>>
>>     I have started here
>>
>>     https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>     <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>
>>     I installed http://gruntjs.com/project-scaffolding
>>     <http://gruntjs.com/project-scaffolding> (grunt-init) and
>>     followed the instructions
>>
>>     But then after
>>
>>     mkdir myamberproject
>>     cd myamberproject
>>     bower install amber --save
>>     grunt init amber
>>
>>
>>     Then I get the following
>>     <errorMessage>
>>     grunt-cli: The grunt command line interface. (v0.1.13)
>>
>>     Fatal error: Unable to find local grunt.
>>
>>     If you're seeing this message, either a Gruntfile wasn't found or
>> grunt
>>     hasn't been installed locally to your project. For more information
>>     about
>>     installing and configuring grunt, please see the Getting Started
>> guide:
>>
>>     http://gruntjs.com/getting-started
>> <http://gruntjs.com/getting-started>
>>     </errorMessage>
>>
>>     I have installed grunt-cli in addition.
>>
>>     What I did is here
>>     https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>     <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>
>>     What am I missing?
>>
>>     --Hannes
>>
>>     On 4/10/14, H. Hirzel <[hidden email] <javascript:>> wrote:
>>      > Philippe, Nicolas and Manfred
>>      >
>>      > I have forked Philippe's 'amber-kickstart' and made it simpler (
>>      >
>>      > - only one index.html
>>      > - renamed 'SamplePackage' to 'MyPackage'.
>>      > - Added button which brings up the 'Counter'.
>>      > - Unfortunately the old IDE does not work anymore. But Helios
>> does.
>>      >
>>      > https://github.com/hhzl/amber-kickstart
>>     <https://github.com/hhzl/amber-kickstart>
>>      >
>>      > Armed with the insight gained this exercise I now move on to
>> update
>>      >
>>      > https://github.com/mkroehnert/grunt-init-amber
>>     <https://github.com/mkroehnert/grunt-init-amber>
>>      >
>>      >
>>      > The grunt-init-amber approach will have the following advantages
>>      >
>>      > - It allows for parametrization of the package name
>>      > - When added to amber there is no need to download an additional
>>     project.
>>      >
>>      > --Hannes
>>      >
>>      > On 4/10/14, [hidden email] <javascript:>
>>     <[hidden email] <javascript:>> wrote:
>>      >> Yes
>>      >>
>>      >> On Thursday, April 10, 2014, H. Hirzel <[hidden email]
>>     <javascript:>> wrote:
>>      >>
>>      >>> On 4/5/14, [hidden email] <javascript:> <javascript:;>
>>      >>> <[hidden email] <javascript:><javascript:;>>
>>      >>> wrote:
>>      >>> > In order to help getting things work faster, I make
>>     amber-kickstart.
>>      >>> >
>>      >>> > *https://github.com/philippeback/amber-kickstart
>>     <https://github.com/philippeback/amber-kickstart>
>>      >>> > <https://github.com/philippeback/amber-kickstart
>>     <https://github.com/philippeback/amber-kickstart>>*
>>      >>> >
>>      >>> > *Next would be to have a nicer bower json thing in there.*
>>      >>> >
>>      >>> > *But what was biting me the most what the the IDE wouldn't
>>     load if the
>>      >>> > package was required and empty. Bummer but can be a
>>     showstopper for a
>>      >>> > couple of people.*
>>      >>>
>>      >>> I assume you created
>>      >>>
>>      >>>
>>
>> https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st
>>
>> <https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st>
>>
>>      >>> manually to work around this?
>>      >>>
>>      >>> --Hannes
>>      >>>
>>      >>> > *Phil*
>>      >>>
>>      >>>
>>      >>> P.S. This applies to the released version 0.12.3, correct?
>>      >>>
>>
>> https://github.com/amber-smalltalk/amber/issues/milestones?state=closed
>>
>> <https://github.com/amber-smalltalk/amber/issues/milestones?state=closed>
>>
>>      >>>
>>      >>> --
>>      >>> You received this message because you are subscribed to the
>> Google
>>      >>> Groups
>>      >>> "amber-lang" group.
>>      >>> To unsubscribe from this group and stop receiving emails from
>>     it, send
>>      >>> an
>>      >>> email to [hidden email] <javascript:>
>>     <javascript:;>.
>>      >>> For more options, visit https://groups.google.com/d/optout
>>     <https://groups.google.com/d/optout>.
>>      >>>
>>      >>
>>      >>
>>      >> --
>>      >> ---
>>      >> Philippe Back
>>      >> Visible Performance Improvements
>>      >> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
>>      >> [hidden email] <javascript:> | Web: http://philippeback.eu
>>      >> Blog: http://philippeback.be | Twitter: @philippeback
>>      >> Youtube: http://www.youtube.com/user/philippeback/videos
>>     <http://www.youtube.com/user/philippeback/videos>
>>      >>
>>      >> High Octane SPRL
>>      >> rue cour Boisacq 101 | 1301 Bierges | Belgium
>>      >>
>>      >> Pharo Consortium Member - http://consortium.pharo.org/
>>      >> Featured on the Software Process and Measurement Cast -
>>      >> http://spamcast.libsyn.com
>>      >> Sparx Systems Enterprise Architect and Ability Engineering
>>     EADocX Value
>>      >> Added Reseller
>>      >>
>>      >> --
>>      >> You received this message because you are subscribed to the
>>     Google Groups
>>      >> "amber-lang" group.
>>      >> To unsubscribe from this group and stop receiving emails from
>>     it, send an
>>      >> email to [hidden email] <javascript:>.
>>      >> For more options, visit https://groups.google.com/d/optout
>>     <https://groups.google.com/d/optout>.
>>      >>
>>      >
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to [hidden email]
>> <mailto:[hidden email]>.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with grunt-init (was: Re: [amber-lang] Re: amber-kickstart)

Herby Vojčík


H. Hirzel wrote:

> We have the issue No 658
> https://github.com/amber-smalltalk/amber/issues/658
>
> amber cli should have command 'create' that creates template of a new project
>
>
> The implementation could be done either with
> a)
>      grunt-init amber myPackage
>
>
> or an amber CLI command
>
> b)
>     amber create myPackage

Manfred wants to do it this way, as all of us, but using grunt-init for this; unless I understood something wrong.

>
> I prefer actually b) but as for now it seems that the implementation
> of a) is not all that far away ....   :)
>
> What do you think? Do we need both in the end? Probably not?
>
> --Hannes
>
> P.S. Is this issue related to
> AmberCli: write package command?
> https://github.com/amber-smalltalk/amber/issues/673
> ?
>
> On 4/11/14, Herby Vojčík<[hidden email]>  wrote:
>> Hi!
>>
>> This seems to be a serious show-stopper to me. Should we rely on
>> grunt-init when it first need to perform npm install grunt in the
>> project
 directory?

>>
>> IT seems it's defying logic of it, as it should be initializing the
>> project... Manfred, do we do something wrong?
>>
>> Herby
>>
>> paul wrote:
>>> Hey Hannes,
>>> I encountered the same and read
>>> http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt
>>> installing grunt locally in the project by running "npm install grunt"
>>> seems to have solved the problem.
>>> Kind regards,
>>> Paul
>>>
>>> Am Donnerstag, 10. April 2014 17:16:12 UTC+2 schrieb Hannes:
>>>
>>>      Manfred,
>>>
>>>      I have started here
>>>
>>>      https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>>      <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>>
>>>      I installed http://gruntjs.com/project-scaffolding
>>>      <http://gruntjs.com/project-scaffolding>  (grunt-init) and
>>>      followed the instructions
>>>
>>>      But then after
>>>
>>>      mkdir myamberproject
>>>      cd myamberproject
>>>      bower i
nstall amber --save

>>>      grunt init amber
>>>
>>>
>>>      Then I get the following
>>>      <errorMessage>
>>>      grunt-cli: The grunt command line interface. (v0.1.13)
>>>
>>>      Fatal error: Unable to find local grunt.
>>>
>>>      If you're seeing this message, either a Gruntfile wasn't found or
>>> grunt
>>>      hasn't been installed locally to your project. For more information
>>>      about
>>>      installing and configuring grunt, please see the Getting Started
>>> guide:
>>>
>>>      http://gruntjs.com/getting-started
>>> <http://gruntjs.com/getting-started>
>>>      </errorMessage>
>>>
>>>      I have installed grunt-cli in addition.
>>>
>>>      What I did is here
>>>      https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>>      <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>>
>>>      What am I missing?
>>>
>>>      --Hannes
>>>
>>>      On 4/10/14, H. Hirzel<[hidden email]<javascript:>>  wrote:
>>>       >  Phili
ppe, Nicolas and Manfred

>>>       >
>>>       >  I have forked Philippe's 'amber-kickstart' and made it simpler (
>>>       >
>>>       >  - only one index.html
>>>       >  - renamed 'SamplePackage' to 'MyPackage'.
>>>       >  - Added button which brings up the 'Counter'.
>>>       >  - Unfortunately the old IDE does not work anymore. But Helios
>>> does.
>>>       >
>>>       >  https://github.com/hhzl/amber-kickstart
>>>      <https://github.com/hhzl/amber-kickstart>
>>>       >
>>>       >  Armed with the insight gained this exercise I now move on to
>>> update
>>>       >
>>>       >  https://github.com/mkroehnert/grunt-init-amber
>>>      <https://github.com/mkroehnert/grunt-init-amber>
>>>       >
>>>       >
>>>       >  The grunt-init-amber approach will have the following advantages
>>>       >
>>>       >  - It allows for parametrization of the package name
>>>       >  - When added to amber there is no need to download an additional
>>>      project.
>>>       >

>>>       >  --Hannes
>>>       >
>>>       >  On 4/10/14, [hidden email]<javascript:>
>>>      <[hidden email]<javascript:>>  wrote:
>>>       >>  Yes
>>>       >>
>>>       >>  On Thursday, April 10, 2014, H. Hirzel<[hidden email]
>>>      <javascript:>>  wrote:
>>>       >>
>>>       >>>  On 4/5/14, [hidden email]<javascript:>  <javascript:;>
>>>       >>>  <[hidden email]<javascript:><javascript:;>>
>>>       >>>  wrote:
>>>       >>>  >  In order to help getting things work faster, I make
>>>      amber-kickstart.
>>>       >>>  >
>>>       >>>  >  *https://github.com/philippeback/amber-kickstart
>>>      <https://github.com/philippeback/amber-kickstart>
>>>       >>>  >  <https://github.com/philippeback/amber-kickstart
>>>      <https://github.com/philippeback/amber-kickstart>>*
>>>       >>>  >
>>>       >>>  >  *Next would be to have a nicer bower json thing in there.*
>>>       >>>  >
>>>       >>>  >  *But what was biting me the most what t
he the IDE wouldn't

>>>      load if the
>>>       >>>  >  package was required and empty. Bummer but can be a
>>>      showstopper for a
>>>       >>>  >  couple of people.*
>>>       >>>
>>>       >>>  I assume you created
>>>       >>>
>>>       >>>
>>>
>>> https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st
>>>
>>> <https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st>
>>>
>>>       >>>  manually to work around this?
>>>       >>>
>>>       >>>  --Hannes
>>>       >>>
>>>       >>>  >  *Phil*
>>>       >>>
>>>       >>>
>>>       >>>  P.S. This applies to the released version 0.12.3, correct?
>>>       >>>
>>>
>>> https://github.com/amber-smalltalk/amber/issues/milestones?state=closed
>>>
>>> <https://github.com/amber-smalltalk/amber/issues/milestones?state=closed>
>>>
>>>       >>>
>>>       >>>  --
>>>       >>>  You received this message because you are subscribed to the
>>> Google
>>>       >>>  
Groups

>>>       >>>  "amber-lang" group.
>>>       >>>  To unsubscribe from this group and stop receiving emails from
>>>      it, send
>>>       >>>  an
>>>       >>>  email to [hidden email]<javascript:>
>>>      <javascript:;>.
>>>       >>>  For more options, visit https://groups.google.com/d/optout
>>>      <https://groups.google.com/d/optout>.
>>>       >>>
>>>       >>
>>>       >>
>>>       >>  --
>>>       >>  ---
>>>       >>  Philippe Back
>>>       >>  Visible Performance Improvements
>>>       >>  Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
>>>       >>  [hidden email]<javascript:>  | Web: http://philippeback.eu
>>>       >>  Blog: http://philippeback.be | Twitter: @philippeback
>>>       >>  Youtube: http://www.youtube.com/user/philippeback/videos
>>>      <http://www.youtube.com/user/philippeback/videos>
>>>       >>
>>>       >>  High Octane SPRL
>>>       >>  rue cour Boisacq 101 | 1301 Bierges | Belgium
>>>       >>
>>>       >
>  Pharo Consortium Member - http://consortium.pharo.org/
>>>       >>  Featured on the Software Process and Measurement Cast -
>>>       >>  http://spamcast.libsyn.com
>>>       >>  Sparx Systems Enterprise Architect and Ability Engineering
>>>      EADocX Value
>>>       >>  Added Reseller
>>>       >>
>>>       >>  --
>>>       >>  You received this message because you are subscribed to the
>>>      Google Groups
>>>       >>  "amber-lang" group.
>>>       >>  To unsubscribe from this group and stop receiving emails from
>>>      it, send an
>>>       >>  email to [hidden email]<javascript:>.
>>>       >>  For more options, visit https://groups.google.com/d/optout
>>>      <https://groups.google.com/d/optout>.
>>>       >>
>>>       >
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to amber-lang+unsubscrib
[hidden email]

>>> <mailto:[hidden email]>.
>>> For more options, visit https://groups.google.com/d/optout.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [hidden email].
>> For more options, visit https://groups.google.com/d/optout.
>>
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with grunt-init (was: Re: [amber-lang] Re: amber-kickstart)

Hannes Hirzel
OK Herby, got it.

We go for grunt-init.

I thought you want to avoid that and go for another option in the amber CLI.

--Hannes

On 4/11/14, Herby Vojčík <[hidden email]> wrote:

>
>
> H. Hirzel wrote:
>> We have the issue No 658
>> https://github.com/amber-smalltalk/amber/issues/658
>>
>> amber cli should have command 'create' that creates template of a new
>> project
>>
>>
>> The implementation could be done either with
>> a)
>>      grunt-init amber myPackage
>>
>>
>> or an amber CLI command
>>
>> b)
>>     amber create myPackage
>
> Manfred wants to do it this way, as all of us, but using grunt-init for
> this; unless I understood something wrong.
>
>>
>> I prefer actually b) but as for now it seems that the implementation
>> of a) is not all that far away ....   :)
>>
>> What do you think? Do we need both in the end? Probably not?
>>
>> --Hannes
>>
>> P.S. Is this issue related to
>> AmberCli: write package command?
>> https://github.com/amber-smalltalk/amber/issues/673
>> ?
>>
>> On 4/11/14, Herby Vojčík<[hidden email]>  wrote:
>>> Hi!
>>>
>>> This seems to be a serious show-stopper to me. Should we rely on
>>> grunt-init when it first need to perform npm install grunt in the
>>> project
>  directory?
>>>
>>> IT seems it's defying logic of it, as it should be initializing the
>>> project... Manfred, do we do something wrong?
>>>
>>> Herby
>>>
>>> paul wrote:
>>>> Hey Hannes,
>>>> I encountered the same and read
>>>> http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt
>>>> installing grunt locally in the project by running "npm install grunt"
>>>> seems to have solved the problem.
>>>> Kind regards,
>>>> Paul
>>>>
>>>> Am Donnerstag, 10. April 2014 17:16:12 UTC+2 schrieb Hannes:
>>>>
>>>>      Manfred,
>>>>
>>>>      I have started here
>>>>
>>>>      https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>>>      <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>>>
>>>>      I installed http://gruntjs.com/project-scaffolding
>>>>      <http://gruntjs.com/project-scaffolding>  (grunt-init) and
>>>>      followed the instructions
>>>>
>>>>      But then after
>>>>
>>>>      mkdir myamberproject
>>>>      cd myamberproject
>>>>      bower i
> nstall amber --save
>>>>      grunt init amber
>>>>
>>>>
>>>>      Then I get the following
>>>>      <errorMessage>
>>>>      grunt-cli: The grunt command line interface. (v0.1.13)
>>>>
>>>>      Fatal error: Unable to find local grunt.
>>>>
>>>>      If you're seeing this message, either a Gruntfile wasn't found or
>>>> grunt
>>>>      hasn't been installed locally to your project. For more
>>>> information
>>>>      about
>>>>      installing and configuring grunt, please see the Getting Started
>>>> guide:
>>>>
>>>>      http://gruntjs.com/getting-started
>>>> <http://gruntjs.com/getting-started>
>>>>      </errorMessage>
>>>>
>>>>      I have installed grunt-cli in addition.
>>>>
>>>>      What I did is here
>>>>      https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>>>      <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>>>
>>>>      What am I missing?
>>>>
>>>>      --Hannes
>>>>
>>>>      On 4/10/14, H. Hirzel<[hidden email]<javascript:>>  wrote:
>>>>       >  Phili
> ppe, Nicolas and Manfred
>>>>       >
>>>>       >  I have forked Philippe's 'amber-kickstart' and made it simpler
>>>> (
>>>>       >
>>>>       >  - only one index.html
>>>>       >  - renamed 'SamplePackage' to 'MyPackage'.
>>>>       >  - Added button which brings up the 'Counter'.
>>>>       >  - Unfortunately the old IDE does not work anymore. But Helios
>>>> does.
>>>>       >
>>>>       >  https://github.com/hhzl/amber-kickstart
>>>>      <https://github.com/hhzl/amber-kickstart>
>>>>       >
>>>>       >  Armed with the insight gained this exercise I now move on to
>>>> update
>>>>       >
>>>>       >  https://github.com/mkroehnert/grunt-init-amber
>>>>      <https://github.com/mkroehnert/grunt-init-amber>
>>>>       >
>>>>       >
>>>>       >  The grunt-init-amber approach will have the following
>>>> advantages
>>>>       >
>>>>       >  - It allows for parametrization of the package name
>>>>       >  - When added to amber there is no need to download an
>>>> additional
>>>>      project.
>>>>       >
>
>>>>       >  --Hannes
>>>>       >
>>>>       >  On 4/10/14, [hidden email]<javascript:>
>>>>      <[hidden email]<javascript:>>  wrote:
>>>>       >>  Yes
>>>>       >>
>>>>       >>  On Thursday, April 10, 2014, H. Hirzel<[hidden email]
>>>>      <javascript:>>  wrote:
>>>>       >>
>>>>       >>>  On 4/5/14, [hidden email]<javascript:>  <javascript:;>
>>>>       >>>  <[hidden email]<javascript:><javascript:;>>
>>>>       >>>  wrote:
>>>>       >>>  >  In order to help getting things work faster, I make
>>>>      amber-kickstart.
>>>>       >>>  >
>>>>       >>>  >  *https://github.com/philippeback/amber-kickstart
>>>>      <https://github.com/philippeback/amber-kickstart>
>>>>       >>>  >  <https://github.com/philippeback/amber-kickstart
>>>>      <https://github.com/philippeback/amber-kickstart>>*
>>>>       >>>  >
>>>>       >>>  >  *Next would be to have a nicer bower json thing in
>>>> there.*
>>>>       >>>  >
>>>>       >>>  >  *But what was biting me the most what t
> he the IDE wouldn't
>>>>      load if the
>>>>       >>>  >  package was required and empty. Bummer but can be a
>>>>      showstopper for a
>>>>       >>>  >  couple of people.*
>>>>       >>>
>>>>       >>>  I assume you created
>>>>       >>>
>>>>       >>>
>>>>
>>>> https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st
>>>>
>>>> <https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st>
>>>>
>>>>       >>>  manually to work around this?
>>>>       >>>
>>>>       >>>  --Hannes
>>>>       >>>
>>>>       >>>  >  *Phil*
>>>>       >>>
>>>>       >>>
>>>>       >>>  P.S. This applies to the released version 0.12.3, correct?
>>>>       >>>
>>>>
>>>> https://github.com/amber-smalltalk/amber/issues/milestones?state=closed
>>>>
>>>> <https://github.com/amber-smalltalk/amber/issues/milestones?state=closed>
>>>>
>>>>       >>>
>>>>       >>>  --
>>>>       >>>  You received this message because you are subscribed to the
>>>> Google
>>>>       >>>
> Groups
>>>>       >>>  "amber-lang" group.
>>>>       >>>  To unsubscribe from this group and stop receiving emails
>>>> from
>>>>      it, send
>>>>       >>>  an
>>>>       >>>  email to [hidden email]<javascript:>
>>>>      <javascript:;>.
>>>>       >>>  For more options, visit https://groups.google.com/d/optout
>>>>      <https://groups.google.com/d/optout>.
>>>>       >>>
>>>>       >>
>>>>       >>
>>>>       >>  --
>>>>       >>  ---
>>>>       >>  Philippe Back
>>>>       >>  Visible Performance Improvements
>>>>       >>  Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
>>>>       >>  [hidden email]<javascript:>  | Web:
>>>> http://philippeback.eu
>>>>       >>  Blog: http://philippeback.be | Twitter: @philippeback
>>>>       >>  Youtube: http://www.youtube.com/user/philippeback/videos
>>>>      <http://www.youtube.com/user/philippeback/videos>
>>>>       >>
>>>>       >>  High Octane SPRL
>>>>       >>  rue cour Boisacq 101 | 1301 Bierges | Belgium
>>>>       >>
>>>>       >
>>  Pharo Consortium Member - http://consortium.pharo.org/
>>>>       >>  Featured on the Software Process and Measurement Cast -
>>>>       >>  http://spamcast.libsyn.com
>>>>       >>  Sparx Systems Enterprise Architect and Ability Engineering
>>>>      EADocX Value
>>>>       >>  Added Reseller
>>>>       >>
>>>>       >>  --
>>>>       >>  You received this message because you are subscribed to the
>>>>      Google Groups
>>>>       >>  "amber-lang" group.
>>>>       >>  To unsubscribe from this group and stop receiving emails from
>>>>      it, send an
>>>>       >>  email to [hidden email]<javascript:>.
>>>>       >>  For more options, visit https://groups.google.com/d/optout
>>>>      <https://groups.google.com/d/optout>.
>>>>       >>
>>>>       >
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "amber-lang" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to amber-lang+unsubscrib
> [hidden email]
>>>> <mailto:[hidden email]>.
>>>> For more options, visit https://groups.google.com/d/optout.
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> email to [hidden email].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with grunt-init (was: Re: [amber-lang] Re: amber-kickstart)

Manfred Kröhnert
My idea was to reuse grunt tools for this task and make them part of the Amber CLI.
If this doesn't seem like a good idea we can also check for other solutions.

Best,
Manfred


On Fri, Apr 11, 2014 at 1:40 PM, H. Hirzel <[hidden email]> wrote:
OK Herby, got it.

We go for grunt-init.

I thought you want to avoid that and go for another option in the amber CLI.

--Hannes

On 4/11/14, Herby Vojčík <[hidden email]> wrote:
>
>
> H. Hirzel wrote:
>> We have the issue No 658
>> https://github.com/amber-smalltalk/amber/issues/658
>>
>> amber cli should have command 'create' that creates template of a new
>> project
>>
>>
>> The implementation could be done either with
>> a)
>>      grunt-init amber myPackage
>>
>>
>> or an amber CLI command
>>
>> b)
>>     amber create myPackage
>
> Manfred wants to do it this way, as all of us, but using grunt-init for
> this; unless I understood something wrong.
>
>>
>> I prefer actually b) but as for now it seems that the implementation
>> of a) is not all that far away ....   :)
>>
>> What do you think? Do we need both in the end? Probably not?
>>
>> --Hannes
>>
>> P.S. Is this issue related to
>> AmberCli: write package command?
>> https://github.com/amber-smalltalk/amber/issues/673
>> ?
>>
>> On 4/11/14, Herby Vojčík<[hidden email]>  wrote:
>>> Hi!
>>>
>>> This seems to be a serious show-stopper to me. Should we rely on
>>> grunt-init when it first need to perform npm install grunt in the
>>> project
>  directory?
>>>
>>> IT seems it's defying logic of it, as it should be initializing the
>>> project... Manfred, do we do something wrong?
>>>
>>> Herby
>>>
>>> paul wrote:
>>>> Hey Hannes,
>>>> I encountered the same and read
>>>> http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt
>>>> installing grunt locally in the project by running "npm install grunt"
>>>> seems to have solved the problem.
>>>> Kind regards,
>>>> Paul
>>>>
>>>> Am Donnerstag, 10. April 2014 17:16:12 UTC+2 schrieb Hannes:
>>>>
>>>>      Manfred,
>>>>
>>>>      I have started here
>>>>
>>>>      https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>>>      <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>>>
>>>>      I installed http://gruntjs.com/project-scaffolding
>>>>      <http://gruntjs.com/project-scaffolding>  (grunt-init) and
>>>>      followed the instructions
>>>>
>>>>      But then after
>>>>
>>>>      mkdir myamberproject
>>>>      cd myamberproject
>>>>      bower i
> nstall amber --save
>>>>      grunt init amber
>>>>
>>>>
>>>>      Then I get the following
>>>>      <errorMessage>
>>>>      grunt-cli: The grunt command line interface. (v0.1.13)
>>>>
>>>>      Fatal error: Unable to find local grunt.
>>>>
>>>>      If you're seeing this message, either a Gruntfile wasn't found or
>>>> grunt
>>>>      hasn't been installed locally to your project. For more
>>>> information
>>>>      about
>>>>      installing and configuring grunt, please see the Getting Started
>>>> guide:
>>>>
>>>>      http://gruntjs.com/getting-started
>>>> <http://gruntjs.com/getting-started>
>>>>      </errorMessage>
>>>>
>>>>      I have installed grunt-cli in addition.
>>>>
>>>>      What I did is here
>>>>      https://github.com/hhzl/grunt-init-amber/blob/master/README.md
>>>>      <https://github.com/hhzl/grunt-init-amber/blob/master/README.md>
>>>>
>>>>      What am I missing?
>>>>
>>>>      --Hannes
>>>>
>>>>      On 4/10/14, H. Hirzel<[hidden email]<javascript:>>  wrote:
>>>>       >  Phili
> ppe, Nicolas and Manfred
>>>>       >
>>>>       >  I have forked Philippe's 'amber-kickstart' and made it simpler
>>>> (
>>>>       >
>>>>       >  - only one index.html
>>>>       >  - renamed 'SamplePackage' to 'MyPackage'.
>>>>       >  - Added button which brings up the 'Counter'.
>>>>       >  - Unfortunately the old IDE does not work anymore. But Helios
>>>> does.
>>>>       >
>>>>       >  https://github.com/hhzl/amber-kickstart
>>>>      <https://github.com/hhzl/amber-kickstart>
>>>>       >
>>>>       >  Armed with the insight gained this exercise I now move on to
>>>> update
>>>>       >
>>>>       >  https://github.com/mkroehnert/grunt-init-amber
>>>>      <https://github.com/mkroehnert/grunt-init-amber>
>>>>       >
>>>>       >
>>>>       >  The grunt-init-amber approach will have the following
>>>> advantages
>>>>       >
>>>>       >  - It allows for parametrization of the package name
>>>>       >  - When added to amber there is no need to download an
>>>> additional
>>>>      project.
>>>>       >
>
>>>>       >  --Hannes
>>>>       >
>>>>       >  On 4/10/14, [hidden email]<javascript:>
>>>>      <[hidden email]<javascript:>>  wrote:
>>>>       >>  Yes
>>>>       >>
>>>>       >>  On Thursday, April 10, 2014, H. Hirzel<[hidden email]
>>>>      <javascript:>>  wrote:
>>>>       >>
>>>>       >>>  On 4/5/14, [hidden email]<javascript:>  <javascript:;>
>>>>       >>>  <[hidden email]<javascript:><javascript:;>>
>>>>       >>>  wrote:
>>>>       >>>  >  In order to help getting things work faster, I make
>>>>      amber-kickstart.
>>>>       >>>  >
>>>>       >>>  >  *https://github.com/philippeback/amber-kickstart
>>>>      <https://github.com/philippeback/amber-kickstart>
>>>>       >>>  >  <https://github.com/philippeback/amber-kickstart
>>>>      <https://github.com/philippeback/amber-kickstart>>*
>>>>       >>>  >
>>>>       >>>  >  *Next would be to have a nicer bower json thing in
>>>> there.*
>>>>       >>>  >
>>>>       >>>  >  *But what was biting me the most what t
> he the IDE wouldn't
>>>>      load if the
>>>>       >>>  >  package was required and empty. Bummer but can be a
>>>>      showstopper for a
>>>>       >>>  >  couple of people.*
>>>>       >>>
>>>>       >>>  I assume you created
>>>>       >>>
>>>>       >>>
>>>>
>>>> https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st
>>>>
>>>> <https://github.com/philippeback/amber-kickstart/blob/master/template/st/SamplePackage.st>
>>>>
>>>>       >>>  manually to work around this?
>>>>       >>>
>>>>       >>>  --Hannes
>>>>       >>>
>>>>       >>>  >  *Phil*
>>>>       >>>
>>>>       >>>
>>>>       >>>  P.S. This applies to the released version 0.12.3, correct?
>>>>       >>>
>>>>
>>>> https://github.com/amber-smalltalk/amber/issues/milestones?state=closed
>>>>
>>>> <https://github.com/amber-smalltalk/amber/issues/milestones?state=closed>
>>>>
>>>>       >>>
>>>>       >>>  --
>>>>       >>>  You received this message because you are subscribed to the
>>>> Google
>>>>       >>>
> Groups
>>>>       >>>  "amber-lang" group.
>>>>       >>>  To unsubscribe from this group and stop receiving emails
>>>> from
>>>>      it, send
>>>>       >>>  an
>>>>       >>>  email to [hidden email]<javascript:>
>>>>      <javascript:;>.
>>>>       >>>  For more options, visit https://groups.google.com/d/optout
>>>>      <https://groups.google.com/d/optout>.
>>>>       >>>
>>>>       >>
>>>>       >>
>>>>       >>  --
>>>>       >>  ---
>>>>       >>  Philippe Back
>>>>       >>  Visible Performance Improvements
>>>>       >>  Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027
>>>>       >>  [hidden email]<javascript:>  | Web:
>>>> http://philippeback.eu
>>>>       >>  Blog: http://philippeback.be | Twitter: @philippeback
>>>>       >>  Youtube: http://www.youtube.com/user/philippeback/videos
>>>>      <http://www.youtube.com/user/philippeback/videos>
>>>>       >>
>>>>       >>  High Octane SPRL
>>>>       >>  rue cour Boisacq 101 | 1301 Bierges | Belgium
>>>>       >>
>>>>       >
>>  Pharo Consortium Member - http://consortium.pharo.org/
>>>>       >>  Featured on the Software Process and Measurement Cast -
>>>>       >>  http://spamcast.libsyn.com
>>>>       >>  Sparx Systems Enterprise Architect and Ability Engineering
>>>>      EADocX Value
>>>>       >>  Added Reseller
>>>>       >>
>>>>       >>  --
>>>>       >>  You received this message because you are subscribed to the
>>>>      Google Groups
>>>>       >>  "amber-lang" group.
>>>>       >>  To unsubscribe from this group and stop receiving emails from
>>>>      it, send an
>>>>       >>  email to [hidden email]<javascript:>.
>>>>       >>  For more options, visit https://groups.google.com/d/optout
>>>>      <https://groups.google.com/d/optout>.
>>>>       >>
>>>>       >
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "amber-lang" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to amber-lang+unsubscrib
> [hidden email]
>>>> <mailto:[hidden email]>.
>>>> For more options, visit https://groups.google.com/d/optout.
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> email to [hidden email].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.