UNPKG

@yanhe-su/cli

Version:

CLI tool for DAO Style projects - providing project scaffolding, template generation and dependency management

32 lines (31 loc) 1.03 kB
import path from 'path'; import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); export const baseTemplate = { name: 'base', path: path.resolve(__dirname, 'files'), transform: (data) => { return { ...data, dependencies: { ...data.dependencies, vue: '^3.4.0', 'vue-router': '^4.2.0', pinia: '^2.1.0', vite: '^5.0.0', '@vitejs/plugin-vue': '^5.0.0', typescript: '^5.2.0', 'vue-tsc': '^1.8.0', }, scripts: { serve: 'rsbuild dev', 'serve:build': 'rsbuild dev -m production', build: 'rsbuild build', 'test:unit': 'vitest', 'test:unit:ci': 'vitest run --coverage --reporter=junit --outputFile=junit.xml', preview: 'vite preview', }, }; }, };