2.0.3 • Published 2 years ago

soon-cli v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

soon-cli

A small cli to record my commonly used scripts.

start

> ni -g soon-cli
  or pnpm i -g soon-cli
> soon init <project-name>

npx soon init <project-name>.

commands

init

npx soon init <project-name>. replace the [name] to <project-name>

init preview

template

npx soon template <dir-name>

copy './template' to './\<dir-name>', and replace the [name] to <dir-name>

template preview

glob

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';

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 Owesome Templates

2.0.3

2 years ago

2.0.2

2 years ago

1.1.19

3 years ago

1.1.22

2 years ago

1.1.21

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.16

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago