Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    component-linkpublic

    component-link

    Local package linking for component

    Installation

    $ npm install -g component-link

    NOTE You'll need component installed before executing any commands

    $ npm install -g component

    Usage

    component-link functions similarly to npm link.

    Register a package globally

    First we need to tell component-link where to resolve a component.

    pwd
    ~/components/my-awesome-component
     
    $ component link
     
            link : CamShaft/my-awesome-component
        complete : /usr/local/lib/node_modules/component-link/.registry/CamShaft-my-awesome-component
     

    Linking a registered component

    Now we can link the registered package into another

    pwd
    ~/projects/my-app
     
    $ component link CamShaft/my-awesome-component
     
            link : CamShaft/my-awesome-component
        complete : /usr/local/lib/node_modules/component-link/.registry/CamShaft-my-awesome-component -> CamShaft-my-awesome-component
     

    Keywords

    none

    install

    npm i component-link

    Downloadsweekly downloads

    1

    version

    0.1.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar