Skip to content

Commit

Permalink
Expose version
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Feb 11, 2016
1 parent 3a097cd commit 9a49660
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ in `demo/`. To run the demo:

#### Releasing

* update version constant in `src/js/version.js`
* `npm version patch` or `minor` or `major`
* `npm run update-changelog`
* `npm run build`
Expand Down
4 changes: 3 additions & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import Editor from './editor/editor';
import ImageCard from './cards/image';
import Range from './utils/cursor/range';
import Error from './utils/mobiledoc-error';
import VERSION from './version';

const Mobiledoc = {
Editor,
ImageCard,
Range,
Error
Error,
VERSION
};

export function registerGlobal(global) {
Expand Down
1 change: 1 addition & 0 deletions src/js/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default '0.8.4';

0 comments on commit 9a49660

Please sign in to comment.