Code Monkey home page Code Monkey logo

Comments (17)

athibaud avatar athibaud commented on August 15, 2024

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.

buschtoens avatar buschtoens commented on August 15, 2024

+1

from component.

tj avatar tj commented on August 15, 2024

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.

nickjackson avatar nickjackson commented on August 15, 2024

+1

from component.

juliangruber avatar juliangruber commented on August 15, 2024

+1

from component.

matthewmueller avatar matthewmueller commented on August 15, 2024

+1 this is also a big one for me

from component.

juliangruber avatar juliangruber commented on August 15, 2024

in component.json:

{
  "path" : ["lib"]
}

this could be called path, private, bundle, internal...

from component.

tomerdmnt avatar tomerdmnt commented on August 15, 2024

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.

tj avatar tj commented on August 15, 2024

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.

athibaud avatar athibaud commented on August 15, 2024

merveilleux ! merci !
local does sound better than bundled...
private?

from component.

matthewmueller avatar matthewmueller commented on August 15, 2024

thank you thank you! I like local.

from component.

tj avatar tj commented on August 15, 2024

hmm if you're running component build in that app dir COMPONENT_PATH=ui should be fine

from component.

tj avatar tj commented on August 15, 2024

and then say bundled ["foo", "bar"] where those are ui/{foo,bar}

from component.

matthewmueller avatar matthewmueller commented on August 15, 2024

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.

matthewmueller avatar matthewmueller commented on August 15, 2024

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.

tj avatar tj commented on August 15, 2024

hmm that should be fine still, I only did one quick test, I'll add some real tests later tonight

from component.

matthewmueller avatar matthewmueller commented on August 15, 2024

okay no problem, thanks man.

from component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.