react_rails_webpack 1.0.1 → 1.0.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 618d010d7af62ffe453c448a86c40697ea95116e
|
4
|
+
data.tar.gz: abc60819bca6eccabc901be4c51ac5811411d44d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82fdc5343baeab49e32d4368961ac4dbb17c8faa5f73df27672841a754a1a1b1e6fcfa9cbe30ba943af2f97e841ba1bf8b640fcaa5e65bcbfbc783b8230e4c54
|
7
|
+
data.tar.gz: 2daba1dd0443f54e1139cf01a692ce01d5f5465f068e14a93552960a50c8d01c2d7c71cf8823bce8dd47fdc3cd9ed575c6522ffa45aeeaeef512912378902f91
|
@@ -32,7 +32,13 @@ module ReactRailsWebpack
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def print_next_steps
|
35
|
-
puts
|
35
|
+
puts
|
36
|
+
puts "-" * `tput cols`.to_i # print line of dashes
|
37
|
+
puts
|
38
|
+
puts "Done! Start your Rails server and go to #{"localhost:3000/greeting".blue} to see your React/Rails integration in action!"
|
39
|
+
puts
|
40
|
+
puts "-" * `tput cols`.to_i # print line of dashes
|
41
|
+
puts
|
36
42
|
end
|
37
43
|
end
|
38
44
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rails/generators/base'
|
2
|
+
require 'colorize'
|
2
3
|
|
3
4
|
module ReactRailsWebpack
|
4
5
|
class InstallGenerator < Rails::Generators::Base
|
@@ -63,8 +64,15 @@ module ReactRailsWebpack
|
|
63
64
|
end
|
64
65
|
|
65
66
|
def print_reminders
|
66
|
-
puts
|
67
|
-
puts "
|
67
|
+
puts
|
68
|
+
puts "-" * `tput cols`.to_i # print line of dashes
|
69
|
+
puts
|
70
|
+
puts "Done! Now #{"make sure you have node and npm installed".red.bold}, and then #{"run the".red.bold} #{"npm run install".white.bold} #{"and".red.bold} #{"npm run build".white.bold} #{"commands".red.bold} to finish setting up."
|
71
|
+
puts
|
72
|
+
puts "Also, #{"don't forget to set your hostname".red.bold} in the #{"client/environment.json".white.bold} file. Instructions for this can be found here: #{"https://github.com/neurodynamic/react_rails_webpack#setting-the-dev-server-hostname".blue}"
|
73
|
+
puts
|
74
|
+
puts "-" * `tput cols`.to_i # print line of dashes
|
75
|
+
puts
|
68
76
|
end
|
69
77
|
|
70
78
|
|