• Stars
    star
    1,270
  • Rank 37,046 (Top 0.8 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience

Vite is to frontend tooling as Ruby to programming, pure joy! 😍

This repo contains libraries that will allow you to easily integrate Vite in your favourite Ruby framework, such as Rails or Hanami.

Why Vite? 🤔

Vite does not bundle your code during development, which means the dev server is extremely fast to start, and your changes will be updated instantly.

In production, Vite bundles your code with tree-shaking, lazy-loading, and common chunk splitting out of the box, to achieve optimal loading performance.

It also provides great defaults, and is easier to configure than similar tools like webpack.

Features ⚡️

  • 💡 Instant server start
  • ⚡️ Blazing fast hot reload
  • 🚀 Zero-config deployments
  • 🤝 Integrated with assets:precompile
  • And more!

Documentation 📖

Visit the documentation website to check out the guides and searchable configuration reference.

Installation 💿

Add this line to your application's Gemfile:

gem 'vite_rails' # vite_hanami for Hanami apps, vite_ruby for Rack apps

Then, run:

bundle install
bundle exec vite install

This will generate configuration files and a sample setup.

Additional installation instructions are available in the documentation website.

Getting Started 💻

Restart your web server, and then run bin/vite dev to start the Vite development server.

Visit any page and you should see a printed console output: Vite ⚡️ Ruby.

For more guides and a full configuration reference, check the documentation website.

Contact ✉️

Please use Issues to report bugs you find, and Discussions to make feature requests or get help.

Don't hesitate to ⭐️ star the project if you find it useful!

Using it in production? Always love to hear about it! 😃

Special Thanks 🙏

License

The gem is available as open source under the terms of the MIT License.

More Repositories

1

iles

🏝 The joyful site generator
TypeScript
1,074
star
2

vite-plugin-image-presets

🖼 Image Presets for Vite.js apps
TypeScript
246
star
3

vite-plugin-environment

Easily expose environment variables in Vite.js
TypeScript
144
star
4

vite-plugin-full-reload

♻️ Automatically reload the page when files are modified
JavaScript
134
star
5

oj_serializers

⚡️ Faster JSON serialization for Ruby on Rails. Easily migrate away from Active Model Serializers.
Ruby
113
star
6

js_from_routes

🛣️ Generate path helpers and API methods from your Rails routes
Ruby
98
star
7

types_from_serializers

✅ Generate TypeScript interfaces from your JSON serializers
Ruby
92
star
8

request_store_rails

📦 Per-request global storage for Rails prepared for multi-threaded apps
Ruby
85
star
9

vuex-stores

🗄 Store objects for Vuex, a simple and more fluid API for state-management.
JavaScript
62
star
10

vue-custom-element-example

An example on how to define custom elements using Vue 3
TypeScript
59
star
11

jekyll-vite

⚡️🩸 Use Vite.js in Jekyll as your assets pipeline
Ruby
50
star
12

vite-plugin-stimulus-hmr

⚡️ HMR for Stimulus controllers in Vite.js
TypeScript
50
star
13

mongoid_includes

🌿 Improves eager loading support for Mongoid
Ruby
46
star
14

stimulus-vite-helpers

Helpers to easily load all your Stimulus controllers when using Vite.js
TypeScript
43
star
15

queryable

❔ Gives your queries a home and avoid tucking scopes inside your models
Ruby
42
star
16

capybara-compose

✅ Easily write fluent integration tests with Capybara in Ruby
Ruby
32
star
17

better_settings

⚙ Settings for Ruby apps – fast, immutable, better.
Ruby
20
star
18

vite-plugin-bugsnag

Report builds and upload source maps to Bugsnag
TypeScript
18
star
19

i18n_multitenant

🌎 Provides a convenient way to use tenant-specific translations
Ruby
18
star
20

vite-plugin-manifest-sri

Subresource Integrity for Vite.js manifest files
JavaScript
15
star
21

resourcerer

✨ Works like magic to dry up your controllers
Ruby
10
star
22

sublime-toggle-dark-mode

🌚🌞 Toggle between dark and light mode in Sublime Text 4
JavaScript
10
star
23

pakiderm

🐘 Pakiderm will never forget the return value
Ruby
7
star
24

presenter_rails

🔭 Expose your view models in a convenient way
Ruby
6
star
25

vite-plugin-erb

Use ERB files in Vite.js projects with a Ruby backend
TypeScript
5
star
26

journeyman

Let your factories use your business logic, making them flexible and easier to update.
Ruby
5
star
27

jekyll-vite-minima

⚡️🩸 Use Vite.js in Jekyll minima theme as your assets pipeline
Ruby
3
star
28

automatic-music-transcription

Automatically exported from code.google.com
C
2
star
29

vite-plugin-xdm

Use XDM in VIte.js
JavaScript
2
star
30

fast-food-mvc

Automatically exported from code.google.com
C#
1
star
31

ElMassimo

1
star
32

vite-vue-router-hmr-repro

Vue
1
star
33

crouton

🍞 Context sensitive notifications for Rails
Ruby
1
star