These are the reasons why this repo was created
- 🌐 Download n' go, you don't have to create all of the configs from scratch
- 📦 Targets multiple module systems: CJS, ESM, and Browser (IIFE)
- ✔️ Full Typescript support for your source code
- 🛑 Complete, ready-to-use .gitignore and .npmignore
- 🧪 Example tests for example source code, modify (or remove) them as you want
- ⚙️ CI for auto testing with GitHub Workflows
- 🗺️ Test coverage check
- 💻 Tested on Ubuntu, Windows, and MacOS
- 🎨 Code formatting for editors with Editorconfig or Prettier support
Easy... just download here, extract, then it yours now 😊
- ☑️ Install required plugin for your IDE: Visual Studio Code / Vim / emacs
- ☑️ Modify project information in
package.json, you must change the name, version, author, and keywords - ☑️ Choose your license option then modify
LICENSEfile according to your chosen license - ☑️ Change the
**INPUT YOUR EMAIL HERE**inCODE_OF_CONDUCT.mdto your official email - ☑️ Tailor
CONTRIBUTING.mdfor your project - ☑️ After everything (including source code) modified, you can replace this
README.mdfile
You can use plain NPM or Yarn, but we're focusing on PNPM here
- ☑️ Install PNPM
- ☑️ Run
pnpm installto initiate node_modules - ☑️ Open original template repo in your browser, just in case you need to see the deleted files
- ☑️ Delete anything inside
srcfolder exceptindex.tsthen start write your own source code - ☑️ Delete anything inside
testfolder then start write the code for testing - ☑️ Check your source code formatting with
pnpm run lintcommand. If fail, runpnpm run format - ☑️ Build the source code with
pnpm run buildcommand - ☑️ Test the source code with
pnpm run testcommand
You can freely modify the .prettierrc and .editorconfig files to suit your style. To update all of your files, run this command
pnpm run formatCheck .gitignore file and do commit the changes with git
Check .npmignore file and do publish again
Go to package.json and modify the "engines" part to your intended minimum NodeJS & NPM version
Go to .github/workflows/ci.yaml then change according to the documentation