$ npm install -g webpack jsx-typescript firebase-tools tsd
- After every
git pull
executenpm install
andtsd install
npm start
- starts webpack-dev-server.- open http://localhost:3333/
- develop, save files and refresh page - webpack-dev-server will recompile everything automatically. Sometimes it may need to terminate it and
npm start
again.
Deploy is performed automatically on push. But Travis CI sometimes hangs before build, so here's the way to do it manually:
$ npm run deploy
Ask @EvAlex to add you as collaborator on Firebase.
Open https://robocoach.firebaseapp.com/ to verify deployment
- npm test - single run unit tests in PhantomJS
- npm run test-debug - to run repeated unit tests in PhantomJS after every file change
- npm run test-browser- single run unit tests in Chrome
- npm run test-browser-debug - to run repeated unit tests after every file change in Chrome with debug option
- After browser is opened click on "DEBUG" button in top right corner
- Hit F12 to debug
- Install Github Atom
- Install Atom packages
$ apm install atom-typescript atom-beautify file-icons linter minimap
- File > Settings (Ctrl + Comma). Choose Themes tab. If you prefer select "One Light" theme both for "UI Theme" and "Syntax Theme".
- File > Settings (Ctrl + Comma). Choose settings tab. Set "Tab Length" to 4
- File > Settings (Ctrl + Comma). Choose Packages tab. Find "tree-view" package there. Open its settings. Check "Hide Ignored Names" and "Hide VCS ignored names"
- Install Node Tools for Visual Studio extension
- Install NPM Scripts Task Runner extension
- Install WebPack Task Runner extension
- Hit Ctrl + P
- Run "task tslint-watch"
- Hit Ctrl + P
- Run "task webpack-watch"
- Hit Ctrl + shift + P
- Run "Tasks: Terminate Running Task"