content-o-matic
v0.0.2
Published
A React powered class for representing content within a card-based keyboard friendly system.
Downloads
1
Readme
Note: This is a work in progress module - please do not install it anywhere!
Content-o-Matic
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'
}
]
}
};