/typescript-jasmine-refresh

Exploring TypeScript with Jasmine for future reference. Code and tests.

Primary LanguageTypeScript

TypeScript-Jasmine-Refresh

Exploring TypeScript with Jasmine for future reference. Code and tests.

Global dependencies

Getting started

  • yarn or yarn install to install local dependencies

Up & running

Command line

  • gulp: compile, lint and test
  • gulp watch: compile, lint and test on change
  • adding the --verbose argument will provide detailed test output

Visual Studio Code

  • Tasks: Run Test Task runs the gulp watch task, no need to run a separate build task.
  • Tasks: Run Build Task will compile the typescript and watch for changes
  • F5 or Debug: Start Debugging will run the tests in debug mode

Resources

TypeScript

TypeScript style guides

TypeScript code analysis

Jasmine

Useful commands

  • yarn init --yes
  • tsc --init
  • tslint --init

Double quotes or single quotes?

Modules or Namespaces?

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....

ECMAScript versions

Yarn or NPM?