test-components-bundle
v0.0.46
Published
1. have npm (yarn) and npx installed (since npm version 5.2.0 npx is pre-bundled with npm) 2. npm i / yarn install 3. `npm run storybook` / `yarn storybook` - to run storybook dev env / `npm run build` / `yarn build` - to build components bundle
Downloads
15
Readme
to run project
- have npm (yarn) and npx installed (since npm version 5.2.0 npx is pre-bundled with npm)
- npm i / yarn install
npm run storybook
/yarn storybook
- to run storybook dev env /npm run build
/yarn build
- to build components bundle
To test lib in local repository:
cd <components-bundle>
npm run build
oryarn build
cd <your project>
- import lib from local repo
npm install --save ../path/to/components-bundle
oryarn add ../path/to/components-bundle
- you'll get smth like this:
{
"name": "bundle",
"dependencies": {
"ui-components": "link:../path/to/ui-components"
}
}
but most likely you'll meet dependency conflict
- use components in your project
THE OTHER WAY is to import .tgz to your project, which is always generated during build This way should be preferable, because it doesn't contain node_modules folder, which eliminates package version collision
{
"name": "bundle",
"dependencies": {
"ui-components": "file:../<your bundle location>/components-bundle-v0.0.X.tgz"
}
}
For some cases would be good idea to initiate cache clean for package manager There is no react stated in package.json due to react version conflict with material-ui / emotion-react