An open API service indexing awesome lists of open source software.

https://github.com/innei/javascript-programming

手撕各类编程题
https://github.com/innei/javascript-programming

Last synced: 4 months ago
JSON representation

手撕各类编程题

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({}),
],
//...
```