A dead simple Solid.js starter template (using npm, ESLint, StandardJS, and TypeScript)
MIT License
A dead simple Solid.js starter template built with the following assumptions:
npm
ESLint
and StandardJS
TypeScript
Note: This project is inspired by
solidjs/templates/ts
but with some additional customisations.
To bootstrap a new project based on this template you can run:
npx degit lmammino/solidjs-template <name-of-your-project>
Then you can cd your new folder and run:
npm install
npm run dev
This will start a new dev server and run your project in dev mode.
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!
npm run lint
and npm run lint:fix
Used to trigger ESLint and validate your code style.
You can deploy the dist
folder to any static host provider (netlify, surge, now, etc.)
Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.
Licensed under MIT License. © Luciano Mammino.