<em>A component library for sharing Elevate Components between each of our projects</em>
<hr/>npm install @elevate_security/elevate-component-library --save
cont Elevate = require('@elevate_security/elevate-component-library')
render() {
return (
<Elevate.Typography.H1>This is the tab content 1</Elevate.Typography.H1>
)
}
npm install
npm run-script storybook
run-script create [component name]
In component library, run: npm link
Take the generated link and import into your parent project like so:
const Elevate = require('/usr/local/lib/node_modules/@elevate_security/elevate-component-library')
const { Logo } = Elevate
In a release branch, use npm version
to bump the version in package.json
, commit and tag altogether.
VERSION=1.0.6
npm version $VERSION
git push origin : "v${VERSION}"
Then create a Pull Request from your release branch to master.