Small project to format Redirects for the ESLint IA Refactor.
The project has the following components:
-
parseJsonToNetlify.ts
- Convert the JSON array created byparseMdToJson.ts
to Netlify _redirect file format. -
parseMdToJson.ts
- take the .md source from the ESLint IA Refactor RFC and convert to intermediary JSON state. Used during development but probably no longer useful.
Install dependencies with npm i
.
Run script:
# Convert JSON output from md to netlify redirect file format
# ~input file~ ~output file~
npm run json-to-netlify redirects-modified.json _redirects
These scripts were used during initial development, but probably no longer useful.
# Convert md input to json
npm run md-to-json
# run both of prev 2 scripts in sequence, md -> json -> netlify
npm run md-to-netlify