docs(README): reorganize
This commit is contained in:
parent
7a2604a7ae
commit
8c32e2d238
45
README.md
45
README.md
|
@ -1,4 +1,4 @@
|
||||||
> The project is still in an early stage. Documentation may be missing and examples may be broken.
|
> The project is still in an early stage. Documentation may be missing and [examples](https://github.com/bpmn-io/bpmn-js-examples) may be broken.
|
||||||
|
|
||||||
# bpmn-js - BPMN 2.0 for the web
|
# bpmn-js - BPMN 2.0 for the web
|
||||||
|
|
||||||
|
@ -33,20 +33,27 @@ viewer.importXML(xml, function(err) {
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Install bpmn-js
|
## Installation
|
||||||
|
|
||||||
### via bower
|
Fetch [bpmn-js prebuilt](https://github.com/bpmn-io/bower-bpmn-js) or install it via [npm](https://www.npmjs.com/package/bpmn-js).
|
||||||
|
|
||||||
|
|
||||||
|
#### Fetch Prebuilt
|
||||||
|
|
||||||
|
The [bower-bpmn-js](https://github.com/bpmn-io/bower-bpmn-js) repository contains pre-built bundles of bpmn-js.
|
||||||
|
|
||||||
|
Download them directly _or_ fetch them with [Bower](http://bower.io/):
|
||||||
|
|
||||||
```
|
```
|
||||||
bower install bpmn-js
|
bower install bpmn-js
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure to include the library + all dependencies into the website.
|
Checkout the [example project](https://github.com/bpmn-io/bpmn-js-examples/tree/master/simple-bower) to get started.
|
||||||
|
|
||||||
Checkout an [example project](https://github.com/bpmn-io/bpmn-js-examples/tree/master/simple-bower) that shows how to use the library in web applications.
|
|
||||||
|
|
||||||
|
|
||||||
### via npm
|
#### Install via npm
|
||||||
|
|
||||||
|
Fetch the library via npm to get fine grained access to the parts you need:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install --save bpmn-js
|
npm install --save bpmn-js
|
||||||
|
@ -54,7 +61,7 @@ npm install --save bpmn-js
|
||||||
|
|
||||||
Make sure you use [browserify](http://browserify.org) or the like to bundle your project and bpmn-js for the browser.
|
Make sure you use [browserify](http://browserify.org) or the like to bundle your project and bpmn-js for the browser.
|
||||||
|
|
||||||
Checkout an [example project](https://github.com/bpmn-io/bpmn-js-examples/tree/master/simple-commonjs) that shows how to use bpmn-js in node-style web applications.
|
Checkout the [example project](https://github.com/bpmn-io/bpmn-js-examples/tree/master/simple-commonjs) to learn more.
|
||||||
|
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
@ -65,19 +72,27 @@ Checkout an [example project](https://github.com/bpmn-io/bpmn-js-examples/tree/m
|
||||||
* [Forum](https://forum.bpmn.io)
|
* [Forum](https://forum.bpmn.io)
|
||||||
|
|
||||||
|
|
||||||
## Tools
|
## Building the Project
|
||||||
|
|
||||||
bpmn-js builds on top of a few additional powerful tools
|
Perform the following steps to build the library, including running all tests:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd bpmn-js
|
||||||
|
npm install
|
||||||
|
grunt
|
||||||
|
```
|
||||||
|
|
||||||
|
When building the latest development snapshot you may need to perform [additional project setup](https://github.com/bpmn-io/bpmn-js/blob/master/docs/project/SETUP.md).
|
||||||
|
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
bpmn-js builds on top of a few additional powerful tools:
|
||||||
|
|
||||||
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): Read / write support for BPMN 2.0 XML in the browsers
|
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): Read / write support for BPMN 2.0 XML in the browsers
|
||||||
* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
|
* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
|
||||||
|
|
||||||
|
|
||||||
## Building the Project
|
|
||||||
|
|
||||||
As long as the project is in alpha stage, you must make sure you setup the whole development environment, including a number of [project dependencies](https://github.com/bpmn-io) according to [our development setup](https://github.com/bpmn-io/bpmn-js/blob/master/docs/project/SETUP.md).
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Use under the terms of the [bpmn.io license](http://bpmn.io/license).
|
Use under the terms of the [bpmn.io license](http://bpmn.io/license).
|
||||||
|
|
Loading…
Reference in New Issue