This repository contains a development template based on Vite configured with TypeScript, Sass, Bulma, and more.
- Uses raw TypeScript, making it suitable for use with template engines like Python’s Jinja or Go’s Gin/Multitemplate.
- Bulma is used as the CSS Framework. Sass is also included, providing excellent customization for styling.
- Includes configurations for static analysis with tools like Stylelint and Biome.
Install dependencies:
pnpm i --frozen-lockfileWatch build:
pnpm build:watchBiome format:
pnpm formatBiome lint:
pnpm lintBiome Lint + format:
pnpm checkSass Lint:
pnpm stylelintYou can change it by modifying the outDir value in vite.config.ts.
Example) Changing the build output to static in the parent directory
import autoprefixer from 'autoprefixer';
import { defineConfig } from 'vite';
export default defineConfig(() => {
return {
build: {
- outDir: "static",
+ outDir: "../static",
assetsDir: 'assets',
rollupOptions: {
input: 'src/index.ts',
output: {
entryFileNames: '[name].js',
chunkFileNames: '[name].js',
assetFileNames: '[name].[ext]',
},
},
},
css: {
postcss: {
plugins: [autoprefixer],
},
},
};
});