Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
The code for this series is hosted in Github here.
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.