Skip to content
/ my-solid-js-app Public template

Snowpack starter project with solid.js & vanilla-extract [Use this template]

Notifications You must be signed in to change notification settings

dyoung2019/my-solid-js-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-solid-js-app

Snowpack starter project with solid.js & vanilla-extract

Getting Started

  1. Clone this repository with degit into a new folder
> npx degit dyoung2019/my-solid-js-app my-new-project
  1. Install all the project dependencies (i.e. snowpack, solid.js and vanilla-extract) in the sample project
> cd my-new-project
> npm install
  1. To run developement mode (e.g. snowpack dev)
> npm start
  1. To run production mode (i.e. snowpack build)
> npm run build

Modules used

  • snowpack
    • JS frontend build tool
  • solid.js
    • A declarative, efficient and flexible JavaScript library for building user interfaces.
    • Reactive JS UI framework using JSX with Typescript
  • vanilla-extract
    • Zero-runtime Stylesheets in TypeScript.
    • CSS-in-TS transpiler

Credits

Usage

Those templates dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

$ npm install # or pnpm install or yarn install

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

npm dev or npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)

About

Snowpack starter project with solid.js & vanilla-extract [Use this template]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published