diff --git a/.parcelrc b/.parcelrc new file mode 100644 index 0000000..b5d783e --- /dev/null +++ b/.parcelrc @@ -0,0 +1,10 @@ +{ + "extends": [ + "@parcel/config-default" + ], + "transformers": { + "*.txt": [ + "@parcel/transformer-raw" + ] + } +} diff --git a/package-lock.json b/package-lock.json index 851fc1b..aba1081 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,8 @@ "npm-run-all": "^4.1.5", "parcel": "^2.11.0", "prettier": "^3.1.1", - "rimraf": "^5.0.5" + "rimraf": "^5.0.5", + "yaml": "^2.4.0" } }, "node_modules/@babel/code-frame": { @@ -7196,6 +7197,18 @@ "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", "dev": true }, + "node_modules/yaml": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.0.tgz", + "integrity": "sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/yauzl": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", diff --git a/package.json b/package.json index 81fb8ba..bfba569 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "validate:source-json": "node bin/validate-json.mjs lba1/*.json lba2/*.json", "validate:prettier": "prettier --check .", "build:json": "node bin/merge-json.mjs", - "build:site": "parcel build src/index.html", + "build:site": "parcel build src/index.html src/robots.txt", "test:merged-json": "node bin/validate-json.mjs dist/lba1.json dist/lba2.json", "prettier-write": "prettier --write ." }, @@ -22,7 +22,8 @@ "npm-run-all": "^4.1.5", "parcel": "^2.11.0", "prettier": "^3.1.1", - "rimraf": "^5.0.5" + "rimraf": "^5.0.5", + "yaml": "^2.4.0" }, "dependencies": { "mustache": "^4.2.0"