Typescript Development Environment Setup
Run npm install again
npm install
npm install -g tslint typescript htmlhint stylelint
Install vscode for your environment:
Install the following vscode plugins by pressing f1 and entering the following commands
ext install EditorConfig
ext install tslint
ext install HTMLHint
ext install stylelint
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
}
If you relaunch your editor you should now have linting enabled and the .editorconfig file should overwrite your settings. There will probably be a ton of warning in your files if you haven't been working with tslint enabled. Fix them.
Running the command npm test
in your project folder should run all unit-tests in the project and generate a coverage overview at the end, the goal is to have 100% coverage on everything.
If you browser to the file location of
**/coverage/lcov-report/index.html
ie: C:/Users/jonbo/code/biznas/jbf/jbf-club-app/coverage/lcov-report/index.html
in your browser you can click into each tested file and get a detailed breakdown of what is missing tests
npm i -g typings
npm run-script webdriver-update
npm start
test/protractor.conf.template.js
to test/protractor.conf.js
baseUrl: 'http://10.0.1.XX:8100'
npm run-script e2e
You should see a browser window open, run all the tests, and then report the results in your console.