Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/bluskript/create-solid-library
- Owner: bluskript
- License: mit
- Created: 2022-10-27T01:35:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T02:41:23.000Z (about 2 years ago)
- Last Synced: 2024-11-02T18:41:24.460Z (about 1 month ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-solid-js - create-solid-library - Create a new Solid component library in seconds! (Resources / 🏃 Examples and Starter Kits)
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
```