vite_rails 3.0.0.beta.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3baf934f36d5ce5e1322bcfb7a42257557ba9b9bb3dcf5b50ae001c0a42df799
4
- data.tar.gz: 46ca0c0bd1b4c7119b3eca66e7bb7db97514b43c29c8bcd3313ff060cb6e0933
3
+ metadata.gz: ede7e994b9efc576479fa558cef2b7394becd3da260caec53765e692e0df1301
4
+ data.tar.gz: 3a999d199170c26c1e8a7764f125209cf3ead26231a14117c517f8b090c42b43
5
5
  SHA512:
6
- metadata.gz: 51efc3867b58d6db4d9874f306ef345d1165d15ebac7f4bd1e09a290ab6d4c27220a7de19e9a6e99d849eb5783c539f34fc9f075e1e1c6e499013c17dafb36ca
7
- data.tar.gz: 17f74f8d3f960a69935a82396f74e052869e82a20bf2e2ec5bc1005ba92bd55a688b491600cd3f0beefbb1fec431e5722da422cfbe91e21edb0ef6ebaaad8989
6
+ metadata.gz: 867c4c13da0539166d095dc3cf7bbb52a6d154bbcedf06b93a6136cf40192323d1d6cd1d528b5144a39e6bd363efa33045a650c9d48ad7a9192f2aad1b533f93
7
+ data.tar.gz: a93704d6f78a297d00285e9f4b56bd8f6694486a0e451de88fefb44a9fed11c385b74a5b0639ad6d2c1c18e5bebd06eb874745a912b1b1031209ffaf14f1ce4c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## [3.0.2](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.1...vite_rails@3.0.2) (2021-12-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add variable declaration to import.meta.globEager (close [#154](https://github.com/ElMassimo/vite_ruby/issues/154)) ([#155](https://github.com/ElMassimo/vite_ruby/issues/155)) ([9ada2e8](https://github.com/ElMassimo/vite_ruby/commit/9ada2e87c68899e8e1bad368c875f8214036abcc))
7
+ * comment back glob import ([943e7f1](https://github.com/ElMassimo/vite_ruby/commit/943e7f1ca23a8abdee09c1495dc9e96494bc6202))
8
+
9
+
10
+
11
+ ## [3.0.1](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.0...vite_rails@3.0.1) (2021-10-29)
12
+
13
+
14
+ ### Features
15
+
16
+ * enable hmr when running tests in development with vite dev server ([e253bba](https://github.com/ElMassimo/vite_ruby/commit/e253bba26d164aabc7a9526df504c207ad2cf6f9))
17
+
18
+
19
+
20
+ # [3.0.0](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.13...vite_rails@3.0.0) (2021-08-16)
21
+
22
+ See https://github.com/ElMassimo/vite_ruby/pull/116 for features and breaking changes.
23
+
1
24
  ## [2.0.13](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.12...vite_rails@2.0.13) (2021-07-27)
2
25
 
3
26
 
@@ -14,6 +14,7 @@ module ViteRails::Installation
14
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
+ append root.join('Procfile.dev'), 'web: bin/rails s'
17
18
  end
18
19
 
19
20
  # Internal: Configure CSP rules that allow to load @vite/client correctly.
@@ -30,7 +31,7 @@ module ViteRails::Installation
30
31
  CSP
31
32
  inject_line_after csp_file, 'policy.script_src', <<~CSP
32
33
  # Allow @vite/client to hot reload changes in development
33
- # policy.script_src *policy.script_src, :unsafe_eval, "http://#{ ViteRuby.config.host_with_port }" if Rails.env.development?
34
+ # policy.script_src *policy.script_src, :unsafe_eval, "http://\#{ ViteRuby.config.host_with_port }" if Rails.env.development?
34
35
  CSP
35
36
  end
36
37
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '3.0.0.beta.1'
4
+ VERSION = '3.0.2'
5
5
  end
@@ -0,0 +1 @@
1
+ web: bin/rails server
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "test": {
12
12
  "autoBuild": true,
13
- "publicOutputDir": "vite-test"
13
+ "publicOutputDir": "vite-test",
14
+ "port": 3037
14
15
  }
15
16
  }
@@ -21,7 +21,7 @@ console.log('Visit the guide for more information: ', 'https://vite-ruby.netlify
21
21
  // import ActiveStorage from '@rails/activestorage'
22
22
  //
23
23
  // // Import all channels.
24
- // import.meta.globEager('./**/*_channel.js')
24
+ // const channels = import.meta.globEager('./**/*_channel.js')
25
25
  //
26
26
  // Turbolinks.start()
27
27
  // ActiveStorage.start()
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: 3.0.0.beta.1
4
+ version: 3.0.2
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-12-12 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: 2.0.0.beta.1
39
+ version: '3.0'
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: 2.0.0.beta.1
46
+ version: '3.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: spring
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -75,14 +75,15 @@ files:
75
75
  - lib/vite_rails/installation.rb
76
76
  - lib/vite_rails/tag_helpers.rb
77
77
  - lib/vite_rails/version.rb
78
+ - templates/Procfile.dev
78
79
  - templates/config/rails-vite.json
79
80
  - templates/entrypoints/application.js
80
81
  homepage: https://github.com/ElMassimo/vite_ruby
81
82
  licenses:
82
83
  - MIT
83
84
  metadata:
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
85
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.2/vite_rails
86
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.2/vite_rails/CHANGELOG.md
86
87
  post_install_message:
87
88
  rdoc_options: []
88
89
  require_paths:
@@ -94,9 +95,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
95
  version: '2.5'
95
96
  required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  requirements:
97
- - - ">"
98
+ - - ">="
98
99
  - !ruby/object:Gem::Version
99
- version: 1.3.1
100
+ version: '0'
100
101
  requirements: []
101
102
  rubygems_version: 3.1.4
102
103
  signing_key: