linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 83 forks source link

Will lineman allow me to hook a command line direct instead of through grunt? #333

Closed peterheard01 closed 9 years ago

peterheard01 commented 9 years ago

Hi, I tried for an hour or two to get this working.

I have a task which is invoked by...

lineman grunt spec-int

And it all works lovely. But I want to be able to just do...

lineman spec-int

Is there an extensibility point here because when I wrote a module it didn't work :-(

The other thing is I would like to include my new command as part of lineman spec-ci command is this possible?

searls commented 9 years ago

No, there is no way to write root-level lineman commands or override default ones.

On Tue, Nov 11, 2014 at 6:37 AM, Pete Heard notifications@github.com wrote:

Hi, I tried for an hour or two to get this working. I have a task which is invoked by... lineman grunt spec-int And it all works lovely. But I want to be able to just do... lineman spec-int Is there an extensibility point here because when I wrote a module it didn't work :-(

The other thing is I would like to include my new command as part of lineman spec-ci command is this possible?

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333

peterheard01 commented 9 years ago

would it be a useful feature?

Pete Heard peter_heard01@hotmail.com 07889812612 skype : peter_heard01

On 11 Nov 2014, at 14:16, Justin Searls notifications@github.com wrote:

No, there is no way to write root-level lineman commands or override default ones.

On Tue, Nov 11, 2014 at 6:37 AM, Pete Heard notifications@github.com wrote:

Hi, I tried for an hour or two to get this working. I have a task which is invoked by... lineman grunt spec-int And it all works lovely. But I want to be able to just do... lineman spec-int Is there an extensibility point here because when I wrote a module it didn't work :-(

The other thing is I would like to include my new command as part of lineman spec-ci command is this possible?

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333 — Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/333#issuecomment-62552070.

searls commented 9 years ago

We've discussed it but it'd create a few problems (how to handle conflicts when two plugins are loaded trying to define the same thing). It's pretty low priority IMO since it's mostly cosmetic.

On Tue, Nov 11, 2014 at 9:19 AM, Pete Heard notifications@github.com wrote:

would it be a useful feature? Pete Heard peter_heard01@hotmail.com 07889812612 skype : peter_heard01

On 11 Nov 2014, at 14:16, Justin Searls notifications@github.com wrote:

No, there is no way to write root-level lineman commands or override default ones.

On Tue, Nov 11, 2014 at 6:37 AM, Pete Heard notifications@github.com wrote:

Hi, I tried for an hour or two to get this working. I have a task which is invoked by... lineman grunt spec-int And it all works lovely. But I want to be able to just do... lineman spec-int Is there an extensibility point here because when I wrote a module it didn't work :-(

The other thing is I would like to include my new command as part of lineman spec-ci command is this possible?

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333 — Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/333#issuecomment-62552070.


Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333#issuecomment-62552409

peterheard01 commented 9 years ago

is there a backlog?

Pete Heard peter_heard01@hotmail.com 07889812612 skype : peter_heard01

On 11 Nov 2014, at 14:20, Justin Searls notifications@github.com wrote:

We've discussed it but it'd create a few problems (how to handle conflicts when two plugins are loaded trying to define the same thing). It's pretty low priority IMO since it's mostly cosmetic.

On Tue, Nov 11, 2014 at 9:19 AM, Pete Heard notifications@github.com wrote:

would it be a useful feature? Pete Heard peter_heard01@hotmail.com 07889812612 skype : peter_heard01

On 11 Nov 2014, at 14:16, Justin Searls notifications@github.com wrote:

No, there is no way to write root-level lineman commands or override default ones.

On Tue, Nov 11, 2014 at 6:37 AM, Pete Heard notifications@github.com wrote:

Hi, I tried for an hour or two to get this working. I have a task which is invoked by... lineman grunt spec-int And it all works lovely. But I want to be able to just do... lineman spec-int Is there an extensibility point here because when I wrote a module it didn't work :-(

The other thing is I would like to include my new command as part of lineman spec-ci command is this possible?

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333 — Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/333#issuecomment-62552070.


Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333#issuecomment-62552409 — Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/333#issuecomment-62552572.

searls commented 9 years ago

Not well managed. http://waffle.io/linemanjs/lineman

On Tue, Nov 11, 2014 at 9:23 AM, Pete Heard notifications@github.com wrote:

is there a backlog? Pete Heard peter_heard01@hotmail.com 07889812612 skype : peter_heard01

On 11 Nov 2014, at 14:20, Justin Searls notifications@github.com wrote:

We've discussed it but it'd create a few problems (how to handle conflicts when two plugins are loaded trying to define the same thing). It's pretty low priority IMO since it's mostly cosmetic.

On Tue, Nov 11, 2014 at 9:19 AM, Pete Heard notifications@github.com wrote:

would it be a useful feature? Pete Heard peter_heard01@hotmail.com 07889812612 skype : peter_heard01

On 11 Nov 2014, at 14:16, Justin Searls notifications@github.com wrote:

No, there is no way to write root-level lineman commands or override default ones.

On Tue, Nov 11, 2014 at 6:37 AM, Pete Heard notifications@github.com wrote:

Hi, I tried for an hour or two to get this working. I have a task which is invoked by... lineman grunt spec-int And it all works lovely. But I want to be able to just do... lineman spec-int Is there an extensibility point here because when I wrote a module it didn't work :-(

The other thing is I would like to include my new command as part of lineman spec-ci command is this possible?

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333 — Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/333#issuecomment-62552070.


Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333#issuecomment-62552409 — Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/333#issuecomment-62552572.


Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/333#issuecomment-62553018

felippenardi commented 9 years ago

This doesn't seem a problem — agree with searls that it is just cosmetics.

I'm interesting though in understanding how to create custom tasks on a lineman environment, can you show it @peterheard01 ?

davemo commented 9 years ago

@felippenardi you can just add tasks to the tasks folder within a lineman project, they will be automatically loaded by grunt and can be configured within config/application.{js,coffee}, here's an example from something I'm working on:

https://github.com/davemo/practical-angularjs/blob/bceb5457b124af97e4d353b18ce46954aabb94d9/codemash/start/tasks/preload_angular_data.coffee

felippenardi commented 9 years ago

Super! Thanks @davemo :)

peterheard01 commented 9 years ago

http://www.urlhelper.co.uk/create-task-lineman-js/ http://www.urlhelper.co.uk/create-task-lineman-js/

:-)

On 14 Jan 2015, at 16:09, Felippe Nardi notifications@github.com wrote:

Super! Thanks @davemo https://github.com/davemo :)

— Reply to this email directly or view it on GitHub https://github.com/linemanjs/lineman/issues/333#issuecomment-69940243.

felippenardi commented 9 years ago

@peterheard01 wow! You didn't need to create an entire blog post for me! just kidding, thanks a lot :)