From 94e0f0117c4e3793c804506d4f592673f9155fe8 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 18 Mar 2015 08:56:54 +0100 Subject: [PATCH 1/2] Extended description of custom builds --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f50aba7..4496887 100644 --- a/README.md +++ b/README.md @@ -110,11 +110,15 @@ jsoneditor: - Install dependencies: - npm install + ``` + npm install + ``` - Build JSON Editor: - npm run build + ``` + npm run build + ``` This will generate the files `./jsoneditor.js`, `./jsoneditor.css`, and minified versions in the root of the project. @@ -122,8 +126,11 @@ jsoneditor: ## Custom builds -The source code of JSONEditor consists of CommonJS modules. To create a custom -bundle of the source code, [browserify](http://browserify.org/) can be used: +The source code of JSONEditor consists of CommonJS modules. JSONEditor can be bundled in a customized way using a module bundler like [browserify](http://browserify.org/) or [webpack](http://webpack.github.io/). First, install all dependencies of jsoneditor: + + npm install + +To create a custom bundle of the source code, [browserify](http://browserify.org/) can be used: browserify ./index.js -o ./jsoneditor.custom.js -s JSONEditor From 1078e016dfa543165f5f1b8d55d00ad8b945ae0b Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 18 Mar 2015 08:57:33 +0100 Subject: [PATCH 2/2] Updated description of custom builds --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4496887..cd71c3a 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ The source code of JSONEditor consists of CommonJS modules. JSONEditor can be bu npm install -To create a custom bundle of the source code, [browserify](http://browserify.org/) can be used: +To create a custom bundle of the source code using browserify: browserify ./index.js -o ./jsoneditor.custom.js -s JSONEditor