Add instruction to transpile the code in README

This commit is contained in:
Matthew Oslan
2019-05-17 00:26:53 -04:00
committed by GitHub
parent b694594ccc
commit c41012712d

View File

@@ -47,10 +47,11 @@ pi@OSPi:~ $ rm node-v11.4.0-linux-armv6l.tar.gz
pi@OSPi:~ $ git clone https://github.com/OpenSprinkler/OpenSprinkler-Weather.git weather pi@OSPi:~ $ git clone https://github.com/OpenSprinkler/OpenSprinkler-Weather.git weather
``` ```
**Step 3:** Install all of the dependencies using the Node Package Manager, npm, from within the weather project directory: **Step 3:** Install all of the dependencies using the Node Package Manager, npm, from within the weather project directory and transpile the TypeScript files to JavaScript:
``` ```
pi@OSPi:~ $ cd weather pi@OSPi:~ $ cd weather
pi@OSPi:~/weather $ npm install pi@OSPi:~/weather $ npm install
pi@OSPi:~/weather $ npm run compile
``` ```
**Step 4:** Configure the weather server to use either the OpenWeatherMap API or the Dark Sky API **Step 4:** Configure the weather server to use either the OpenWeatherMap API or the Dark Sky API