Closed djbeaumont closed 6 years ago
finding it hard to test "in situ" in tripapp as I guess build is run on pre-publish to npm so can't easily install it from this branch... trying cd ./node_modules/\@holidayextras/ui-toolkit/ && npm run build
from tripapp
I've fixed the build issue and have tested this out locally against tripapp by copying the dist files in place:
npm run build
cd ../tripapp
rm -rf node_modules/@holidayextras/ui-toolkit/dist
cp -R ../ui-toolkit/dist node_modules/@holidayextras/ui-toolkit/
This PR removes a mixin to flatten data attributes as mixins aren't supported in React es2015 classes. A couple of components have also been converted to functional components. There's now just ~4 components plus some documentation to make compatibile with React 16.
To test:
npm run docs
npm run build
script