vite_rails 2.0.10 → 3.0.0.beta.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e31434004c6d618baf4a5e77f3c0dffd7d48271d74ffffb066b2974ce7123c45
4
- data.tar.gz: b0af4abb6a6ab8da8cb94a1eb777573b08ae274cf8411692fce3a1dc4b02c73c
3
+ metadata.gz: 3baf934f36d5ce5e1322bcfb7a42257557ba9b9bb3dcf5b50ae001c0a42df799
4
+ data.tar.gz: 46ca0c0bd1b4c7119b3eca66e7bb7db97514b43c29c8bcd3313ff060cb6e0933
5
5
  SHA512:
6
- metadata.gz: a95a0a352671cdb70e48e9662af9aa4be85825840812185c8fb5362b82b2e365b571a9c1fcf41a0deb6c40fad328035a16f25ee2280cb5e063f6872942388908
7
- data.tar.gz: 8d47687979934033c777b1ccf2658fd8b1a9dd067e4ae09c7abe7ef1105e4f717c821c8f19db69b4e2875b659259d488f2b4830955764ff3e394623bfb1eb5f2
6
+ metadata.gz: 51efc3867b58d6db4d9874f306ef345d1165d15ebac7f4bd1e09a290ab6d4c27220a7de19e9a6e99d849eb5783c539f34fc9f075e1e1c6e499013c17dafb36ca
7
+ data.tar.gz: 17f74f8d3f960a69935a82396f74e052869e82a20bf2e2ec5bc1005ba92bd55a688b491600cd3f0beefbb1fec431e5722da422cfbe91e21edb0ef6ebaaad8989
data/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## [2.0.13](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.12...vite_rails@2.0.13) (2021-07-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * Set config.javascript_path so that zeitwerk ignores frontend files ([bab359f](https://github.com/ElMassimo/vite_ruby/commit/bab359f66a5942904e91e2a1a51b440072ba44af))
7
+
8
+
9
+
10
+ ## [2.0.12](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.11...vite_rails@2.0.12) (2021-05-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Fix typo in comment in example entrypoint in Rails ([78b3104](https://github.com/ElMassimo/vite_ruby/commit/78b3104bc687a79aebd4e0538b8b7c34562cb4eb))
16
+
17
+
18
+
19
+ ## [2.0.11](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.10...vite_rails@2.0.11) (2021-05-10)
20
+
21
+ ### Refactor
22
+
23
+ * Avoid reference to `dry-cli` during installation, use internal APIs instead ([f5b87e](https://github.com/ElMassimo/vite_ruby/commit/f5b87e69790e48397d15e609b44118e399c9493d))
24
+
25
+
1
26
  ## [2.0.10](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.9...vite_rails@2.0.10) (2021-04-21)
2
27
 
3
28
 
data/README.md CHANGED
@@ -43,8 +43,8 @@
43
43
  [heroku]: https://pingcrm-vite.herokuapp.com/
44
44
  [Issues]: https://github.com/ElMassimo/vite_ruby/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
45
45
  [Discussions]: https://github.com/ElMassimo/vite_ruby/discussions
46
- [no bundling]: https://vitejs.dev/guide/introduction.html#the-problem
47
- [bundling]: https://vitejs.dev/guide/introduction.html#why-bundle-for-production
46
+ [no bundling]: https://vitejs.dev/guide/why.html#the-problems
47
+ [bundling]: https://vitejs.dev/guide/why.html#why-bundle-for-production
48
48
 
49
49
  [Vite] is to frontend tooling as Ruby to programming, pure joy! 😍
50
50
 
@@ -33,4 +33,9 @@ class ViteRails::Engine < Rails::Engine
33
33
  end
34
34
  end
35
35
  end
36
+
37
+ initializer 'vite_rails.set_source' do |app|
38
+ source_dir = ViteRuby.config.root.join(ViteRuby.config.source_code_dir)
39
+ app.config.javascript_path = source_dir.relative_path_from(Rails.root.join('app')).to_s
40
+ end
36
41
  end
@@ -11,7 +11,7 @@ module ViteRails::Installation
11
11
  def setup_app_files
12
12
  cp RAILS_TEMPLATES.join('config/rails-vite.json'), config.config_path
13
13
  if dir = %w[app/javascript app/packs].find { |path| root.join(path).exist? }
14
- Dry::CLI::Utils::Files.replace_first_line config.config_path, 'app/frontend', %( "sourceCodeDir": "#{ dir }",)
14
+ replace_first_line config.config_path, 'app/frontend', %( "sourceCodeDir": "#{ dir }",)
15
15
  end
16
16
  setup_content_security_policy root.join('config/initializers/content_security_policy.rb')
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '2.0.10'
4
+ VERSION = '3.0.0.beta.1'
5
5
  end
@@ -6,7 +6,7 @@
6
6
  console.log('Vite ⚡️ Rails')
7
7
 
8
8
  // If using a TypeScript entrypoint file:
9
- // <%= vite_typescript_tag 'application.jsx' %>
9
+ // <%= vite_typescript_tag 'application' %>
10
10
  //
11
11
  // If you want to use .jsx or .tsx, add the extension:
12
12
  // <%= vite_javascript_tag 'application.jsx' %>
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: 2.0.10
4
+ version: 3.0.0.beta.1
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-04-21 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.0'
39
+ version: 2.0.0.beta.1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.0'
46
+ version: 2.0.0.beta.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: spring
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -81,8 +81,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
81
81
  licenses:
82
82
  - MIT
83
83
  metadata:
84
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.10/vite_rails
85
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.10/vite_rails/CHANGELOG.md
84
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.0.beta.1/vite_rails
85
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.0.beta.1/vite_rails/CHANGELOG.md
86
86
  post_install_message:
87
87
  rdoc_options: []
88
88
  require_paths:
@@ -94,9 +94,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  version: '2.5'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ">="
97
+ - - ">"
98
98
  - !ruby/object:Gem::Version
99
- version: '0'
99
+ version: 1.3.1
100
100
  requirements: []
101
101
  rubygems_version: 3.1.4
102
102
  signing_key: