webpacker-legacy 0.1.0

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.
Files changed (79) hide show
  1. checksums.yaml +15 -0
  2. data/.eslintrc.js +14 -0
  3. data/.gitignore +4 -0
  4. data/.rubocop.yml +124 -0
  5. data/.travis.yml +22 -0
  6. data/CHANGELOG.md +148 -0
  7. data/Gemfile +11 -0
  8. data/Gemfile.lock +137 -0
  9. data/MIT-LICENSE +20 -0
  10. data/README.md +1118 -0
  11. data/Rakefile +12 -0
  12. data/lib/install/angular.rb +22 -0
  13. data/lib/install/bin/webpack-dev-server.tt +43 -0
  14. data/lib/install/bin/webpack.tt +27 -0
  15. data/lib/install/config/.babelrc +17 -0
  16. data/lib/install/config/.postcssrc.yml +3 -0
  17. data/lib/install/config/loaders/core/assets.js +12 -0
  18. data/lib/install/config/loaders/core/babel.js +5 -0
  19. data/lib/install/config/loaders/core/coffee.js +4 -0
  20. data/lib/install/config/loaders/core/erb.js +9 -0
  21. data/lib/install/config/loaders/core/sass.js +15 -0
  22. data/lib/install/config/loaders/installers/angular.js +4 -0
  23. data/lib/install/config/loaders/installers/elm.js +20 -0
  24. data/lib/install/config/loaders/installers/react.js +5 -0
  25. data/lib/install/config/loaders/installers/vue.js +41 -0
  26. data/lib/install/config/webpack/configuration.js +35 -0
  27. data/lib/install/config/webpack/development.js +32 -0
  28. data/lib/install/config/webpack/production.js +35 -0
  29. data/lib/install/config/webpack/shared.js +58 -0
  30. data/lib/install/config/webpack/test.js +6 -0
  31. data/lib/install/config/webpacker.yml +38 -0
  32. data/lib/install/elm.rb +33 -0
  33. data/lib/install/examples/angular/hello_angular.js +7 -0
  34. data/lib/install/examples/angular/hello_angular/app/app.component.ts +9 -0
  35. data/lib/install/examples/angular/hello_angular/app/app.module.ts +16 -0
  36. data/lib/install/examples/angular/hello_angular/index.ts +6 -0
  37. data/lib/install/examples/angular/hello_angular/polyfills.ts +19 -0
  38. data/lib/install/examples/angular/tsconfig.json +19 -0
  39. data/lib/install/examples/elm/Main.elm +54 -0
  40. data/lib/install/examples/elm/hello_elm.js +11 -0
  41. data/lib/install/examples/react/.babelrc +6 -0
  42. data/lib/install/examples/react/hello_react.jsx +26 -0
  43. data/lib/install/examples/vue/app.vue +22 -0
  44. data/lib/install/examples/vue/hello_vue.js +15 -0
  45. data/lib/install/javascript/packs/application.js +10 -0
  46. data/lib/install/react.rb +36 -0
  47. data/lib/install/template.rb +44 -0
  48. data/lib/install/vue.rb +19 -0
  49. data/lib/tasks/installers.rake +22 -0
  50. data/lib/tasks/webpacker.rake +19 -0
  51. data/lib/tasks/webpacker/check_node.rake +20 -0
  52. data/lib/tasks/webpacker/check_webpack_binstubs.rake +11 -0
  53. data/lib/tasks/webpacker/check_yarn.rake +15 -0
  54. data/lib/tasks/webpacker/clobber.rake +17 -0
  55. data/lib/tasks/webpacker/compile.rake +38 -0
  56. data/lib/tasks/webpacker/install.rake +23 -0
  57. data/lib/tasks/webpacker/verify_install.rake +18 -0
  58. data/lib/tasks/webpacker/yarn_install.rake +6 -0
  59. data/lib/webpacker-legacy.rb +2 -0
  60. data/lib/webpacker.rb +40 -0
  61. data/lib/webpacker/compiler.rb +20 -0
  62. data/lib/webpacker/configuration.rb +60 -0
  63. data/lib/webpacker/env.rb +23 -0
  64. data/lib/webpacker/file_loader.rb +24 -0
  65. data/lib/webpacker/helper.rb +62 -0
  66. data/lib/webpacker/manifest.rb +51 -0
  67. data/lib/webpacker/railtie.rb +18 -0
  68. data/lib/webpacker/version.rb +3 -0
  69. data/package.json +31 -0
  70. data/test/configuration_test.rb +32 -0
  71. data/test/env_test.rb +14 -0
  72. data/test/helper_test.rb +23 -0
  73. data/test/manifest_test.rb +30 -0
  74. data/test/test_app/config/secrets.yml +5 -0
  75. data/test/test_app/public/packs/manifest.json +4 -0
  76. data/test/webpacker_test.rb +15 -0
  77. data/webpacker.gemspec +23 -0
  78. data/yarn.lock +1014 -0
  79. metadata +200 -0
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webpacker-legacy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - David Heinemeier Hansson
8
+ - Gaurav Tiwari
9
+ - Jesse Chavez
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2017-06-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activesupport
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - <
20
+ - !ruby/object:Gem::Version
21
+ version: '4.2'
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
24
+ version: '3.2'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - <
30
+ - !ruby/object:Gem::Version
31
+ version: '4.2'
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '3.2'
35
+ - !ruby/object:Gem::Dependency
36
+ name: multi_json
37
+ requirement: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: '1.2'
42
+ type: :runtime
43
+ prerelease: false
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ~>
47
+ - !ruby/object:Gem::Version
48
+ version: '1.2'
49
+ - !ruby/object:Gem::Dependency
50
+ name: railties
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - <
54
+ - !ruby/object:Gem::Version
55
+ version: '4.2'
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '3.2'
59
+ type: :runtime
60
+ prerelease: false
61
+ version_requirements: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - <
64
+ - !ruby/object:Gem::Version
65
+ version: '4.2'
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '3.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.12'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.12'
83
+ description:
84
+ email:
85
+ - david@basecamp.com
86
+ - gaurav@gauravtiwari.co.uk
87
+ - jesse.chavez.r@gmail.com
88
+ executables: []
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - .eslintrc.js
93
+ - .gitignore
94
+ - .rubocop.yml
95
+ - .travis.yml
96
+ - CHANGELOG.md
97
+ - Gemfile
98
+ - Gemfile.lock
99
+ - MIT-LICENSE
100
+ - README.md
101
+ - Rakefile
102
+ - lib/install/angular.rb
103
+ - lib/install/bin/webpack-dev-server.tt
104
+ - lib/install/bin/webpack.tt
105
+ - lib/install/config/.babelrc
106
+ - lib/install/config/.postcssrc.yml
107
+ - lib/install/config/loaders/core/assets.js
108
+ - lib/install/config/loaders/core/babel.js
109
+ - lib/install/config/loaders/core/coffee.js
110
+ - lib/install/config/loaders/core/erb.js
111
+ - lib/install/config/loaders/core/sass.js
112
+ - lib/install/config/loaders/installers/angular.js
113
+ - lib/install/config/loaders/installers/elm.js
114
+ - lib/install/config/loaders/installers/react.js
115
+ - lib/install/config/loaders/installers/vue.js
116
+ - lib/install/config/webpack/configuration.js
117
+ - lib/install/config/webpack/development.js
118
+ - lib/install/config/webpack/production.js
119
+ - lib/install/config/webpack/shared.js
120
+ - lib/install/config/webpack/test.js
121
+ - lib/install/config/webpacker.yml
122
+ - lib/install/elm.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/elm/Main.elm
130
+ - lib/install/examples/elm/hello_elm.js
131
+ - lib/install/examples/react/.babelrc
132
+ - lib/install/examples/react/hello_react.jsx
133
+ - lib/install/examples/vue/app.vue
134
+ - lib/install/examples/vue/hello_vue.js
135
+ - lib/install/javascript/packs/application.js
136
+ - lib/install/react.rb
137
+ - lib/install/template.rb
138
+ - lib/install/vue.rb
139
+ - lib/tasks/installers.rake
140
+ - lib/tasks/webpacker.rake
141
+ - lib/tasks/webpacker/check_node.rake
142
+ - lib/tasks/webpacker/check_webpack_binstubs.rake
143
+ - lib/tasks/webpacker/check_yarn.rake
144
+ - lib/tasks/webpacker/clobber.rake
145
+ - lib/tasks/webpacker/compile.rake
146
+ - lib/tasks/webpacker/install.rake
147
+ - lib/tasks/webpacker/verify_install.rake
148
+ - lib/tasks/webpacker/yarn_install.rake
149
+ - lib/webpacker-legacy.rb
150
+ - lib/webpacker.rb
151
+ - lib/webpacker/compiler.rb
152
+ - lib/webpacker/configuration.rb
153
+ - lib/webpacker/env.rb
154
+ - lib/webpacker/file_loader.rb
155
+ - lib/webpacker/helper.rb
156
+ - lib/webpacker/manifest.rb
157
+ - lib/webpacker/railtie.rb
158
+ - lib/webpacker/version.rb
159
+ - package.json
160
+ - test/configuration_test.rb
161
+ - test/env_test.rb
162
+ - test/helper_test.rb
163
+ - test/manifest_test.rb
164
+ - test/test_app/config/secrets.yml
165
+ - test/test_app/public/packs/manifest.json
166
+ - test/webpacker_test.rb
167
+ - webpacker.gemspec
168
+ - yarn.lock
169
+ homepage: https://github.com/rails/webpacker
170
+ licenses:
171
+ - MIT
172
+ metadata: {}
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: 1.9.3
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ requirements: []
188
+ rubyforge_project:
189
+ rubygems_version: 2.6.12
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: Use Webpack to manage app-like JavaScript modules in Rails
193
+ test_files:
194
+ - test/configuration_test.rb
195
+ - test/env_test.rb
196
+ - test/helper_test.rb
197
+ - test/manifest_test.rb
198
+ - test/test_app/config/secrets.yml
199
+ - test/test_app/public/packs/manifest.json
200
+ - test/webpacker_test.rb