https://github.com/hacxy/library-vite-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.
https://github.com/hacxy/library-vite-template
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/hacxy/library-vite-template
- Owner: hacxy
- Created: 2024-04-08T05:24:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T03:31:09.000Z (5 months ago)
- Last Synced: 2025-02-13T10:18:56.231Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 | [简体中文](https://github.com/hacxy/library-empty-template/blob/main/README_zh.md#library-empty-template)
## Using the Template
### Create the Template Locally
- You can quickly create the project locally using [create-ts-frame](https://github.com/hacxy/create-ts-frame)
When executing the creation command, you can specify the project name and template name through options.
```sh
# 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
```sh
cd my-library
npm install
```### Development
- Development mode
```sh
npm run dev
```- Build production environment code
```sh
npm run build
```