From 0ac5a9ad824e69b6bb106c8d8727d2d3060c3126 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 19 May 2018 14:53:22 +0100 Subject: [PATCH] Promote nw.js details to main installation docs - see 6e51f2d --- docs/install.md | 12 ++++++++++++ docs/rebuild from NW.js.md | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 docs/rebuild from NW.js.md diff --git a/docs/install.md b/docs/install.md index 1463e103..a47d693b 100644 --- a/docs/install.md +++ b/docs/install.md @@ -161,6 +161,18 @@ Set the Lambda runtime to Node.js 6.10. To get the best performance select the largest memory available. A 1536 MB function provides ~12x more CPU time than a 128 MB function. +### NW.js + +Run the `nw-gyp` tool after installation. + +```sh +cd node-modules/sharp +nw-gyp rebuild --arch=x64 --target=[your nw version] +node node_modules/sharp/install/dll-copy +``` + +See also http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/ + ### Build tools * [gulp-responsive](https://www.npmjs.com/package/gulp-responsive) diff --git a/docs/rebuild from NW.js.md b/docs/rebuild from NW.js.md deleted file mode 100644 index a82da3f2..00000000 --- a/docs/rebuild from NW.js.md +++ /dev/null @@ -1,8 +0,0 @@ -# Rebuild -* after installing the Sharp module with CLI cd into the `node-modules/sharp` -* rebuild `nw-gyp rebuild --target=[your nw version] --arch=[x64,ia32]`without brackets, [for more details](http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/) -* run `node node_modules\sharp\install\dll-copy` -## Prerequisites -* node -* nw-gyp -* sharp