Skip to content

Commit 61eff6d

Browse files
fix: forward flags to npm run build and adjust README.md
1 parent 3efe7b5 commit 61eff6d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ file like the following and adapt to your needs:
4545
"version": "1.0.0",
4646
"license": "MIT",
4747
"scripts": {
48-
"build": "techradar build",
48+
"build": "techradar build --strict",
4949
"serve": "techradar serve"
5050
},
5151
"dependencies": {
@@ -58,6 +58,8 @@ Run `npm install` to install the dependencies and run `npm run build` to create
5858
This will also create a basic bootstrap of all required files, including the `config.json` and
5959
the `about.md` if they do not exist yet.
6060

61+
Note: The `--strict` flag will break the build process if there are any errors in the markdown files. If you do not care about errors, you can remove the `--strict` flag.
62+
6163
### Step 2: Change logo and the favicon
6264

6365
Place your `logo.svg` and `favicon.ico` in the `public` folder next to the `package.json`.

bin/techradar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const SOURCE_DIR = path.join(CWD, "node_modules", "aoe_technology_radar");
1111
const HASH_FILE = path.join(BUILDER_DIR, "hash");
1212

1313
const PARAMETER = process.argv[2]; // "build" or "serve"
14+
const FLAGS = process.argv.slice(3).join(" ");
1415

1516
function info(message) {
1617
console.log(`\x1b[32m${message}\x1b[0m`);
@@ -146,7 +147,9 @@ try {
146147
}
147148

148149
info("Building data");
149-
execSync("npm run build:data", { stdio: "inherit" });
150+
execSync(`npm run build:data -- ${FLAGS}`, {
151+
stdio: "inherit",
152+
});
150153

151154
if (PARAMETER === "serve") {
152155
info("Starting techradar");

0 commit comments

Comments
 (0)