From 62d1e221893e0ebd098ce3e4775912a680bf85cb Mon Sep 17 00:00:00 2001 From: "Ricardo J. Mendez" Date: Sat, 23 Dec 2017 10:50:40 +0100 Subject: [PATCH 1/2] Building on macOS fails if the destination cp path does not exist --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 867b897..0952262 100644 --- a/package.json +++ b/package.json @@ -51,8 +51,8 @@ "test": "mocha", "build": "npm run build:es5 && npm run build:dist && npm run build:examples", "build:examples": "webpack --config conf/webpack.example.config.js --sort-modules-by size", - "build:dist": "webpack --config conf/webpack.config.js --sort-modules-by size && cp dist/orbitdb.min.js examples/browser/lib/orbitdb.min.js", - "build:debug": "webpack --config conf/webpack.debug.config.js --sort-modules-by size && cp dist/orbitdb.js examples/browser/lib/orbitdb.min.js", + "build:dist": "webpack --config conf/webpack.config.js --sort-modules-by size && mkdir -p examples/browser/lib && cp dist/orbitdb.min.js examples/browser/lib/orbitdb.min.js", + "build:debug": "webpack --config conf/webpack.debug.config.js --sort-modules-by size && mkdir -p examples/browser/lib && cp dist/orbitdb.js examples/browser/lib/orbitdb.min.js", "build:es5": "babel src --out-dir ./dist/es5/ --presets babel-preset-es2015 --plugins babel-plugin-transform-runtime" } } From 3b83f602cd87435f2264380ab68c80f8465d532a Mon Sep 17 00:00:00 2001 From: "Ricardo J. Mendez" Date: Sat, 23 Dec 2017 10:55:05 +0100 Subject: [PATCH 2/2] Dependency install notes were missing babel, webpack --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 8a44d71..a45ebbe 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,13 @@ cd orbit-db npm install ``` +You'll also need babel and webpack, if you don't have them installed already: + +``` +npm install --global babel-cli +npm install --global webpack +``` + ### Browser example ```