create-l

2.5.0 • Public • Published

create-l

npm CI

TypeScript Library Scaffold.

Visit https://create-l.keke.cc to get a live preview.

Using

# npm
$ npm create l

# yarn
$ yarn create l

# pnpm
$ pnpm create l

# bun
$ bunx create-l

Then you need to answer a series of questions to create the template.

You can also directly specify the project name and the template to use via additional command line options.

$ npm create l --name <projectName> --bundle <unbuild | tsup | vite>

The default project name is my-lib and the default bundle tool is unbuild if no project name or bundle tool is specified.

Currently supported template presets include:

  • unbuild
  • tsup
  • vite

You can use . for the project name to scaffold in the current directory.

[!IMPORTANT] Since v2.0.0, monorepo and Vue SFC templates have been removed. If you still have a need to use them, you can use cli with legacy tag

# npm
$ npm create l@legacy

# yarn
$ yarn create l@legacy

# pnpm
$ pnpm create l@legacy

# bun
$ bunx create-l@legacy

Package Sidebar

Install

npm i create-l

Weekly Downloads

6

Version

2.5.0

License

MIT

Unpacked Size

219 kB

Total Files

46

Last publish

Collaborators

  • bernankez