A React powered class for representing content within a card-based keyboard friendly system.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api
src
test
.babelrc
.eslintrc.js
.gitignore
.istanbul.yml
.travis.yml
LICENSE
README.md
content-o-matic.demo.js
content-o-matic.js
gulpfile.js
index.html
jsdoc.json
package.json
webpack.config.js
webpack.config.prod.js

README.md

Content-o-Matic

Travis-CI Build

Installation

Content-o-Matic can be installed using traditional <script> tags, or by using Webpack. In the case of the latter, use:

npm install content-o-matic

And in your scripts:

CoM = require('content-o-matic');

Full documentation is available [doc link pending].

Webpack/Babel plugins required

If you are using Webpack to build JS for the browser, you'll need to have the appropriate transform/loader plugins for parsing JSX installed into your project:

cd /this/repo/location
npm i babel-core babel-plugin-transform-object-rest-spread babel-loader babel-plugin-transform-object-rest-spread babel-preset-es2015 babel-preset-react -D

And adding this to your Webpack config:

module.exports = {
	// ... other configuration ...
	resolve: {
		extensions: ['', '.js', '.jsx']
	},
	module: {
		loaders: [
			{
				test: /\.jsx?$/,
				exclude: /node_modules/,
				loader: 'babel-loader'
			}
		]
	}
};