-
The code for this series is hosted in Github here.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
import { defineConfig } from 'vite'; import { resolve } from 'path'; // https://vitejs.dev/config/ export default defineConfig({ build: { lib: { entry: resolve(__dirname, 'src/main.ts'), formats: ['es'] } }, resolve: { alias: { src: resolve('src/') } }, });
-
To automate that we need some kind of pre-commit hook validation. That's where husky and lint-staged plugins come in handy let's install and set them up.
-
I'm going with Prettier to format the code. Formatting helps us to keep our code uniform for every developer.
-
Node.js
-
We are going to use the most popular unit testing framework Jest for writing our unit tests.