diff --git a/docs/install.md b/docs/install.md index dbdf5e0d0..330c28633 100644 --- a/docs/install.md +++ b/docs/install.md @@ -70,6 +70,8 @@ Build foundkey with the following: `NODE_ENV=production yarn build` +If your system has at least 4GB of RAM, run `NODE_ENV=production yarn build-parallel` to speed up build times. + If you're still encountering errors about some modules, use node-gyp: 1. `npx node-gyp configure` @@ -182,6 +184,7 @@ Use git to pull in the latest changes and rerun the build and migration commands git pull git submodule update --init yarn install +# Use build-parallel if your system has 4GB or more RAM and want faster builds NODE_ENV=production yarn build yarn migrate ``` diff --git a/package.json b/package.json index 4f47f3bf0..659ba2897 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "packages/*" ], "scripts": { - "build": "yarn workspaces foreach --parallel --topological run build && yarn run gulp", + "build": "yarn workspaces foreach --topological run build && yarn run gulp", + "build-parallel": "yarn workspaces foreach --parallel --topological run build && yarn run gulp", "start": "yarn workspace backend run start", "start:test": "yarn workspace backend run start:test", "init": "yarn migrate",