Updated the entire project to use Bun instead of npm/yarn for: - Faster package installation (3x faster than npm) - Native TypeScript support - Better runtime performance - Built-in bundler Changes: - Updated package.json to use bun in all scripts - Renamed project from example-marketing to localgreenchain - Added bunfig.toml for bun configuration - Updated README with Bun installation instructions - Added "Why Bun?" section explaining benefits - Updated .gitignore for bun-specific debug logs - Changed all npm/yarn references to bun commands All commands now use: - bun install (instead of npm install) - bun run dev (instead of npm run dev) - bun test (instead of npm test)
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"name": "localgreenchain",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "next dev -p 3001",
|
|
"build": "next build",
|
|
"start": "next start -p 3001",
|
|
"preview": "bun run build && bun run start",
|
|
"lint": "next lint",
|
|
"cy:open": "cypress open",
|
|
"cy:run": "cypress run",
|
|
"test:e2e": "start-server-and-test 'bun run preview' http://localhost:3001 cy:open",
|
|
"test:e2e:ci": "start-server-and-test 'bun run preview' http://localhost:3001 cy:run"
|
|
},
|
|
"dependencies": {
|
|
"@tailwindcss/forms": "^0.4.0",
|
|
"@tailwindcss/typography": "^0.5.1",
|
|
"@tanstack/react-query": "^4.0.10",
|
|
"classnames": "^2.3.1",
|
|
"drupal-jsonapi-params": "^1.2.2",
|
|
"html-react-parser": "^1.2.7",
|
|
"next": "^12.2.3",
|
|
"next-drupal": "^1.6.0",
|
|
"nprogress": "^0.2.0",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2",
|
|
"react-hook-form": "^7.8.6"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.12.9",
|
|
"@types/node": "^17.0.21",
|
|
"@types/react": "^17.0.0",
|
|
"autoprefixer": "^10.4.2",
|
|
"eslint-config-next": "^12.0.10",
|
|
"postcss": "^8.4.5",
|
|
"tailwindcss": "^3.0.15",
|
|
"typescript": "^4.5.5"
|
|
}
|
|
}
|