1.0.1 • Published 1 year ago

js-hello-trung v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

  1. Run yarn install to install dependencies.
  2. Replace hello-world and HelloWorld with strings matching your library name in the build:umd script inside package.json and in the <script> tag inside tests/browser.html if you want to keep that file.
  3. 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).
  4. Run yarn build to build Node and UMD versions.