mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Merge pull request #286 from ricardojmendez/fix/doc-and-examples-update
Fix/doc and examples update
This commit is contained in:
@@ -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
|
||||
|
||||
```
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user