MarshallCB / ucontent-components

Demonstration of external / internal components with ucontent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Steps to reproduce issue

  1. Initialize /external-component and link to local package external-component
cd external-component && npm link && cd ..
  1. Initialize /site, link to external-component package, start server
cd site && npm i && npm link external-component && npm run dev

Results (remote ucontent module)

Demo

/external-component/index.js and /site/internal-component.js contain the same component code, yet only the internal component works as expected.


  1. Return to the root directory. Clone ucontent source and link to npm
cd .. && git clone git@github.com:WebReflection/ucontent.git && cd ucontent && npm link && cd ..
  1. Link /external-component and /site to local ucontent
cd external-component && npm link ucontent && cd ../site && npm link ucontent
  1. Start server
npm run dev

Results (local ucontent module)

Demo Both external component and internal component work now

About

Demonstration of external / internal components with ucontent


Languages

Language:JavaScript 71.2%Language:HTML 28.8%