From eb9e85e7a004d1866737908f3d30d16fd3a8fb59 Mon Sep 17 00:00:00 2001 From: "dennis.ludwig" Date: Sat, 12 Jun 2021 14:32:45 +0200 Subject: [PATCH] unify bin scriptnames --- README.md | 14 ++++++++------ package.json | 6 +++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 063ad1f..ad4c2b4 100644 --- a/README.md +++ b/README.md @@ -26,12 +26,12 @@ yarn add https://github.com/aoepeople/aoe_technology_radar.git Generate json file based on md files ``` -yarn aoe_technology_radar:generateJson +yarn aoe_technology_radar-generateJson ``` Build the radar ``` -yarn aoe_technology_radar:buildRadar +yarn aoe_technology_radar-buildRadar ``` 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: ``` -yarn aoe_technology_radar:generateJson -PUBLIC_URL=/techradar yarn aoe_technology_radar:buildRadar -yarn aoe_technology_radar:createStaticFiles +yarn aoe_technology_radar-generateJson +PUBLIC_URL=/techradar yarn aoe_technology_radar-buildRadar +yarn aoe_technology_radar-createStaticFiles 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 * check lint staged and prettier * convert scripts to typescript as well -** move scripts paths.js and tasks in one folder \ No newline at end of file +** 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? \ No newline at end of file diff --git a/package.json b/package.json index c9cfaa4..d579300 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "url": "https://github.com/AOEpeople/aoe_technology_radar.git" }, "bin": { - "aoe_technology_radar:generateJson": "scripts/generateJson.js", - "aoe_technology_radar:buildRadar": "scripts/buildRadar.js", - "aoe_technology_radar:createStaticFiles": "bin/tasks/create-static.js" + "aoe_technology_radar-generateJson": "scripts/generateJson.js", + "aoe_technology_radar-buildRadar": "scripts/buildRadar.js", + "aoe_technology_radar-createStaticFiles": "bin/tasks/create-static.js" }, "scripts": { "prepare": "husky install && yarn build:tasks && yarn build",