diff --git a/Readme.md b/Readme.md index 6ce2963..620f436 100644 --- a/Readme.md +++ b/Readme.md @@ -2,18 +2,18 @@ This is the location of AOE techradar content - published under: https://www.aoe.com/techradar/index.html - - ## Development +### Requirements +Install the [yarn package manager](https://yarnpkg.com/getting-started/install). + ### Host the application under a sub path -To host the application under a sub path, set the environment variable `PUBLIC_URL`, e.g. "/techradar". The default is `/techradar`. +To host the application under a sub path, set the environment variable `PUBLIC_URL`, e.g. "/techradar". The default is `/build`. > For local development I recommend using `/build` and use this for the following steps. ### Build the radar ``` -yarn -export PUBLIC_URL="/build" && yarn start +yarn start ``` Then open here: http://localhost:8080/build diff --git a/package.json b/package.json index 83a1517..5aa7bce 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "main": "index.js", "license": "MIT", "scripts": { + "pregenerateJson": "yarn", "generateJson": "aoe_technology_radar-generateJson", "prebuild": "yarn generateJson", "build": "aoe_technology_radar-buildRadar", diff --git a/yarn.lock b/yarn.lock index 775088e..aab1498 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2355,7 +2355,7 @@ anymatch@^3.0.0, anymatch@^3.0.3, anymatch@~3.1.2: "aoe_technology_radar@https://github.com/aoepeople/aoe_technology_radar.git": version "2.0.0" - resolved "https://github.com/aoepeople/aoe_technology_radar.git#466227641cad8c52c8a78812671cac7a671d6007" + resolved "https://github.com/aoepeople/aoe_technology_radar.git#e2d2cd6e86547d6c4a493b350b1cb1322d499233" dependencies: "@types/fs-extra" "^9.0.11" "@types/marked" "^2.0.3"