webpacker-jets 3.2.100

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/.eslintignore +4 -0
  3. data/.eslintrc.js +14 -0
  4. data/.gitignore +6 -0
  5. data/.rubocop.yml +124 -0
  6. data/.travis.yml +32 -0
  7. data/CHANGELOG.md +523 -0
  8. data/Gemfile +13 -0
  9. data/Gemfile.lock +154 -0
  10. data/MIT-LICENSE +20 -0
  11. data/README.md +445 -0
  12. data/Rakefile +12 -0
  13. data/docs/assets.md +106 -0
  14. data/docs/cloud9.md +310 -0
  15. data/docs/css.md +116 -0
  16. data/docs/deployment.md +74 -0
  17. data/docs/docker.md +49 -0
  18. data/docs/env.md +65 -0
  19. data/docs/es6.md +53 -0
  20. data/docs/folder-structure.md +66 -0
  21. data/docs/misc.md +23 -0
  22. data/docs/props.md +223 -0
  23. data/docs/testing.md +128 -0
  24. data/docs/troubleshooting.md +119 -0
  25. data/docs/typescript.md +116 -0
  26. data/docs/webpack-dev-server.md +92 -0
  27. data/docs/webpack.md +297 -0
  28. data/docs/yarn.md +12 -0
  29. data/exe/webpack +8 -0
  30. data/exe/webpack-dev-server +8 -0
  31. data/gemfiles/Gemfile-rails-edge +13 -0
  32. data/gemfiles/Gemfile-rails.4.2.x +10 -0
  33. data/gemfiles/Gemfile-rails.5.0.x +10 -0
  34. data/gemfiles/Gemfile-rails.5.1.x +10 -0
  35. data/lib/install/angular.rb +27 -0
  36. data/lib/install/coffee.rb +22 -0
  37. data/lib/install/config/.babelrc +18 -0
  38. data/lib/install/config/.postcssrc.yml +3 -0
  39. data/lib/install/config/webpack/development.js +3 -0
  40. data/lib/install/config/webpack/environment.js +3 -0
  41. data/lib/install/config/webpack/production.js +3 -0
  42. data/lib/install/config/webpack/staging.js +3 -0
  43. data/lib/install/config/webpack/test.js +3 -0
  44. data/lib/install/config/webpacker.yml +79 -0
  45. data/lib/install/elm.rb +38 -0
  46. data/lib/install/erb.rb +22 -0
  47. data/lib/install/examples/angular/hello_angular.js +7 -0
  48. data/lib/install/examples/angular/hello_angular/app/app.component.ts +9 -0
  49. data/lib/install/examples/angular/hello_angular/app/app.module.ts +16 -0
  50. data/lib/install/examples/angular/hello_angular/index.ts +8 -0
  51. data/lib/install/examples/angular/hello_angular/polyfills.ts +73 -0
  52. data/lib/install/examples/angular/tsconfig.json +19 -0
  53. data/lib/install/examples/coffee/hello_coffee.coffee +4 -0
  54. data/lib/install/examples/elm/Main.elm +54 -0
  55. data/lib/install/examples/elm/hello_elm.js +12 -0
  56. data/lib/install/examples/erb/hello_erb.js.erb +6 -0
  57. data/lib/install/examples/react/.babelrc +6 -0
  58. data/lib/install/examples/react/hello_react.jsx +26 -0
  59. data/lib/install/examples/vue/app.vue +22 -0
  60. data/lib/install/examples/vue/hello_vue.js +70 -0
  61. data/lib/install/javascript/packs/application.js +10 -0
  62. data/lib/install/loaders/coffee.js +6 -0
  63. data/lib/install/loaders/elm.js +23 -0
  64. data/lib/install/loaders/erb.js +11 -0
  65. data/lib/install/loaders/typescript.js +6 -0
  66. data/lib/install/loaders/vue.js +13 -0
  67. data/lib/install/react.rb +28 -0
  68. data/lib/install/template.rb +37 -0
  69. data/lib/install/vue.rb +26 -0
  70. data/lib/tasks/installers.rake +24 -0
  71. data/lib/tasks/webpacker.rake +22 -0
  72. data/lib/tasks/webpacker/check_binstubs.rake +12 -0
  73. data/lib/tasks/webpacker/check_node.rake +24 -0
  74. data/lib/tasks/webpacker/check_yarn.rake +24 -0
  75. data/lib/tasks/webpacker/clobber.rake +16 -0
  76. data/lib/tasks/webpacker/compile.rake +41 -0
  77. data/lib/tasks/webpacker/install.rake +13 -0
  78. data/lib/tasks/webpacker/verify_install.rake +16 -0
  79. data/lib/tasks/webpacker/yarn_install.rake +6 -0
  80. data/lib/webpacker.rb +32 -0
  81. data/lib/webpacker/commands.rb +23 -0
  82. data/lib/webpacker/compiler.rb +88 -0
  83. data/lib/webpacker/configuration.rb +87 -0
  84. data/lib/webpacker/dev_server.rb +61 -0
  85. data/lib/webpacker/dev_server_proxy.rb +26 -0
  86. data/lib/webpacker/dev_server_runner.rb +51 -0
  87. data/lib/webpacker/helper.rb +66 -0
  88. data/lib/webpacker/instance.rb +44 -0
  89. data/lib/webpacker/manifest.rb +75 -0
  90. data/lib/webpacker/railtie.rb +82 -0
  91. data/lib/webpacker/rake_tasks.rb +6 -0
  92. data/lib/webpacker/runner.rb +22 -0
  93. data/lib/webpacker/version.rb +9 -0
  94. data/lib/webpacker/webpack_runner.rb +15 -0
  95. data/package.json +67 -0
  96. data/package/__tests__/environment.js +74 -0
  97. data/package/config.js +34 -0
  98. data/package/config_types/__tests__/config_list.js +123 -0
  99. data/package/config_types/__tests__/config_object.js +43 -0
  100. data/package/config_types/config_list.js +85 -0
  101. data/package/config_types/config_object.js +55 -0
  102. data/package/config_types/index.js +7 -0
  103. data/package/environment.js +116 -0
  104. data/package/environments/development.js +46 -0
  105. data/package/environments/production.js +37 -0
  106. data/package/environments/test.js +3 -0
  107. data/package/index.js +20 -0
  108. data/package/rules/babel.js +13 -0
  109. data/package/rules/css.js +39 -0
  110. data/package/rules/file.js +13 -0
  111. data/package/rules/index.js +11 -0
  112. data/package/rules/sass.js +15 -0
  113. data/package/utils/__tests__/deep_assign.js +11 -0
  114. data/package/utils/__tests__/deep_merge.js +10 -0
  115. data/package/utils/__tests__/objectify.js +9 -0
  116. data/package/utils/deep_assign.js +22 -0
  117. data/package/utils/deep_merge.js +23 -0
  118. data/package/utils/helpers.js +32 -0
  119. data/package/utils/objectify.js +4 -0
  120. data/test/command_test.rb +27 -0
  121. data/test/compiler_test.rb +35 -0
  122. data/test/configuration_test.rb +69 -0
  123. data/test/dev_server_test.rb +24 -0
  124. data/test/helper_test.rb +52 -0
  125. data/test/manifest_test.rb +28 -0
  126. data/test/rake_tasks_test.rb +29 -0
  127. data/test/test_app/Rakefile +3 -0
  128. data/test/test_app/app/javascript/packs/application.js +10 -0
  129. data/test/test_app/config/application.rb +11 -0
  130. data/test/test_app/config/environment.rb +4 -0
  131. data/test/test_app/config/webpacker.yml +65 -0
  132. data/test/test_app/public/packs/manifest.json +6 -0
  133. data/test/test_helper.rb +29 -0
  134. data/webpacker-jets.gemspec +29 -0
  135. data/yarn.lock +5768 -0
  136. metadata +250 -0
