/library-empty-template

This is a javascript library project development template that uses vite as the build tool and typescript as the main development language. The template has no other dependencies except for vite and typescript related tools.

Primary LanguageTypeScript

Library Empty Template

This is a javascript library project development template that uses vite as the build tool and typescript as the main development language. The template has no other dependencies except for vite and typescript related tools.

English | 简体中文

Using the Template

Create the Template Locally

When executing the creation command, you can specify the project name and template name through options.

# npm 7+, requires additional double dashes:
npm create ts-frame@latest my-library -- --template library-empty

# yarn
yarn create ts-frame my-library --template library-empty

# pnpm
pnpm create ts-frame my-library --template library-empty

# bun
bun create ts-frame my-library --template library-empty

Install Dependencies

cd my-library
npm install

Development

  • Development mode
npm run dev
  • Build production environment code
npm run build