quilt_rails 3.1.1 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/generators/quilt/react_setup/react_setup_generator.rb +4 -1
- data/lib/quilt_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e887915bb7068b86352c99c8f53b38a69bcc313c8859a058ceac543ef1ea1d79
|
4
|
+
data.tar.gz: 8aa15f78b167b1513094d40b4714b7539164880cb7514884ce3ab40c03288325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1138e0a191bd3412a5bfb735efdb2a45e24549660a5085922e8495427ebe5246baf5b5d2e216446975efd5cee9f77c25c4d79b35edbde462383495f70e709ea5
|
7
|
+
data.tar.gz: 9d52ae742f44161da2486543e335d83a46c8ae70a21778e9a809d4b62ce029687c2571379ae9cc2f4adc87758135e5bdb448cddcf41b14ca2446b1bc7b25f059
|
data/README.md
CHANGED
@@ -171,6 +171,8 @@ In some cases you may want to send basic data from Rails to your React server. Q
|
|
171
171
|
|
172
172
|
**Note:** The data passed should be data that is unlikely or will never change over the course of the session before they render any React components.
|
173
173
|
|
174
|
+
**Note:** Please note the minimal dependencies require to use this feature is listed in [CHANGELOG](./CHANGELOG.md#[1.12.0]-2020-05-07)
|
175
|
+
|
174
176
|
```ruby
|
175
177
|
class ReactController < ApplicationController
|
176
178
|
include Quilt::ReactRenderable
|
@@ -3,17 +3,20 @@
|
|
3
3
|
module Quilt
|
4
4
|
class ReactSetupGenerator < Rails::Generators::Base
|
5
5
|
source_root File.expand_path('templates', __dir__)
|
6
|
+
class_option :skip_yarn, type: :boolean, default: false
|
6
7
|
|
7
8
|
desc "This generator adds a React app."
|
8
9
|
|
9
10
|
def install_js_dependencies
|
11
|
+
return if options.skip_yarn?
|
12
|
+
|
10
13
|
say "Installing react and types dependencies"
|
11
14
|
system("yarn add "\
|
12
15
|
"typescript@~3.8.0 "\
|
13
16
|
"react@~16.11.0 "\
|
14
17
|
"react-dom@~16.11.0 "\
|
15
18
|
"@types/react@~16.9.0 "\
|
16
|
-
"@types/react-dom@~16.9.0 ")
|
19
|
+
"@types/react-dom@~16.9.0 ")
|
17
20
|
end
|
18
21
|
|
19
22
|
def create_tsconfig
|
data/lib/quilt_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quilt_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathew Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|