react-rails-api 0.1.3 → 0.1.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fa4d6bae9dfa9a26bf64a325c48a82ffe2ccb155c51cd240554ac9dc81156c6
|
|
4
|
+
data.tar.gz: be5fb559bf3a8792c692ae0d6c233729bf42a8d3fd466799782110db73623bc5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 102bdfab109a8f14958cd2e9bd40b8745a732ea02c08b1a1d9948aa576c1b3ee85bfad3fec61e9a7f8d59560b1675e2e9287a737d4edcbd5c6acb8992b466f48
|
|
7
|
+
data.tar.gz: cd9be8be45c27a06f5bcbb1b180dfaa6fa4a5d93310b6fd9e0c51aeaeda32aa3826f7ee05d2bfe072fd5d3a7b95198dccdc9f53c97c1a07eca4de1a5f93817df
|
|
@@ -128,8 +128,12 @@ after_bundle do
|
|
|
128
128
|
run 'yarn create react-app client'
|
|
129
129
|
|
|
130
130
|
inside 'client' do
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
modify_json 'package.json' do |json|
|
|
132
|
+
# Add a MIT license
|
|
133
|
+
json[:license] = 'MIT'
|
|
134
|
+
# Add a proxy for the Rails API server (on the client)
|
|
135
|
+
json[:proxy] = 'http://localhost:3001'
|
|
136
|
+
end
|
|
133
137
|
# Add environment variable for skipping preflight checks (client-level)
|
|
134
138
|
file '.env', template('.env.tt')
|
|
135
139
|
end
|
|
@@ -6,8 +6,8 @@ namespace :start do
|
|
|
6
6
|
|
|
7
7
|
desc 'Start production server'
|
|
8
8
|
task :production do
|
|
9
|
-
exec 'NPM_CONFIG_PRODUCTION=true
|
|
9
|
+
exec 'NPM_CONFIG_PRODUCTION=true yarn postinstall && foreman start'
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
task :
|
|
13
|
+
task start: 'start:development'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: react-rails-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Edwin Onuonga
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|