1.0.1 • Published 3 years 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 installto install dependencies. - Replace
hello-worldandHelloWorldwith strings matching your library name in thebuild:umdscript 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 buildto build Node and UMD versions.