- Clone the
tgvejsandapprepositories to your local machine. Install dependencies in each usingyarn install. - In
tgvejs: - run
yarn linkto register local copy of@tgve/tgvejs. If you get a warning "There's already a package called '@tgve/tgvejs' registered", you can probably ignore it. - Run at least one build (see below) to populate
dist. - In
app, runyarn link @tgve/tgvejsto symlink to local copy oftgvejs.
yarn dist(yarn watch) will publish (automatically publish) changes todist.yarn testwill start continuous testing. First, it will reinstall any missingnode_modules(in particularreactandreact-dom, if they have been deleted byyarn startinapp; see below).
-
yarn startwill start a development server. First, it will purgereactandreact-dom(by deleting them fromnode_modules) in the locally linked@tgve/tgvejs, which will have them installed by default as dev dependencies. This avoids the more than one copy of React in the same app problem. -
yarn testwill asynchronously runyarn start, wait for the URL to become available, and then run the end-to-end (e2e) tests.