Skip to content

An example Javascript library that can be used as a boilerplate.

Notifications You must be signed in to change notification settings

jfrk/js-hello-world-example-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An example Javascript library that can be used as a boilerplate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published