Skip to content

justinjrussell/javascript-best-practices-modules-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEMO

This Demo is a simple application that Formats and Trims a String.

The Demo starts with a non-module application, then breaks down that application into each type of Module.

Demos can be ran by opening the index.html in the browser.

To run the CommonJS Demo you will need to do the following:

  1. Install Node.js
  2. Download the demo
  3. Open Command Prompt/Terminal
  4. From the command line, change to the downloaded demo directory
  5. Run the following commands
cd '4 CommonJS'
npm install
grunt

The npm install command installs required dependencies

The grunt command performs the following:

  1. Runs JSHint
  2. Runs Mocha Unit Test
  3. Runs Istanbul Code Coverage
  4. Bundles to Native Javascript with Browserify
  5. Minifies the Bundle
  6. Runs QUnit Test in PhantomJS browser (headless browser)
  7. Watches files for changes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published