- [v] Favicon
- JSON-LD
- LLM.txt
- ROBOT.txt
- the current code optimises for mental overhead.
- it is already the best code without adding abstractions
- only refactor after you've implemented a feature
-
dev- Runs the website in :3000 dev mode
-
build-
Deletes .next folder
-
Build the website (using "standalone" output) This will create a folder in
./.next/standalonefor ready-to-deploy production code -
Copy static files from .next/static to the standalone folder. This is done because standalone folder doesn't include static files.
-
Copy the standalone folder back to ./bin This is done because (afaik) npx/pnpx only read the bin files.
-
-
test- Build the project (npm run build)
- Transpile the check-site-meta.ts into .js
- Run the .js file
- use :skipbuild to skip build process
-
Before publishing (prepublishOnly), it will:
- Build the project
- Transpile the index.ts
pnpm dev- to only try the websitepnpm test- to try the finished build + scriptpnpx check-site-meta- to try the published build
-
In package.json, add
"bin": { "<command-name>": "<location>" }In this case,
"check-site-meta": "./bin/check-site-meta.js" -
Add the shebang
#!/usr/bin/env node