Skip to content

videsk/rollup-library-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rollup starter library template

Use this Rollup configuration template with library projects. Is not recommended use with frameworks like Vue, Svelte, React or Angular, otherwise modify with your own Rollup configuration.

The compiled files will be exported and minify in umd, cjs (CommonJS), and esm (ES Modules) format. Also, it's used Babel for maximize compatibility of your code in browsers.

Development

npm run dev

In development mode you will be able to play adding your code on public/main.js. Rollup automatically add a hot-reload on bundle.js file, where is the original library code. Remember, in dev mode only exports the UMD version (browsers).

Production

npm run build

Publish (NPM)

npm run upload

To publish to NPM can execute the command script upload. With the command will build and upload based on version in package.json.

About

Template to compile library with Rollup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published