unify bin scriptnames

This commit is contained in:
dennis.ludwig
2021-06-12 14:32:45 +02:00
parent 5c581de249
commit eb9e85e7a0
2 changed files with 11 additions and 9 deletions

View File

@@ -26,12 +26,12 @@ yarn add https://github.com/aoepeople/aoe_technology_radar.git
Generate json file based on md files Generate json file based on md files
``` ```
yarn aoe_technology_radar:generateJson yarn aoe_technology_radar-generateJson
``` ```
Build the radar Build the radar
``` ```
yarn aoe_technology_radar:buildRadar yarn aoe_technology_radar-buildRadar
``` ```
Serve Serve
@@ -49,9 +49,9 @@ In most cases you have the techradar available at `/techradar`, and for reasons
Until this setup improves, you can use the following way to generate the correct techradar: Until this setup improves, you can use the following way to generate the correct techradar:
``` ```
yarn aoe_technology_radar:generateJson yarn aoe_technology_radar-generateJson
PUBLIC_URL=/techradar yarn aoe_technology_radar:buildRadar PUBLIC_URL=/techradar yarn aoe_technology_radar-buildRadar
yarn aoe_technology_radar:createStaticFiles yarn aoe_technology_radar-createStaticFiles
cp -r build techradar cp -r build techradar
``` ```
@@ -116,4 +116,6 @@ merged with the old ones, and a new history entry is created for that item.
* prettier on all files * prettier on all files
* check lint staged and prettier * check lint staged and prettier
* convert scripts to typescript as well * convert scripts to typescript as well
** move scripts paths.js and tasks in one folder ** move scripts paths.js and tasks in one folder
* Rename package to make more clear that this is a tech radar builder?
* provide only one bin script with subcommands like react-scripts?

View File

@@ -10,9 +10,9 @@
"url": "https://github.com/AOEpeople/aoe_technology_radar.git" "url": "https://github.com/AOEpeople/aoe_technology_radar.git"
}, },
"bin": { "bin": {
"aoe_technology_radar:generateJson": "scripts/generateJson.js", "aoe_technology_radar-generateJson": "scripts/generateJson.js",
"aoe_technology_radar:buildRadar": "scripts/buildRadar.js", "aoe_technology_radar-buildRadar": "scripts/buildRadar.js",
"aoe_technology_radar:createStaticFiles": "bin/tasks/create-static.js" "aoe_technology_radar-createStaticFiles": "bin/tasks/create-static.js"
}, },
"scripts": { "scripts": {
"prepare": "husky install && yarn build:tasks && yarn build", "prepare": "husky install && yarn build:tasks && yarn build",