diff --git a/.start.sh.swp b/.start.sh.swp new file mode 100644 index 00000000..d5a2240b Binary files /dev/null and b/.start.sh.swp differ diff --git a/forkrun b/forkrun index 84ecb5c0..72b79895 100755 Binary files a/forkrun and b/forkrun differ diff --git a/repo.js b/repo.js new file mode 100644 index 00000000..d54cf738 --- /dev/null +++ b/repo.js @@ -0,0 +1,10 @@ +'use strict' + +const express = require('express') +const app = express() +const port = 8000 + +app.use(express.json()) +app.use(express.static('dist')) + +app.listen(port, () => console.log('listening on', port)) diff --git a/start.sh b/start.sh index f8974e50..b0b6f8ce 100755 --- a/start.sh +++ b/start.sh @@ -1,8 +1,18 @@ # create symlink between aegis-host and aegis vs using npm #export FORKRUN_CMD=/Users/tysonmidboe/.nvm/versions/node/v18.12.0/bin/node -#export FORKRUN_ARG=/Users/tysonmidboe/aegis-app/repo.js -export FORKRUN_CMD=/usr/bin/open -export FORKRUN_ARG=http://localhost +#export FORKRUN_ARG=/Users/tysonmidboe/aegis-app/repo.jsjjj -./forkrun && yarn link && cd ../aegis-host && yarn link @module-federation/aegis && yarn start +nvm install --lts +nvm use --lts + +export FORKRUN_CMD=$NVM_BIN/node +export FORKRUN_ARG=$PWD/repo.js + +gcc forkrun.c -o forkrun +./forkrun +yarn link +cd ../aegis-host +yarn build +yarn link @module-federation/aegis +yarn start