This is a (very) simple app to get the bloc-data npm module working. A tour:
index.js
- just imports bloc-datawebpack.config.js
- runwebpack --config webpack.config.js
out.js
- webpack's generated outputindex.html
open this page in your browser to test theout.js
file
The goal is to give any app the ability to import and use our frontend data models, contained in the bloc-data npm package.
- Clone the
bloc-data
repo:git clone git@github.com:Bloc/bloc-data.git
- Add as a dependency in this repository in
package.json
:
...
'bloc-data': 'file:../bloc-data',
...
npm install
- Figure out a way to get
import { Charge } from 'bloc-data';
functionality working in this fake-data repository (inindex.js
).