Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bluskript/create-solid-library

🔥 Set up your new Solid component library in seconds!
https://github.com/bluskript/create-solid-library

Last synced: 7 days ago
JSON representation

🔥 Set up your new Solid component library in seconds!

Awesome Lists containing this project

README

        

# Create Solid Library

Create SolidJS libraries with ease!

## Usage

```bash
npx create-solid-library
```

### Development

Developing components is often a visual process. As a result, vite is being used as a build tool and as a dev environment!
Just run `npm run dev` and you can live code your component.

#### Excluding Dependencies

At build time, Vite unfortunately cannot exclude dependencies automatically. Dependencies you install need to be [externalized](https://vitejs.dev/guide/build.html#library-mode) so that it doesn't appear in the final bundle!

### Testing your component works

Oftentimes, there can be issues that only appear after build time. As a result, we added a `test-project` folder where you can use your Solid component and test if it
actually works in a real project!

### Building for production

```bash
npm run build
```