Versioning: - package.json is the single source of the version (0.2.0); the build injects it into the landing page and Storybook via src/version.ts - Add CHANGELOG.md and a release section in the README Deploy: - Refuse to deploy uncommitted work unless --allow-dirty is passed - Stamp each deploy with version.json and verify the live stamp - Serve HTML and JSON with Cache-Control: no-cache and cache only the content-hashed assets/ folders long-term - Return 404 for missing assets instead of index.html, which blanked the Storybook canvas for browsers holding a stale page - Always restore the hardened .htaccess, even when a step fails - Make the post-deploy PHP-off check real, build Storybook before checking for its index, and stop logging the session token
38 lines
949 B
JSON
38 lines
949 B
JSON
{
|
|
"name": "tansy-ui",
|
|
"private": true,
|
|
"version": "0.2.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "oxlint src .storybook",
|
|
"preview": "vite preview",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build"
|
|
},
|
|
"dependencies": {
|
|
"clsx": "^2.1.1",
|
|
"lucide-react": "^0.460.0",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"sonner": "^1.7.4",
|
|
"tailwind-merge": "^2.6.1"
|
|
},
|
|
"devDependencies": {
|
|
"@storybook/addon-a11y": "^10.6.0",
|
|
"@storybook/addon-docs": "^10.6.0",
|
|
"@storybook/react-vite": "^10.6.0",
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"@types/node": "^24.13.3",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.7",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"oxlint": "^1.81.0",
|
|
"storybook": "^10.6.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.3.0"
|
|
}
|
|
}
|