repack 2.4.3 → 2.4.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 +4 -4
- data/lib/generators/repack/install_generator.rb +10 -8
- data/lib/repack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 208786889bdb14b5f26148b5d7d3916d4946035f
|
4
|
+
data.tar.gz: 11e5a363acde25986eceb5200fd8cb9d3d72dd03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0de669390606c46d50e11922c982fdcaf8d4d6499fde1591aec81a3a7648b4b357080df5524642c75802526606ad97d3f881cf788e9efd5cc36d235d6d77d37
|
7
|
+
data.tar.gz: 169090aa505585193534a4cd1b71b2fd0ca46148c867d396f01b7882bf49d63e87cc35f775202d3d972db783a0175dfa76975cd20278754edeaa576de4bf4d57
|
@@ -148,11 +148,11 @@ module Repack
|
|
148
148
|
if options[:god]
|
149
149
|
nav_template = ask('Frontend Framework: 1) Materialize, 2) Bootstrap, 3) None').strip
|
150
150
|
case nav_template
|
151
|
-
when 1
|
151
|
+
when '1'
|
152
152
|
copy_file "boilerplate/god_mode/components/MaterialNavbar.js", "client/components/Navbar.js"
|
153
|
-
when 2
|
153
|
+
when '2'
|
154
154
|
copy_file "boilerplate/god_mode/components/BootstrapNavbar.js", "client/components/Navbar.js"
|
155
|
-
when 3
|
155
|
+
when '3'
|
156
156
|
puts 'No Navbar template, all the components are ready for you to implement however you want.'
|
157
157
|
else
|
158
158
|
puts 'Wrong template choice, try again!'
|
@@ -171,7 +171,6 @@ module Repack
|
|
171
171
|
copy_file "boilerplate/router/NoMatch.js", "client/components/NoMatch.js"
|
172
172
|
copy_file "boilerplate/god_mode/actions/auth.js", "client/actions/auth.js"
|
173
173
|
copy_file "boilerplate/god_mode/actions/flash.js", "client/actions/flash.js"
|
174
|
-
copy_file "boilerplate/god_mode/components/Navbar.js", "client/components/Navbar.js"
|
175
174
|
copy_file "boilerplate/god_mode/components/FlashMessage.js", "client/components/FlashMessage.js"
|
176
175
|
copy_file "boilerplate/god_mode/components/Login.js", "client/components/Login.js"
|
177
176
|
copy_file "boilerplate/god_mode/components/SignUp.js", "client/components/SignUp.js"
|
@@ -181,10 +180,12 @@ module Repack
|
|
181
180
|
copy_file "boilerplate/god_mode/reducers/index.js", "client/reducers/index.js"
|
182
181
|
copy_file "boilerplate/god_mode/controllers/api/users_controller.rb", "app/controllers/api/users_controller.rb"
|
183
182
|
copy_file "boilerplate/god_mode/scss/alert.css.scss", "app/assets/stylesheets/alert.css.scss"
|
183
|
+
|
184
184
|
gem "devise"
|
185
185
|
Bundler.with_clean_env do
|
186
186
|
run "bundle install"
|
187
187
|
end
|
188
|
+
|
188
189
|
run 'bin/spring stop'
|
189
190
|
generate "devise:install"
|
190
191
|
run "bundle exec rake db:create"
|
@@ -224,28 +225,29 @@ respond_to :json
|
|
224
225
|
╚██████╔╝╚██████╔╝██████╔╝ ██║ ╚═╝ ██║╚██████╔╝██████╔╝███████╗ ███████╗██║ ╚████║██║ ██║██████╔╝███████╗███████╗██████╔╝
|
225
226
|
╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═════╝ ╚══════╝╚══════╝╚═════╝
|
226
227
|
|
227
|
-
Note: If you chose a frontend framework you still need to install and configure
|
228
|
+
Note: If you chose a frontend framework (Materialize / Bootstrap) you still need to install the gem and configure it in your project.
|
228
229
|
|
229
230
|
EOF
|
230
231
|
end
|
231
232
|
puts <<-EOF.strip_heredoc
|
232
233
|
We've set up the basics of repack for you, but you'll still
|
233
234
|
need to:
|
234
|
-
1.
|
235
|
+
1. yarn install or npm install
|
235
236
|
2. Add an element with an id of 'app' to your layout
|
236
237
|
3. To disable hot module replacement remove <script src="http://localhost:3808/webpack-dev-server.js"></script> from layout
|
237
|
-
4. Run 'yarn
|
238
|
+
4. Run 'yarn / npm dev_server' to run the webpack-dev-server
|
238
239
|
5. Run 'bundle exec rails s' to run the rails server (both servers must be running)
|
239
240
|
6. If you are using react-router or god mode and want to sync server routes add:
|
240
241
|
get '*unmatched_route', to: <your client controller>#<default action>
|
241
242
|
This must be the very last route in your routes.rb file
|
242
243
|
e.g. get '*unmatched_route', to: 'home#index'
|
243
244
|
FOR HEROKU DEPLOYS:
|
244
|
-
1. yarn
|
245
|
+
1. yarn / npm heroku-setup
|
245
246
|
2. Push to heroku the post-build hook will take care of the rest
|
246
247
|
See the README.md for this gem at
|
247
248
|
https://github.com/cottonwoodcoding/repack/blob/master/README.md
|
248
249
|
for more info.
|
250
|
+
|
249
251
|
Thanks for using Repack!
|
250
252
|
EOF
|
251
253
|
end
|
data/lib/repack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Jungst
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|