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:
- Install Node.js
- Download the demo
- Open Command Prompt/Terminal
- From the command line, change to the downloaded demo directory
- Run the following commands
cd '4 CommonJS'
npm install
grunt
The npm install command installs required dependencies
The grunt command performs the following: