Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gakimball committed Sep 22, 2016
0 parents commit 47ad8c6
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["latest", "react"]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules
npm-debug.log
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-inky

> React components for Inky
## License

MIT © [Geoff Kimball](http://geoffkimball.com)
38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "react-inky",
"version": "1.0.0",
"description": "React components for Inky",
"main": "index.js",
"scripts": {
"test": "mocha --compilers js:babel-register \"src/**/__tests__/*.js\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/gakimball/react-inky.git"
},
"keywords": [
"react",
"inky",
"email"
],
"author": "Geoff Kimball <[email protected]> (http://geoffkimball.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/gakimball/react-inky/issues"
},
"homepage": "https://github.com/gakimball/react-inky#readme",
"dependencies": {
"react": "^15.3.2"
},
"devDependencies": {
"babel-preset-latest": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-register": "^6.14.0",
"chai": "^3.5.0",
"chai-enzyme": "^0.5.1",
"enzyme": "^2.4.1",
"mocha": "^3.0.2",
"react-dom": "^15.3.2",
"react-server": "^0.4.7"
}
}
4 changes: 4 additions & 0 deletions src/__tests__/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const chai = require('chai');
const chaiEnzyme = require('chai-enzyme');

chai.use(chaiEnzyme);
13 changes: 13 additions & 0 deletions src/components/Container.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';

export default function Container(props) {
return (
<table align="center" className="container">
<tbody>
<tr>
<td>{props.children}</td>
</tr>
</tbody>
</table>
);
}
11 changes: 11 additions & 0 deletions src/components/__tests__/Container.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import Container from '../Container';

describe('<Container />', () => {
it('renders a table', () => {
const wrapper = shallow(<Container />);
expect(wrapper.find('table')).to.have.lengthOf(1);
});
});
Empty file added src/index.js
Empty file.

0 comments on commit 47ad8c6

Please sign in to comment.