- Clone the
tgvejs
andapp
repositories to your local machine. Install dependencies in each usingyarn install
. - In
tgvejs
: - run
yarn link
to 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/tgvejs
to symlink to local copy oftgvejs
.
yarn dist
(yarn watch
) will publish (automatically publish) changes todist
.yarn test
will start continuous testing. First, it will reinstall any missingnode_modules
(in particularreact
andreact-dom
, if they have been deleted byyarn start
inapp
; see below).
-
yarn start
will start a development server. First, it will purgereact
andreact-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 test
will asynchronously runyarn start
, wait for the URL to become available, and then run the end-to-end (e2e) tests.