Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/dotfiles. The configuration files for @sxzz.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146import type { Config } from '/Users/kevin/.local/share/mise/installs/npm-sxzz-create/latest/node_modules/@sxzz/create/dist/index.mjs'
const config: Config = { git: { add: true, },
replaces: [ { from: /\n.*Remove belows[\w\W]*Remove aboves.*\n/gi, to: '', }, { from: /^.*Remove Start[\s\S]*Remove End.*$/gm, to: '', }, ],
commands: ['code .', 'pnpm i'],
templates: [ { name: 'Library', color: 'blue',
variables: { description: { type: 'text', message: 'Package description', placeholder: 'My awesome typescript library', }, },
children: [ { name: 'TypeScript', color: '#3178c6', url: 'sxzz/ts-lib-starter',
replaces: [ { from: 'ts-lib-starter', to: (o) => o.project.folderName }, { from: 'My awesome typescript library', to: (o) => o.project.variables.description, }, ], },
{ name: 'unplugin', url: 'sxzz/unplugin-starter', variables: { pascalCase: { type: 'text', message: 'Pascal case of project name', placeholder: 'UnpluginStarter', required: true, }, },
replaces: [ { from: 'sxzz/unplugin-starter', to: (o) => `unplugin/${o.project.folderName}`, }, { from: 'unplugin-starter', to: (o) => o.project.folderName }, { from: 'UnpluginStarter', to: (o) => o.project.variables.pascalCase, }, { from: 'Description.', to: (o) => o.project.variables.description, }, { from: 'Starter template for [unplugin](https://github.com/unjs/unplugin).', to: (o) => o.project.variables.description, }, ], },
{ name: 'monorepo', url: 'sxzz/monorepo-starter', variables: { scope: { type: 'text', message: 'Package scope of the project', required: true, }, }, replaces: [ { from: 'project-name', to: (o) => o.project.folderName }, { from: '@scope', to: (o) => `@${o.project.variables.scope}` }, { from: 'My awesome typescript library', to: (o) => o.project.variables.description, }, ], }, ], }, { name: 'Web App', color: 'green', children: [ { name: 'Vue 3', color: '#42b883', url: 'vitejs/vite/packages/create-vite/template-vue-ts', replaces: [ { from: 'vite-vue-typescript-starter', to: (o) => o.project.folderName, }, ], commands: ({ project }) => [ 'mv _gitignore .gitignore', `echo '# ${project.folderName}' > README.md`, ], }, { name: 'Element Plus', color: '#409eff', url: 'sxzz/element-plus-best-practices', }, { name: 'Tauri App', color: '#ffc131', url: 'sxzz/element-plus-tauri-starter', }, ], }, { name: 'Telegram Bot', color: '#0088cc', url: 'sxzz/telegram-bot-starter', replaces: [ { from: 'telegram-bot-starter', to: (o) => o.project.folderName }, ], }, ],}
export default config