Exploring TypeScript with Jasmine for future reference. Code and tests.
- NodeJS
- Yarn
- Typescript:
yarn global add typescript
- TSLint
yarn global add tslint
- Gulp:
yarn global add gulp-cli
yarn
oryarn install
to install local dependencies
gulp
: compile, lint and testgulp watch
: compile, lint and test on change- adding the
--verbose
argument will provide detailed test output
Tasks: Run Test Task
runs thegulp watch
task, no need to run a separate build task.Tasks: Run Build Task
will compile the typescript and watch for changesF5
orDebug: Start Debugging
will run the tests in debug mode
- TypeScript docs
- Typescript Deep Dive free ebook
- TypeScript compiler options
- Microsoft starter template for TypeScript and Node
- Gulp-TypeScript
- TypeScript style guide and coding conventions
- TypeScript style guide based on the Airbnb JavaScript style guide
- Microsoft's TypeScript coding guidelines
- TSLint
- TSLint for Visual Studio Code
- TSLint ESLint rules
- Visual Studio TypeScript Analyzer
- SonarTS
- Typescript-Formatter
- yarn init --yes
- tsc --init
- tslint --init
- Double quotes vs single quotes on SO
- The default for TSLint is double quotes, so use that for now.
Following this answer on SO: since we use modules, and modules can be organized using a directory strucuture, namespaces are unnecessary?
So: use modules, organize in directories, until we run into something....
- Giving Yarn a try