Skip to content

Commit

Permalink
chore: add dev port
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofmagic committed Jul 3, 2024
1 parent 4473b4b commit ecf036b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 357 deletions.
6 changes: 5 additions & 1 deletion apps/astro-app/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
server: {
port: 8080
}
});
3 changes: 3 additions & 0 deletions apps/react-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 8081
}
})
3 changes: 3 additions & 0 deletions apps/svelte-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
server: {
port: 8082
}
})
3 changes: 3 additions & 0 deletions apps/vue-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
port: 8083
}
})
8 changes: 2 additions & 6 deletions apps/vue2-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"prepare": "tw-patch install",
"extract": "tw-patch extract"
"preview": "vite preview"
},
"dependencies": {
"pinia": "^2.1.7",
Expand All @@ -23,10 +21,8 @@
"postcss": "^8.4.39",
"sass": "^1.77.6",
"tailwindcss": "^3.4.4",
"tailwindcss-patch": "^3.0.2",
"typescript": "^5.5.3",
"unplugin-tailwindcss-mangle": "^3.0.0",
"vite": "^5.3.3",
"vue-tsc": "^2.0.24"
}
}
}
8 changes: 4 additions & 4 deletions apps/vue2-app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue2'
import utwm from 'unplugin-tailwindcss-mangle/vite'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), utwm({
classMapOutput: true,
})],
plugins: [vue()],
server: {
port: 8084
}
})
Loading

0 comments on commit ecf036b

Please sign in to comment.