@real-system/core
v0.0.71
Published
Contains all the packages from Real System.
Downloads
24
Readme
Installation
Installation
# npm
$ npm install --save @real-system/core react react-dom
# yarn
$ yarn add @real-system/core react react-dom
Code Example
import { RealSystemProvider } from '@real-system/core/theme-library';
import { Box } from '@real-system/core/box-primitive';
import { Button } from '@real-system/core/button';
const MyComponent = () => {
return (
<RealSystemProvider>
<Box>
<Button>Button</Button>
</Box>
</RealSystemProvider>
);
};
How bundling works
Build Procedure (see prebuild
and build
npm scripts)
- Fetch all the packages with yarn workspaces
- Filter out all packages that aren't productionized or not in core
packageJson.status === 'production'
- Update core's package.json dependencies
- Generate
- core index bundle
- unbarreled export bundles
- core's .gitignore to include unbarreled exprots
- each package's package.json