常用的多个脚本混合的cli
npm install soon-cliA small cli to record my commonly used scripts.
``shell`
> ni -g soon-cli
or pnpm i -g soon-cli
> soon init
npx soon init .
npx soon init .[name]
replace the to
npx soon template
copy './template' to './\ to
npx soon glob
generate 'export \* from \
e.g: When build your hooks soon glob ./use/index.{ts,tsx} ./create/index.{ts,tsx}
`typescript`
export * from './useBoolean/index';
export * from './useCounter/index';
export * from './useEventListener/index';
export * from './useLocalStorage/index';
export * from './useModelValue/index';
export * from './useMouse/index';
export * from './useTitle/index';
export * from './useToggle/index';
export * from './createMotionTransform/index';
config the githook in one click
- pnpm install -D simple-git-hooks lint-staged @commitlint/cli @commitlint/config-conventional.commitlintrc
- generate prepare
- add script and "simple-git-hooks" and "lint-staged" to package.json`
- sooniter-lib-template-monorepo - my template of monorepo project with pnpm and vitest
- sooniter-lib-template - my template to create npm libraries with vitest
- tampermonkey-svelte-template - A template with Svelte + TS + Unocss + Vite to build UI within shadow-root.
- sooniter-react-template - My react template with semi-design,vite,unocss,unplugin-auto-import and vitest.
- solid-vite-unocss-template - A template of solid + vite + unocss.