Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Enderfile #69

Closed
devth opened this issue Aug 30, 2011 · 9 comments
Closed

Enderfile #69

devth opened this issue Aug 30, 2011 · 9 comments

Comments

@devth
Copy link

devth commented Aug 30, 2011

I think it'd make more sense to specify packages you want under an Enderfile of some sort, then ender install to satisfy deps. The current node_modules doesn't seem like it should go in my git repo. I'd be happy to take a stab at it.

Also, Enderfile sounds cool.

@ded
Copy link
Member

ded commented Aug 30, 2011

hmmm

@fat
Copy link
Contributor

fat commented Aug 30, 2011

you can do this already with a package.json. Add node_modules to your .gitignore and add something like this https://github.com/ender-js/jeesh to your project root.

@fat fat closed this as completed Aug 30, 2011
@devth
Copy link
Author

devth commented Aug 30, 2011

Cool. This can't support multiple output files in the same project can it? For example, I have a rails 3.1 app that has 3 separate templates which all need their own unique JS deps. I'd like to output 3 ender.js's:

app/assets/javascripts/application/ender.js
app/assets/javascripts/display/ender.js
app/assets/javascripts/mobile/ender.js

@fat
Copy link
Contributor

fat commented Aug 30, 2011

oh, not currently.

@fat fat reopened this Aug 30, 2011
@devth
Copy link
Author

devth commented Aug 30, 2011

Ok, so if I were to implement this idea, would you prefer it to live in package.json or do you like the idea of an Enderfile?

package.json might be limiting (I'm not sure the spec would even support my idea), and I don't intend to actually publish the "package" anywhere. It's just a deps spec for my specific app.

@fat
Copy link
Contributor

fat commented Aug 30, 2011

I'd prefer it to live in a package.json. We've been meaning to extend the ender keyword to support an object syntax. However, I think one possible way to make this work for you would be to make the ender param accept an array as well.... so you would do something like:

ender: [{ output: './public/js/ender-1', dependencies: {...}, { output: './public/js/ender-2', dependencies: {...}, }]

@devth
Copy link
Author

devth commented Aug 30, 2011

Cool. I'll play with this idea (unless you beat me to it).

@fat
Copy link
Contributor

fat commented Aug 30, 2011

Alternatively, with the current ender code you could define multiple packages for your different ender builds and use -o to output them to different locations.

@rvagg
Copy link
Member

rvagg commented May 9, 2012

ref #131

@rvagg rvagg closed this as completed May 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants