create-sails
v1.2.1
Published
Quickly scaffold a fullstack Sails project with `npm init sails`
Maintainers
Readme
create-sails
An easy way to start a modern full-stack Sails project.
Usage
npx create-sails@latest <project-name>or
npm init sailsOptions
You can specify the frontend framework and template variant using flags:
# Use React with Mellow template (default)
npx create-sails@latest my-app --react
# Use React with Ascent template
npx create-sails@latest my-app --react --ascent
# Use Vue with Mellow template
npx create-sails@latest my-app --vue
# Use Svelte with Mellow template
npx create-sails@latest my-app --svelteNote: Ascent template variants for Vue and Svelte are not yet available. Only --react --ascent is currently supported.
What you will get with this scaffolding:
- Inertia.js powered by inertia-sails
- Vue 3/React/Svelte setup depending on the frontend framework you choose.
- Tailwind CSS
- Webpack 5
Configuration
This scaffolding uses Webpack 5 for managing your Frontend assets. This is done via a project level hook called webpack which you can find in config/webpack.js. You can edit this file if you are familiar with Webpack or you want something more custom. But out of the box this should be good to go for 90% of projects.
