Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sooniter/soon-cli
My cli to manage templates of my project.
https://github.com/sooniter/soon-cli
cli typescript utility
Last synced: 4 days ago
JSON representation
My cli to manage templates of my project.
- Host: GitHub
- URL: https://github.com/sooniter/soon-cli
- Owner: SoonIter
- License: mit
- Created: 2022-07-15T05:17:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-10T14:03:52.000Z (10 months ago)
- Last Synced: 2024-12-13T13:45:12.051Z (11 days ago)
- Topics: cli, typescript, utility
- Language: TypeScript
- Homepage:
- Size: 417 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# soon-cli
A small cli to record my commonly used scripts.
## start
```shell
> ni -g soon-cli
or pnpm i -g soon-cli
> soon init
````npx soon init `.
## commands
### init
`npx soon init `.
replace the `[name]` to ``![init preview](https://raw.githubusercontent.com/SoonIter/soon-cli/master/docs/init.png)
### template
`npx soon template `
copy './template' to './\', and replace the `[name]` to ``
![template preview](https://raw.githubusercontent.com/SoonIter/soon-cli/master/docs/template.png)
### glob
`npx soon glob `
generate 'export \* from \' to index.ts
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';
```### githook
config the githook in one click
- `pnpm install -D simple-git-hooks lint-staged @commitlint/cli @commitlint/config-conventional`
- generate `.commitlintrc`
- add `prepare` script and "simple-git-hooks" and "lint-staged" to `package.json`### My Awesome Templates
- [sooniter-lib-template-monorepo](https://github.com/SoonIter/sooniter-lib-template-monorepo) - my template of monorepo project with pnpm and vitest
- [sooniter-lib-template](https://github.com/SoonIter/sooniter-lib-template) - my template to create npm libraries with vitest
- [tampermonkey-svelte-template](https://github.com/SoonIter/tampermonkey-svelte-template) - A template with Svelte + TS + Unocss + Vite to build UI within shadow-root.
- [sooniter-react-template](https://github.com/SoonIter/sooniter-react-template) - My react template with semi-design,vite,unocss,unplugin-auto-import and vitest.
- [solid-vite-unocss-template](https://github.com/SoonIter/solid-vite-unocss-template) - A template of solid + vite + unocss.