Home

Awesome

npm-Component

This project aims to make all 1700+ (and counting) modules in Component available to npm/browserify users - without the intervention of any of the modules' authors.

How?

Each component from the Component registry is mirrored in a separate Github repo - which is modified to work properly in the context of npm/browserify.

For example, to install component/dialog via npm, you'd do:

npm install npmcomponent/component-dialog

In general, component install <username>/<repo> is mapped to npm install npmcomponent/<username>-<repo>.

npmcomponent is a just a Github user, it could also have been an organization.

What are the scripts in here?

The main scripts of interest are

All scripts assume the existence of credentials.json which contains the "username" and "password" for the npmcomponent account, which are, of course, secret. You could run the scripts to create mirrors under your own user though if you wanted to. The other scripts in the bin directory are used for quick/interactive testing.

How often do you run these scripts?

The plan is to setup a cron job on some machine to run them every hour or every 15 minutes. But, currently I run the scripts every day or so manually - very ghetto, I know. It takes about a minute each time I run it.

Todo/Yet to be done