An example Javascript library that can be used as a boilerplate. Includes transpilation of the source code for Node.js and bundling of a UMD version for browsers.
- Run
yarn install
to install dependencies. - Replace
hello-world
andHelloWorld
with strings matching your library name in thebuild:umd
script inside package.json and in the<script>
tag inside tests/browser.html if you want to keep that file. - Replace the content in the src folder with your library code with src/index.js as the entry point for both Node.js and browsers (UMD).
- Run
yarn build
to build Node and UMD versions.