Opinionated TypeScript + jiti template for new scripts.
- Go to or create the project folder.
- Get the template files:
npx degit github:joaopalmeiro/template-ts-jiti-script
or
npx degit github:joaopalmeiro/template-ts-jiti-script --force
- Search for
template-ts-jiti-script
and replace it with the project name. Ignore the template repository URL in the NOTES.md file. - Search for
Opinionated TypeScript + jiti template for new scripts.
/Opinionated [TypeScript](https://www.typescriptlang.org/) + [jiti](https://github.com/unjs/jiti) template for new scripts.
and replace it with the (short) project description. - Search for
João Palmeiro
and replace it with the author's name. - Search for
[email protected]
and replace it with the author's email address. - Change the
author.url
field in thepackage.json
file to the author's website/social media profile. - Install fnm (if necessary).
- Run the first two commands in the
Development
section to install Node.js and the development dependencies. - Open the NOTES.md file and install the project-specific dependencies according to the first command in the
Commands
section. Run the second command if you are going to use Node.js modules. - Delete the TEMPLATE.md file.
- Delete the
Getting Started
section.
Install fnm (if necessary).
fnm install && fnm use && node --version && npm --version
npm install
npm run dev
npm run lint
npm run format