Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
75 lines
1.2 KiB
Text
75 lines
1.2 KiB
Text
import { defineConfig } from 'tsup';
|
|
|
|
const cfg = {
|
|
splitting: false,
|
|
sourcemap: true,
|
|
clean: true,
|
|
treeshake: false,
|
|
dts: true,
|
|
format: ['esm', 'cjs'],
|
|
};
|
|
|
|
export default defineConfig([
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/generic.ts',
|
|
},
|
|
outDir: 'dist',
|
|
},
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/nextjs/index.tsx',
|
|
},
|
|
external: ['react', 'next'],
|
|
outDir: 'dist/next',
|
|
},
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/nuxt/index.ts',
|
|
},
|
|
external: ['vue', 'vue-router'],
|
|
outDir: 'dist/nuxt',
|
|
},
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/react/index.tsx',
|
|
},
|
|
external: ['react'],
|
|
outDir: 'dist/react',
|
|
},
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/remix/index.tsx',
|
|
},
|
|
external: ['react', '@remix-run/react', 'react-router'],
|
|
outDir: 'dist/remix',
|
|
},
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/server/index.ts',
|
|
},
|
|
outDir: 'dist/server',
|
|
},
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/sveltekit/index.ts',
|
|
},
|
|
external: ['svelte', '@sveltejs/kit', '$app'],
|
|
outDir: 'dist/sveltekit',
|
|
},
|
|
{
|
|
...cfg,
|
|
entry: {
|
|
index: 'src/vue/index.ts',
|
|
},
|
|
external: ['vue', 'vue-router'],
|
|
outDir: 'dist/vue',
|
|
},
|
|
]);
|