Datorama React components library
npm install --save @datorama/app-components
import { AppThemeProvider, lightTheme } from '@datorama/app-components';
import { ThemeProvider } from 'styled-components';
const App = () => (
<AppThemeProvider theme={lightTheme} provider={ThemeProvider}>
...
</AppThemeProvider>
);
// CSS
// @import '~@datorama/app-components/index.css';
Clone the repo, install packages and run;
npm run storybook
- Make sure that everything is working, well documented and backward compatible.
- Clean up all the lint issues after running
npm run lint
-
Add your release notes with the future version number to the notes page (src/stories/0_Notes.stories.mdx).
-
In your pull request bump the package version to the updated version you documented in the notes (
minor
,major
orpatch
) by running:
npm version **** [-m "message describing version changes"]
-
Before merging to master, check that you aren't overriding an existing version. If you are - update your branch version and the notes page accordingly.
-
After the pull request is merged to master, checkout to master and run:
npm run build:package
- To publish it to NPM - make sure you're in the root folder and run:
npm publish:package
Alternatively, you can go to the dist folder and run npm publish
.
With the current Rollup loader all images are loaded as components!