vite_rails 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -2
- data/lib/install/javascript/entrypoints/application.js +8 -4
- data/lib/vite_rails/version.rb +1 -1
- data/package.json +5 -1
- data/package/default.vite.json +1 -1
- data/test/test_app/app/javascript/entrypoints/application.js +0 -8
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01d2a1c3a1fb46873e2b8057e91829a74e6c52a010941ec8abe6ca8055242b71
|
|
4
|
+
data.tar.gz: 8fbe4d912f70e84631a0131cfc884e4dd547f10105955d6fb1c877d69a22c03c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2807123abe076535c1b5a918d5d6d303b137e1e8025d036692162313ed479500db1fd09ba153e355e33b1a58a9072d19c17b17dc147cd09f841cceffb8d12daa
|
|
7
|
+
data.tar.gz: 2200102393275515c8dc4ef981a9676460f27e35d48bba8c906535401aea934b5cd08fddbc19bd61bf7aaaf385c2fc7f27ca99eddca12f2ea364373fb7d2fde0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## Vite Rails 1.0.8 (2020-01-20)
|
|
2
|
+
|
|
3
|
+
- Change the default of `sourceCodeDir` to `app/frontend`, add instructions for folks migrating
|
|
4
|
+
from a `app/javascript` structure.
|
|
5
|
+
|
|
1
6
|
## Vite Rails 1.0.7 (2020-01-20)
|
|
2
7
|
|
|
3
8
|
- Add `vite_client_tag` to ensure the Vite client can be loaded in apps that don't use any imports.
|
data/README.md
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
</h1>
|
|
21
21
|
|
|
22
22
|
[website]: https://vite-rails.netlify.app/
|
|
23
|
+
[configuration reference]: https://vite-rails.netlify.app/config/
|
|
23
24
|
[features]: https://vite-rails.netlify.app/guide/introduction.html
|
|
24
25
|
[guides]: https://vite-rails.netlify.app/guide/
|
|
25
26
|
[config]: https://vite-rails.netlify.app/config/
|
|
@@ -27,11 +28,15 @@
|
|
|
27
28
|
[webpacker]: https://github.com/rails/webpacker
|
|
28
29
|
[vite]: http://vitejs.dev/
|
|
29
30
|
[config file]: https://github.com/ElMassimo/vite_rails/blob/main/package/default.vite.json
|
|
31
|
+
[example app]: https://github.com/ElMassimo/vite_rails/tree/main/examples/blog
|
|
32
|
+
[heroku]: https://vite-rails-demo.herokuapp.com/
|
|
30
33
|
|
|
31
34
|
[__Vite Rails__][vite_rails] allows you to use [Vite] to power the frontend of your Rails app.
|
|
32
35
|
|
|
33
36
|
[Vite] is to frontend tooling as Ruby to programming, pure joy! 😍
|
|
34
37
|
|
|
38
|
+
Check an [example app] running on [Heroku].
|
|
39
|
+
|
|
35
40
|
## Features ⚡️
|
|
36
41
|
|
|
37
42
|
- 🤖 Automatic entrypoint detection
|
|
@@ -65,7 +70,7 @@ Additional installation instructions are available in the [documentation website
|
|
|
65
70
|
|
|
66
71
|
## Getting Started 💻
|
|
67
72
|
|
|
68
|
-
Restart your Rails server, and then run
|
|
73
|
+
Restart your Rails server, and then run <kbd>bin/vite</kbd> to start the Vite development server.
|
|
69
74
|
|
|
70
75
|
Add the following your `views/layouts/application.html.erb`:
|
|
71
76
|
|
|
@@ -78,9 +83,10 @@ Visit any page and you should see a printed console output: `Vite ⚡️ Rails`.
|
|
|
78
83
|
|
|
79
84
|
For more [guides] and a full [configuration reference], check the [documentation website][website].
|
|
80
85
|
|
|
81
|
-
##
|
|
86
|
+
## Special Thanks 🙏
|
|
82
87
|
|
|
83
88
|
- [webpacker]
|
|
89
|
+
- [vite]
|
|
84
90
|
|
|
85
91
|
## License
|
|
86
92
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
// To see this message, add the following to the `<head>` section in your
|
|
2
|
+
// views/layouts/application.html.erb
|
|
3
|
+
//
|
|
4
|
+
// <%= vite_client_tag %>
|
|
5
|
+
// <%= vite_javascript_tag 'application' %>
|
|
6
|
+
console.log('Vite ⚡️ Rails')
|
|
7
|
+
|
|
1
8
|
// Example: Load Rails libraries in Vite.
|
|
2
9
|
//
|
|
3
10
|
// import '@rails/ujs'
|
|
@@ -11,8 +18,5 @@
|
|
|
11
18
|
// Turbolinks.start()
|
|
12
19
|
// ActiveStorage.start()
|
|
13
20
|
|
|
14
|
-
// Example: Import a stylesheet in app/
|
|
21
|
+
// Example: Import a stylesheet in app/frontend/index.css
|
|
15
22
|
// import '~/index.css'
|
|
16
|
-
|
|
17
|
-
console.log('Vite ⚡️ Rails')
|
|
18
|
-
|
data/lib/vite_rails/version.rb
CHANGED
data/package.json
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
"name": "only-for-workflows",
|
|
3
3
|
"version": "unknown",
|
|
4
4
|
"scripts": {
|
|
5
|
+
"docs": "npm -C docs run docs",
|
|
6
|
+
"docs:build": "npm -C docs run docs:build",
|
|
7
|
+
"docs:search": "npm -C docs run docs:search",
|
|
8
|
+
"docs:lint": "npm -C docs run lint",
|
|
5
9
|
"lint": "npm -C package run lint",
|
|
6
10
|
"test": "npm -C package run test"
|
|
7
11
|
},
|
|
8
12
|
"dependencies": {
|
|
9
13
|
"vite": "^2.0.0-beta.34",
|
|
10
|
-
"vite-plugin-ruby": "^1.0.
|
|
14
|
+
"vite-plugin-ruby": "^1.0.2"
|
|
11
15
|
}
|
|
12
16
|
}
|
data/package/default.vite.json
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
/* eslint no-console:0 */
|
|
2
|
-
// This file is automatically compiled by Vite, along with any other files
|
|
3
|
-
// present in this directory. You're encouraged to place your actual application logic in
|
|
4
|
-
// a relevant structure within app/javascript and only use these pack files to reference
|
|
5
|
-
// that code so it'll be compiled.
|
|
6
|
-
//
|
|
7
|
-
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
|
|
8
|
-
// layout file, like app/views/layouts/application.html.erb
|
|
9
|
-
|
|
10
2
|
console.log('Hello World from ViteRails')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vite_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Máximo Mussini
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -186,8 +186,8 @@ homepage: https://github.com/ElMassimo/vite_rails
|
|
|
186
186
|
licenses:
|
|
187
187
|
- MIT
|
|
188
188
|
metadata:
|
|
189
|
-
source_code_uri: https://github.com/ElMassimo/vite_rails/tree/v1.0.
|
|
190
|
-
changelog_uri: https://github.com/ElMassimo/vite_rails/blob/v1.0.
|
|
189
|
+
source_code_uri: https://github.com/ElMassimo/vite_rails/tree/v1.0.8
|
|
190
|
+
changelog_uri: https://github.com/ElMassimo/vite_rails/blob/v1.0.8/CHANGELOG.md
|
|
191
191
|
post_install_message:
|
|
192
192
|
rdoc_options: []
|
|
193
193
|
require_paths:
|