metadata ADDED
@@ -0,0 +1,250 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webpacker-jets
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.100
5
+ platform: ruby
6
+ authors:
7
+ - Tung Nguyen
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: railties
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '4.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '4.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack-proxy
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.6.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.12'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.12'
69
+ description:
70
+ email:
71
+ - tongueroo@gmail.com
72
+ executables:
73
+ - webpack
74
+ - webpack-dev-server
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - ".eslintignore"
79
+ - ".eslintrc.js"
80
+ - ".gitignore"
81
+ - ".rubocop.yml"
82
+ - ".travis.yml"
83
+ - CHANGELOG.md
84
+ - Gemfile
85
+ - Gemfile.lock
86
+ - MIT-LICENSE
87
+ - README.md
88
+ - Rakefile
89
+ - docs/assets.md
90
+ - docs/cloud9.md
91
+ - docs/css.md
92
+ - docs/deployment.md
93
+ - docs/docker.md
94
+ - docs/env.md
95
+ - docs/es6.md
96
+ - docs/folder-structure.md
97
+ - docs/misc.md
98
+ - docs/props.md
99
+ - docs/testing.md
100
+ - docs/troubleshooting.md
101
+ - docs/typescript.md
102
+ - docs/webpack-dev-server.md
103
+ - docs/webpack.md
104
+ - docs/yarn.md
105
+ - exe/webpack
106
+ - exe/webpack-dev-server
107
+ - gemfiles/Gemfile-rails-edge
108
+ - gemfiles/Gemfile-rails.4.2.x
109
+ - gemfiles/Gemfile-rails.5.0.x
110
+ - gemfiles/Gemfile-rails.5.1.x
111
+ - lib/install/angular.rb
112
+ - lib/install/coffee.rb
113
+ - lib/install/config/.babelrc
114
+ - lib/install/config/.postcssrc.yml
115
+ - lib/install/config/webpack/development.js
116
+ - lib/install/config/webpack/environment.js
117
+ - lib/install/config/webpack/production.js
118
+ - lib/install/config/webpack/staging.js
119
+ - lib/install/config/webpack/test.js
120
+ - lib/install/config/webpacker.yml
121
+ - lib/install/elm.rb
122
+ - lib/install/erb.rb
123
+ - lib/install/examples/angular/hello_angular.js
124
+ - lib/install/examples/angular/hello_angular/app/app.component.ts
125
+ - lib/install/examples/angular/hello_angular/app/app.module.ts
126
+ - lib/install/examples/angular/hello_angular/index.ts
127
+ - lib/install/examples/angular/hello_angular/polyfills.ts
128
+ - lib/install/examples/angular/tsconfig.json
129
+ - lib/install/examples/coffee/hello_coffee.coffee
130
+ - lib/install/examples/elm/Main.elm
131
+ - lib/install/examples/elm/hello_elm.js
132
+ - lib/install/examples/erb/hello_erb.js.erb
133
+ - lib/install/examples/react/.babelrc
134
+ - lib/install/examples/react/hello_react.jsx
135
+ - lib/install/examples/vue/app.vue
136
+ - lib/install/examples/vue/hello_vue.js
137
+ - lib/install/javascript/packs/application.js
138
+ - lib/install/loaders/coffee.js
139
+ - lib/install/loaders/elm.js
140
+ - lib/install/loaders/erb.js
141
+ - lib/install/loaders/typescript.js
142
+ - lib/install/loaders/vue.js
143
+ - lib/install/react.rb
144
+ - lib/install/template.rb
145
+ - lib/install/vue.rb
146
+ - lib/tasks/installers.rake
147
+ - lib/tasks/webpacker.rake
148
+ - lib/tasks/webpacker/check_binstubs.rake
149
+ - lib/tasks/webpacker/check_node.rake
150
+ - lib/tasks/webpacker/check_yarn.rake
151
+ - lib/tasks/webpacker/clobber.rake
152
+ - lib/tasks/webpacker/compile.rake
153
+ - lib/tasks/webpacker/install.rake
154
+ - lib/tasks/webpacker/verify_install.rake
155
+ - lib/tasks/webpacker/yarn_install.rake
156
+ - lib/webpacker.rb
157
+ - lib/webpacker/commands.rb
158
+ - lib/webpacker/compiler.rb
159
+ - lib/webpacker/configuration.rb
160
+ - lib/webpacker/dev_server.rb
161
+ - lib/webpacker/dev_server_proxy.rb
162
+ - lib/webpacker/dev_server_runner.rb
163
+ - lib/webpacker/helper.rb
164
+ - lib/webpacker/instance.rb
165
+ - lib/webpacker/manifest.rb
166
+ - lib/webpacker/railtie.rb
167
+ - lib/webpacker/rake_tasks.rb
168
+ - lib/webpacker/runner.rb
169
+ - lib/webpacker/version.rb
170
+ - lib/webpacker/webpack_runner.rb
171
+ - package.json
172
+ - package/__tests__/environment.js
173
+ - package/config.js
174
+ - package/config_types/__tests__/config_list.js
175
+ - package/config_types/__tests__/config_object.js
176
+ - package/config_types/config_list.js
177
+ - package/config_types/config_object.js
178
+ - package/config_types/index.js
179
+ - package/environment.js
180
+ - package/environments/development.js
181
+ - package/environments/production.js
182
+ - package/environments/test.js
183
+ - package/index.js
184
+ - package/rules/babel.js
185
+ - package/rules/css.js
186
+ - package/rules/file.js
187
+ - package/rules/index.js
188
+ - package/rules/sass.js
189
+ - package/utils/__tests__/deep_assign.js
190
+ - package/utils/__tests__/deep_merge.js
191
+ - package/utils/__tests__/objectify.js
192
+ - package/utils/deep_assign.js
193
+ - package/utils/deep_merge.js
194
+ - package/utils/helpers.js
195
+ - package/utils/objectify.js
196
+ - test/command_test.rb
197
+ - test/compiler_test.rb
198
+ - test/configuration_test.rb
199
+ - test/dev_server_test.rb
200
+ - test/helper_test.rb
201
+ - test/manifest_test.rb
202
+ - test/rake_tasks_test.rb
203
+ - test/test_app/Rakefile
204
+ - test/test_app/app/javascript/packs/application.js
205
+ - test/test_app/config/application.rb
206
+ - test/test_app/config/environment.rb
207
+ - test/test_app/config/webpacker.yml
208
+ - test/test_app/public/packs/manifest.json
209
+ - test/test_helper.rb
210
+ - webpacker-jets.gemspec
211
+ - yarn.lock
212
+ homepage: https://github.com/tongueroo/webpacker
213
+ licenses:
214
+ - MIT
215
+ metadata: {}
216
+ post_install_message:
217
+ rdoc_options: []
218
+ require_paths:
219
+ - lib
220
+ required_ruby_version: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: 2.2.0
225
+ required_rubygems_version: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ requirements: []
231
+ rubyforge_project:
232
+ rubygems_version: 2.7.6
233
+ signing_key:
234
+ specification_version: 4
235
+ summary: Use webpack to manage app-like JavaScript modules in Jets
236
+ test_files:
237
+ - test/command_test.rb
238
+ - test/compiler_test.rb
239
+ - test/configuration_test.rb
240
+ - test/dev_server_test.rb
241
+ - test/helper_test.rb
242
+ - test/manifest_test.rb
243
+ - test/rake_tasks_test.rb
244
+ - test/test_app/Rakefile
245
+ - test/test_app/app/javascript/packs/application.js
246
+ - test/test_app/config/application.rb
247
+ - test/test_app/config/environment.rb
248
+ - test/test_app/config/webpacker.yml
249
+ - test/test_app/public/packs/manifest.json
250
+ - test/test_helper.rb