|
||||||||
Project Structure
Step 1: Create a directory where you will store your projectIn this example, I am calling it SampleProject but, you can do as you wish for each new project
Step 2: Create (or edit) your pacakge.json file
A package.json file contains meta data about your app or module. Most importantly, it includes the list of dependencies to install from npm when running npm install
Step 3: Run (npm install) in project directory to setup dependencies
NOTE: one of the things it installs is JSHint --
Step 4: look and understand the html and .js files above in the directory or create your own AND run the JSHint tool on all of the code in your project directory.You will be able to run it on all the JavaScript files in npm run jshint The code you submit should start with Step 5: RUNNING IT: 2 alternatives: 1) Run by loading the test-project.html in the browser and bring up console under developer tools 2) run the run-test-using-node.js file
BEFORE testing you must create a node js file called YOURmake-multi-filter.js and YOURtemplate-processor.js and modify the test-project.js node run-tests-using-node.js
|
||||||||
© Lynne Grewe |