Skip to content

JavaScript

The DevOps division are heavy users of the JavaScript programming language for frontend work.

Important

We make use of the @ucam.uis.devops scope for JavaScript and TypeScript packages. If you are creating a TypeScript or JavaScript package please name it @ucam.uis.devops/{package-name} and always upload it to the GitLab npm package registry for the containing project. Public packages may optionally be uploaded to npmjs.org with the same name.

Use a transpiler

Modern JavaScript has advanced faster than browsers have kept up. Features such as arrow functions or modules are not available in all of our target browsers. Hence we use a transpiler, usually create-react-app-typescript, to transpile our JavaScript.

TypeScript where possible

The use of TypeScript and its associated linter, tslint is recommended. TypeScript can often catch subtle bugs which unit testing and manual end-to-end testing do not find.