balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.82k stars 1.95k forks source link

Getting Vite working with Sails.js/Parasails #7306

Open sahyrlelyaams opened 11 months ago

sahyrlelyaams commented 11 months ago

Node version: Sails version (sails): ORM hook version (sails-hook-orm): Sockets hook version (sails-hook-sockets): Organics hook version (sails-hook-organics): Grunt hook version (sails-hook-grunt): Uploads hook version (sails-hook-uploads): DB adapter & version (e.g. sails-mysql@5.55.5): Skipper adapter & version (e.g. skipper-s3@5.55.5):


Basically, the title.

Is there any way of getting Vite to work with Sails.js/Parasails? Wanted to leverage the modern features of Vite with Parasails remaining to serve Vue.js pages...

The intention would be to use Vite for the frontend bundling/build pipeline instead of the Grunt task runner enabled by default.

sailsbot commented 11 months ago

@sahyrlelyaams Thanks for posting! We'll take a look as soon as possible.

In the mean time, there are a few ways you can help speed things along:

Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.

For help with questions about Sails, click here.

DominusKelvin commented 10 months ago

Hey @sahyrlelyaams that's a great idea, I'm currently working on the next evolution of the Sails asset pipeline called Shipwright. Like Vite, it will be based on ESBuild.

sahyrlelyaams commented 10 months ago

@DominusKelvin I would like to checkout your asset pipeline solution. Have you open sourced it yet?

DominusKelvin commented 10 months ago

@DominusKelvin I would like to checkout your asset pipeline solution. Have you open sourced it yet?

Hey @sahyrlelyaams I'm the lead maintainer of Sails and Shipwright is being made as an official replacement for grunt

Once a public beta is ready an announcement will be made ☺️

DominusKelvin commented 7 months ago

Hey @sahyrlelyaams a version of Shipwright has been published and today you can use it by running npx create-sails <project-name>