Skip to content

Commit

Permalink
update to react 15.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Gunnarsson committed Jul 5, 2016
1 parent e9c6371 commit a03872f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
const fs = require('fs')
const render = require('./index.js')
const path = require('path')
const pkg = require('./package.json');

if(process.argv[2] === '-v'){
console.log('version', pkg.version)
return;
}

if(typeof process.argv[2] === 'undefined'){
console.log('no file')
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-node-render",
"version": "0.0.5",
"version": "0.0.6",
"description": "Simply render React components in Node.js",
"url": "https://github.com/morgondag/react-node-render",
"main": "index.js",
Expand All @@ -21,8 +21,8 @@
"babel-core": "6.7.2",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"react": "0.14.7",
"react-dom": "0.14.7"
"react": "15.1.0",
"react-dom": "15.1.0"
},
"keywords": [
"jrnl",
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('render() should work!', () => {
})

it('render jsx file should return with react-ids', () => {
assert.equal(render('./test/test-component.jsx').indexOf('data-reactid='), 5)
assert.equal(render('./test/test-component.jsx').indexOf('data-reactid='), 23)
})

it('render with options && isStatic should return expected html', () => {
Expand Down

0 comments on commit a03872f

Please sign in to comment.