The most easy to use weather extension and displays the current weather based on your location.
The following npm packages will need to be installed globally:
- typescript
- typings
- webpack
- phantomjs
Global modules can be installed as follows:
> npm install -g typescript typings webpack phantomjs
For the typings installation please ensure that you install version 1.0.* or above as there were breaking changes in the 1.0.0 release.
> git clone https://github.com/wastefactory/Weather-Today.git
or by just downloading the zip file.
> cd Weather-Today
> npm install
This will install the local dependencies. After this has finished you will need to bind the local installation of ts-loader to the global install of typescript:
> npm link typescript
If you do not link these two packages there may be resolutions errors so please ensure that you do this.
Typings manages the TypeScript definitions for the included project dependencies e.g. AngularJS and it's core modules.
To install the type definition files run the command:
> typings install
/srcdirectory : will be the development source./distdirectory : will be the extension package.
> npm run build
Running npm run build will transpile and build all the source files into bundle.js and vendor.bundle.js and will be available in /dist/app directory.
To pack the project for production, you need to run:
> npm run build:prod
> npm test
https://chrome.google.com/webstore/detail/weather-today/pihbggehfalkfjellilhdlhmicfijkfh