super-react
Advanced tools
Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "super-react", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Opinionated Command Line Tool for Scaffolding out Nested React Components Into Files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -41,3 +41,3 @@ #Super React | ||
```javascript | ||
import React, {propTypes, Component} from 'react'; | ||
import React, {PropTypes, Component} from 'react'; | ||
import Description from './components/Description' | ||
@@ -86,24 +86,21 @@ import ListContainer from './components/ListContainer' | ||
```javascript | ||
import React from 'react'; | ||
import Description from './Description.jsx' | ||
import ListContainer from './ListContainer.jsx' | ||
import React, {PropTypes} from 'react'; | ||
import Description from './components/Description'; | ||
import ListContainer from './components/ListContainer'; | ||
let App = React.createClass({ | ||
mixins : [], | ||
const App = React.createClass({ | ||
propTypes: { | ||
}, | ||
render() { | ||
var styles = {}; | ||
const styles = {}; | ||
return ( | ||
<div> | ||
<Description /> | ||
<ListContainer /> | ||
<Description /> | ||
<ListContainer /> | ||
</div> | ||
); | ||
} | ||
}); | ||
}); | ||
export default App; | ||
@@ -191,2 +188,3 @@ ``` | ||
##Changelog | ||
* v0.9.1 Fix propTypes to PropTypes in import and fix documentation | ||
* v0.9.0 Simplified API and output ES6 by default. Added folder scaffolding. | ||
@@ -193,0 +191,0 @@ * v0.2.0 Added --es6 and --ext flags |
@@ -1,2 +0,2 @@ | ||
import React, {propTypes, Component} from 'react'; | ||
import React, {PropTypes, Component} from 'react'; | ||
<% deps.forEach(function (dep, index) { %>import <%= names[index] %> from './<%= dep %><%= ext %>'; | ||
@@ -3,0 +3,0 @@ <% }); %> |
@@ -1,2 +0,2 @@ | ||
import React, {propTypes} from 'react'; | ||
import React, {PropTypes} from 'react'; | ||
<% deps.forEach(function (dep, index) { %>import <%= names[index] %> from './<%= dep %><%= ext %>'; | ||
@@ -3,0 +3,0 @@ <% }); %> |
12725
11
326
196