1.0.1 • Published 1 year ago
js-hello-trung v1.0.1
JS library boilerplate
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.
How to use
- 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.