A small cli to record my commonly used scripts.
> ni -g soon-cli
or pnpm i -g soon-cli
> soon init <project-name>
npx soon init <project-name>
.
npx soon init <project-name>
.
replace the [name]
to <project-name>
npx soon template <dir-name>
copy './template' to './<dir-name>', and replace the [name]
to <dir-name>
npx soon glob <path>
generate 'export * from <path>' to index.ts
e.g: When build your hooks soon glob ./use*/index.{ts,tsx} ./create*/index.{ts,tsx}
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
prepare
script and "simple-git-hooks" and "lint-staged" to package.json