🔧 build: ensure clean build, more useful scripts, add authors

This commit is contained in:
RiO
2024-12-29 05:40:35 +05:30
parent 2e29e75b56
commit c452c42d59

View File

@@ -1,7 +1,7 @@
{ {
"name": "snigdhaos-web", "name": "snigdhaos-web",
"private": true, "private": true,
"version": "0.0.0", "version": "1.0.0",
"type": "module", "type": "module",
"homepage": "https://Snigdha-OS.github.io", "homepage": "https://Snigdha-OS.github.io",
"scripts": { "scripts": {
@@ -9,10 +9,20 @@
"dev": "vite", "dev": "vite",
"build": "npm run clean && vite build", "build": "npm run clean && vite build",
"lint": "eslint .", "lint": "eslint .",
"lint:fix": "eslint . --fix",
"type-check": "tsc --noEmit",
"format": "prettier --write .",
"preview": "vite preview", "preview": "vite preview",
"predeploy": "npm run build", "predeploy": "npm run build",
"postbuild": "echo > dist/.nojekyll", "postbuild": "echo > dist/.nojekyll",
"deploy": "gh-pages -d dist" "deploy": "gh-pages -d dist",
"analyze": "vite build --mode analyze",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"start": "npm run dev",
"prepare": "husky install",
"validate": "npm run lint && npm run type-check && npm run test"
}, },
"dependencies": { "dependencies": {
"@tanstack/react-query": "^5.62.11", "@tanstack/react-query": "^5.62.11",
@@ -37,6 +47,9 @@
"eslint-plugin-react-refresh": "^0.4.16", "eslint-plugin-react-refresh": "^0.4.16",
"gh-pages": "^6.2.0", "gh-pages": "^6.2.0",
"globals": "^15.14.0", "globals": "^15.14.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"prettier": "^3.1.5",
"postcss": "^8.4.49", "postcss": "^8.4.49",
"postcss-preset-env": "^10.1.3", "postcss-preset-env": "^10.1.3",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.17",
@@ -45,5 +58,19 @@
"vite": "^5.4.11", "vite": "^5.4.11",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-sitemap": "^0.7.1" "vite-plugin-sitemap": "^0.7.1"
} },
"authors": [
{
"name": "Eshan Roy",
"email": "m.eshanized@gmail.com",
"url": "https://eshanized.github.io"
}
],
"contributors": [
{
"name": "D3V1L0N - RiO",
"email": "d3v1l0n@outlook.in",
"url": "https://d3v1l0n.github.io"
}
]
} }