.
This commit is contained in:
parent
1389f7aa96
commit
a710a14376
2 changed files with 4 additions and 6 deletions
|
@ -83,20 +83,16 @@ Now, anytime you make a change to your library in `src/` or to the example app's
|
||||||
|
|
||||||
#### Publishing to NPM
|
#### Publishing to NPM
|
||||||
|
|
||||||
Publish your package to `npm`:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm publish
|
npm publish
|
||||||
```
|
```
|
||||||
|
|
||||||
This also builds `cjs` and `es` versions of your module to `dist/`.
|
This builds `cjs` and `es` versions of your module to `dist/` and then publishes your module to `npm`.
|
||||||
|
|
||||||
Make sure that any npm modules you want as peer dependencies are properly marked as `peerDependencies` in `package.json`. The rollup config will automatically recognize them as peers and not try to bundle them in your module.
|
Make sure that any npm modules you want as peer dependencies are properly marked as `peerDependencies` in `package.json`. The rollup config will automatically recognize them as peers and not try to bundle them in your module.
|
||||||
|
|
||||||
|
|
||||||
#### Github Pages
|
#### Deploying to Github Pages
|
||||||
|
|
||||||
Deploy your example app to GitHub Pages:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run deploy
|
npm run deploy
|
||||||
|
|
|
@ -13,11 +13,13 @@ export default {
|
||||||
{
|
{
|
||||||
file: pkg.main,
|
file: pkg.main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
|
exports: 'named',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: pkg.module,
|
file: pkg.module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
|
exports: 'named',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue