gemcfadyen / Apprenticeship-JavaScriptTaskMan

A TO-DO List manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apprenticeship-JavaScriptTaskMan

A TO-DO List manager

To Setup a similar JavaScript project:

  • Create a package.json by doing npm init. Accept the defaults to the questions, but set test to "jasmine"
  • Install Babel for translating ecma6 to ecma5 npm install babel-preset-es2015 --save-dev npm install babel-preset-es2015 --save-dev

Open package.json and add the following under scripts:

"scripts": { "babel": "babel --presets es2015 js/main.js -o build/main.bundle.js", }

Create a build directory, where the generated (downgraded) javascript will be stored after babel has been run

Install the testing dependencies - add jasmine-es6 to the dev-dependencies in package.json

Generate the jasmine test folder by doing jasmine init

To run the tests in a headless fashion, do npm test

To package the ecma 6 so that it can be interpreted by the browser do npm run webpack.

To open the task man, type open index.html.

About

A TO-DO List manager


Languages

Language:JavaScript 86.4%Language:HTML 9.3%Language:CSS 4.2%