For larger rust projects it's common to put all rust code in a directory called `crates`. This helps in general by reducing the number of directories in the top level but it's particularly helpful for us because some directories _do not_ contain Rust code. In particular `automerge-js`. Move rust code into `/crates` to make the repo easier to navigate.
13 lines
450 B
Text
Executable file
13 lines
450 B
Text
Executable file
set -e
|
|
|
|
THIS_SCRIPT=$(dirname "$0");
|
|
WASM_PROJECT=$THIS_SCRIPT/../../crates/automerge-wasm;
|
|
JS_PROJECT=$THIS_SCRIPT/../../automerge-js;
|
|
E2E_PROJECT=$THIS_SCRIPT/../../automerge-js/e2e;
|
|
|
|
yarn --cwd $E2E_PROJECT install;
|
|
# This will build the automerge-wasm project, publish it to a local NPM
|
|
# repository, then run `yarn build` in the `automerge-js` directory with
|
|
# the local registry
|
|
yarn --cwd $E2E_PROJECT e2e buildjs;
|
|
yarn --cwd $JS_PROJECT test
|