https://github.com/innei/javascript-programming
手撕各类编程题
https://github.com/innei/javascript-programming
Last synced: 4 months ago
JSON representation
手撕各类编程题
- Host: GitHub
- URL: https://github.com/innei/javascript-programming
- Owner: Innei
- Created: 2021-08-16T12:40:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T07:50:28.000Z (over 1 year ago)
- Last Synced: 2025-08-22T07:45:35.765Z (10 months ago)
- Language: TypeScript
- Size: 546 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Rollup Typescript library template
Please use pnpm do this.
```sh
pnpm i
```
# Usage
### Package
Bundle your source code via tsc, rollup.
```
yarn package
```
### Dev
Start dev mode by Vite.
```
yarn dev
```
### Delopy
Delopy example to GitHub Pages.
```
yarn delopy
yarn publish
```
# Additional
If you want to bundle React JSX with rollup. Add additional packages.
```
pnpm i -D @babel/preset-react @babel/core @rollup/plugin-babel
```
And, un-comment this in `.babelrc`.
```json
{
"presets": ["@babel/preset-react"]
}
```
Un-comment this in `rollup.config.js`
```js
import { babel } from '@rollup/plugin-babel'
// ...
plugins: [
// ...
babel({}),
],
//...
```