szymonrw / ancient-oak

Immutable data trees in JavaScript.
MIT License
223 stars 11 forks source link

Automatic component.json generation #12

Closed szymonrw closed 10 years ago

szymonrw commented 10 years ago

@jasonkuhrt Could you please review this?

As I know little (close to nothing) about component I've just monkeyed a script that generates the component.json you've (@jasonkuhrt) provided (c9ddbde).

Some things I'm not sure of is for example:

  1. Is it ok to have the main script as lib/index.js instead of a standalone browserified release (dist/ancient-oak-x.x.x.js)?
  2. How do you "publish" component's component? (In case of bower you need to register it for example)
jasonkuhrt commented 10 years ago

Hey @brainshave

Is it ok to have the main script as lib/index.js instead of a standalone browserified release (dist/ancient-oak-x.x.x.js)?

Yup this is ok and the "component way".

How do you "publish" component's component? (In case of bower you need to register it for example)

There is no publish step because Github is used as the "central registry". The only step we should take after is run component crawl brainshave which will index all your components so that they are searchable under component search ... etc. But the main point is that with component.json in the repo this will work: component install brainshave/ancient-oak.

szymonrw commented 10 years ago

Just caught myself on thinking these are the same: http://componentjs.com and https://github.com/component/component . Obviously they're not. Confusing!

jasonkuhrt commented 10 years ago

Haha yeah, not the same.

There used to be http://component.io but that has since gone down https://github.com/component/component/issues/587. A community member did whip up http://component.xmojmr.cz/ though (pretty rough aesthetics...). I prefer component search though.