Setting up the project
We will quickly set up the project before we can start writing. We will use npm
to manage our dependencies and gulp
to build our project. These tools are built on NodeJS
, so it should be installed from nodejs.org.
First of all, we must create a new directory in which we will place all files. We must create a package.json
file used by npm
:
{ "name": "weather-widget", "version": "1.0.0", "private": true, "description": "" }
The package.json
file contains information about the project, such as the name, version, and a description. These fields are used by npm
when you publish a project on the registry on NPM, which contains a lot of open source projects. We will not publish it there. We set the private
field to true
, so we cannot ...
Get TypeScript: Modern JavaScript Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.