Comments (17)
this is one of the reasons we can't really use component for out app right now, do you think this could be implemented soon?
from component.
+1
from component.
yup definitely one of the issues. Our app has regular node modules in ./node_modules and our private ones in ./lib and we use NODE_PATH, but since everything in our ./lib right now are components we'll eventually need to migrate over to component.json and have a similar lookup path mechanism
from component.
+1
from component.
+1
from component.
+1 this is also a big one for me
from component.
in component.json:
{
"path" : ["lib"]
}
this could be called path, private, bundle, internal...
from component.
Right now the Package module in component is depending on superagent, which means it is tied up with HTTP, maybe it can be abstracted away, making Package protocol agnostic, and this feature pretty easy to implement in many ways?
from component.
need some tests still but this sort of idea should work now:
$ COMPONENT_PATH=../components
$ component build
with
"bundled": ["foo", "bar"]
I really want to change bundled
though I dont like that name at all, local
? i dont know
from component.
merveilleux ! merci !
local
does sound better than bundled
...
private
?
from component.
thank you thank you! I like local
.
from component.
hmm if you're running component build
in that app dir COMPONENT_PATH=ui
should be fine
from component.
and then say bundled ["foo", "bar"]
where those are ui/{foo,bar}
from component.
ahh shit, trying to update and accidentally deleted my last post... :-x
anyway, updated:
directory:
/app
/components
/ui (private components)
/inbox
/group-list
component.json
component.json
{
"name" : "app",
"dependencies" : {
"matthewmueller/backbone" : "*"
},
"bundled" : [ "inbox", "group-list" ]
}
terminal:
$ app : echo $COMPONENT_PATH
ui
$ app : DEBUG=* component build
debug info:
component:builder lookup check $PROJECT/app/components/inbox +0ms
component:builder lookup group-list +0ms
component:builder lookup check $PROJECT/app/components/group-list
...
component:builder ignore "inbox" styles +0ms
component:builder ignore "group-list" styles +0ms
from component.
oh one thing about these "ui" components is that they don't follow the naming convention username/repo
, just inbox
and group-list
. Not sure if that would matter here..
from component.
hmm that should be fine still, I only did one quick test, I'll add some real tests later tonight
from component.
okay no problem, thanks man.
from component.
Related Issues (20)
- Can I use non-component based libraries? HOT 4
- component {fork,unfork} <component> HOT 2
- ComponentJS vs JSPM + SystemJS HOT 1
- Can't use Component modules with a RequireJS environment HOT 12
- Private Repo doesn't seem to be working HOT 17
- Getting Uncaught Error: failed to require template HOT 11
- need auth for travis to avoid github rate limit and failed build status
- On chrome debug points off by two lines for --dev builds HOT 2
- Getting Failed to Require message HOT 3
- component.github.io shows no results HOT 1
- fatal : no remote found for dependency '....' HOT 20
- fatal : Error downloading "github//component/[email protected]". Got status code "404" HOT 5
- getting component module to be called with --harmony HOT 4
- fatal : no remote found for dependency... HOT 2
- Follow the chain of paths for remote dependencies HOT 4
- announce "this project is not maintained anymore" HOT 8
- How to install dependencies to a particular folder? HOT 2
- How can a project depend on a github repository that doesn't have a componser.json HOT 2
- Clean up the maintainers list? HOT 2
- Cant require node_modules when componentjs is installed? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from component.