Purpose of this project is to explore whether building/releasing and dependency management within the IFC.js projects can be made easier by maintaining them as a monorepo managed with lerna.
npx lerna bootstrap
npx lerna run build
This will not work if your system does not meet the Prerequisites (below).
- Python
- clone Emscripten as described in installation docs into a folder we will refer to as
<clone-dir>
. - Windows:
- add the emsdk and the
<clone-dir>/emsdk/upstream/emscripten
folder to your PATH variable - navigate to
<clone-dir>/emsdk/upstream/emscripten
and runpython emcc.py --generate-config
(creates theemsdk/upstream/emscripten/.emscripten
config file) - in the config file
<clone-dir>/emsdk/upstream/emscripten/.emscripten
, make these changes:LLVM_ROOT = '<clone-dir>/emsdk/upstream/bin'
BINARYEN_ROOT = '<clone-dir>/emsdk/upstream'
(note the missing/bin
at the end)
- add the emsdk and the