Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.06 KB

javascript.md

File metadata and controls

21 lines (16 loc) · 1.06 KB

JavaScript

JavaScript is used in our Customer Web App, on certain interactive pages in Liefery Core (Liefery Backend) and in the Whitelabel Tracking application.

General

  • Write use strict at the top of every js file
  • Whitelabel tracking is written with React, Redux, ES6 and Flow for types. Please refer to the React style guide
  • Liefery Core and the Customer Web App are currently written using the Angular framework, and CoffeeScript, a language that compiles to JavaScript.
    • Overview of best practices for Angular can be found here
    • Comprehensive Angular Style guide can be found here.

Testing

  • All JavaScript code should have a corresponding unit test where possible.
  • We use the Jasmine testing framework for these tests and aim for a clean BDD style of test description.