diff --git a/.npmignore b/.npmignore
index 2de1b2c..981eee8 100644
--- a/.npmignore
+++ b/.npmignore
@@ -9,7 +9,7 @@ npm-debug.log*
coverage
# tests
-__tests__
+test
# settings
.vscode
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..c4a511c
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,37 @@
+# Change Log
+
+## [v1.0.0](https://github.com/hckhanh/react-tree-es6/tree/v1.0.0)
+
+[Full Changelog](https://github.com/hckhanh/react-tree-es6/compare/v0.1.2...v1.0.0)
+
+**Implemented enhancements:**
+
+- Add core property [\#20](https://github.com/hckhanh/react-tree-es6/issues/20)
+- Add Codecov service [\#15](https://github.com/hckhanh/react-tree-es6/issues/15)
+- Add test coverage \(\#15\) [\#19](https://github.com/hckhanh/react-tree-es6/pull/19) ([hckhanh](https://github.com/hckhanh))
+
+## [v0.1.2](https://github.com/hckhanh/react-tree-es6/tree/v0.1.2) (2016-08-14)
+[Full Changelog](https://github.com/hckhanh/react-tree-es6/compare/v0.1.1...v0.1.2)
+
+**Implemented enhancements:**
+
+- Setup NPM for publishing [\#13](https://github.com/hckhanh/react-tree-es6/issues/13)
+- Remove css from ReactTree [\#12](https://github.com/hckhanh/react-tree-es6/issues/12)
+- Backward compatible to ES5 [\#11](https://github.com/hckhanh/react-tree-es6/issues/11)
+- Write tests for component [\#10](https://github.com/hckhanh/react-tree-es6/issues/10)
+- Create README file [\#5](https://github.com/hckhanh/react-tree-es6/issues/5)
+- Create onChanged event [\#3](https://github.com/hckhanh/react-tree-es6/issues/3)
+- Add JSON data to ReactTree [\#2](https://github.com/hckhanh/react-tree-es6/issues/2)
+- Add jstree plugin [\#1](https://github.com/hckhanh/react-tree-es6/issues/1)
+- Add README and update version to v0.1.0 [\#16](https://github.com/hckhanh/react-tree-es6/pull/16) ([hckhanh](https://github.com/hckhanh))
+- Add JsTree plugin [\#14](https://github.com/hckhanh/react-tree-es6/pull/14) ([hckhanh](https://github.com/hckhanh))
+
+**Fixed bugs:**
+
+- Fix Travis script to publish to NPM [\#18](https://github.com/hckhanh/react-tree-es6/pull/18) ([hckhanh](https://github.com/hckhanh))
+- Add email to Travis script [\#17](https://github.com/hckhanh/react-tree-es6/pull/17) ([hckhanh](https://github.com/hckhanh))
+
+## [v0.1.1](https://github.com/hckhanh/react-tree-es6/tree/v0.1.1) (2016-08-14)
+[Full Changelog](https://github.com/hckhanh/react-tree-es6/compare/v0.1.0...v0.1.1)
+
+## [v0.1.0](https://github.com/hckhanh/react-tree-es6/tree/v0.1.0) (2016-08-14)
diff --git a/README.md b/README.md
index 0b31b13..05e8069 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ The wrapper of jsTree (jstree.com) for React
## Getting Started
If you want to find a **tree view** component for React, this module is what you need.
-It supports **ES6** and backward compatible with **ES5**.
+**It supports ES6 and backward compatible with ES5.**
## Installation
@@ -26,27 +26,33 @@ import/require `ReactTree` to your React source code:
import ReactTree from 'react-tree-es6';
```
-### tree
+### core
-**tree** is the node object or and array of node object. This is an example of data of a node:
+`core` is the jsTree object contains basic data and configurations of the tree.
+This is an example of `core` object:
```js
{
- text: 'Root node 2',
- state: {
- opened: true,
- selected: true
- },
- children: [
+ data: [ // data can be an array or object.
+ 'Simple root node',
{
- text: 'Child 1'
- },
- 'Child 2'
+ text: 'Root node 2',
+ state: {
+ opened: true,
+ selected: true
+ },
+ children: [
+ {
+ text: 'Child 1'
+ },
+ 'Child 2'
+ ]
+ }
]
}
```
-Here is the full structure of a node:
+As you know, a tree has one or many nodes, here is the full structure of a node:
```js
// Alternative format of the node (id & parent are required)
@@ -65,54 +71,60 @@ Here is the full structure of a node:
}
```
-You can define a tree and then parse it to `tree` property:
+You can define a `core` object and then parse it to `core` property:
```js
-const TREE = [
- 'Simple root node',
- {
- text: 'Root node 2',
- state: {
- opened: true,
- selected: true
- },
- children: [
- {
- text: 'Child 1'
+const CORE = {
+ data: [
+ 'Simple root node',
+ {
+ text: 'Root node 2',
+ state: {
+ opened: true,
+ selected: true
},
- 'Child 2'
- ]
- }
-];
+ children: [
+ {
+ text: 'Child 1'
+ },
+ 'Child 2'
+ ]
+ }
+ ]
+};
class ExampleApp extends React.Component {
render() {
- return (