jetpacker 0.2.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.js +8 -8
- data/.github/workflows/jest.yml +38 -0
- data/.github/workflows/js-lint.yml +39 -0
- data/.github/workflows/rubocop.yml +39 -0
- data/.github/workflows/ruby.yml +70 -0
- data/.node-version +1 -1
- data/.travis.yml +8 -21
- data/CHANGELOG.jetpacker.md +18 -0
- data/CHANGELOG.md +44 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +115 -101
- data/README.md +24 -649
- data/docs/css.md +58 -3
- data/docs/deployment.md +2 -2
- data/docs/docker.md +17 -17
- data/docs/engines.md +13 -0
- data/docs/env.md +0 -2
- data/docs/integrations.md +220 -0
- data/docs/target.md +22 -0
- data/docs/testing.md +2 -3
- data/docs/troubleshooting.md +3 -1
- data/docs/typescript.md +92 -28
- data/docs/webpack-dev-server.md +1 -1
- data/jetpacker.gemspec +6 -5
- data/lib/install/config/babel.config.js +1 -3
- data/lib/install/config/webpacker.yml +11 -6
- data/lib/install/examples/react/tsconfig.json +2 -1
- data/lib/install/examples/typescript/tsconfig.json +2 -1
- data/lib/install/loaders/svelte.js +2 -2
- data/lib/install/template.rb +7 -7
- data/lib/install/typescript.rb +5 -1
- data/lib/jetpacker.rb +1 -0
- data/lib/jetpacker/version.rb +1 -1
- data/lib/tasks/webpacker/check_node.rake +15 -8
- data/lib/tasks/webpacker/check_yarn.rake +17 -10
- data/lib/tasks/webpacker/clean.rake +12 -8
- data/lib/tasks/webpacker/clobber.rake +8 -4
- data/lib/tasks/webpacker/yarn_install.rake +5 -16
- data/lib/webpacker.rb +1 -1
- data/lib/webpacker/commands.rb +33 -9
- data/lib/webpacker/compiler.rb +9 -5
- data/lib/webpacker/configuration.rb +13 -9
- data/lib/webpacker/dev_server_proxy.rb +3 -1
- data/lib/webpacker/dev_server_runner.rb +2 -2
- data/lib/webpacker/helper.rb +37 -18
- data/lib/webpacker/manifest.rb +4 -4
- data/lib/webpacker/railtie.rb +0 -43
- data/lib/webpacker/runner.rb +1 -0
- data/lib/webpacker/turbine.rb +36 -0
- data/lib/webpacker/version.rb +1 -1
- data/lib/webpacker/webpack_runner.rb +2 -2
- data/package.json +39 -39
- data/package/__tests__/config.js +12 -1
- data/package/__tests__/dev_server.js +2 -0
- data/package/__tests__/development.js +14 -1
- data/package/config.js +4 -1
- data/package/configPath.js +3 -0
- data/package/dev_server.js +1 -1
- data/package/env.js +1 -2
- data/package/environments/__tests__/base.js +29 -2
- data/package/environments/base.js +17 -7
- data/package/environments/development.js +39 -37
- data/package/environments/production.js +1 -3
- data/package/rules/babel.js +12 -5
- data/package/rules/file.js +1 -0
- data/package/rules/node_modules.js +1 -3
- data/package/rules/sass.js +7 -1
- data/package/utils/helpers.js +1 -1
- data/test/compiler_test.rb +8 -3
- data/test/configuration_test.rb +8 -7
- data/test/dev_server_runner_test.rb +1 -1
- data/test/helper_test.rb +3 -0
- data/test/manifest_test.rb +37 -6
- data/test/rake_tasks_test.rb +11 -0
- data/test/test_app/app/javascript/packs/multi_entry.css +4 -0
- data/test/test_app/app/javascript/packs/multi_entry.js +4 -0
- data/test/test_app/config/application.rb +0 -1
- data/test/test_app/config/webpacker.yml +7 -1
- data/test/test_app/public/packs/manifest.json +1 -0
- data/test/webpack_runner_test.rb +1 -1
- data/yarn.lock +3405 -2836
- metadata +38 -16
- data/gemfiles/Gemfile-rails.4.2.x +0 -9
- data/gemfiles/Gemfile-rails.5.0.x +0 -9
- data/gemfiles/Gemfile-rails.5.1.x +0 -9
- data/lib/install/javascript/packs/application.js +0 -18
- data/lib/install/loaders/typescript.js +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jetpacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rack-proxy
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.6.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: semantic_range
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.3.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.3.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,6 +117,10 @@ extra_rdoc_files: []
|
|
103
117
|
files:
|
104
118
|
- ".eslintignore"
|
105
119
|
- ".eslintrc.js"
|
120
|
+
- ".github/workflows/jest.yml"
|
121
|
+
- ".github/workflows/js-lint.yml"
|
122
|
+
- ".github/workflows/rubocop.yml"
|
123
|
+
- ".github/workflows/ruby.yml"
|
106
124
|
- ".gitignore"
|
107
125
|
- ".node-version"
|
108
126
|
- ".rubocop.yml"
|
@@ -124,8 +142,10 @@ files:
|
|
124
142
|
- docs/env.md
|
125
143
|
- docs/es6.md
|
126
144
|
- docs/folder-structure.md
|
145
|
+
- docs/integrations.md
|
127
146
|
- docs/misc.md
|
128
147
|
- docs/props.md
|
148
|
+
- docs/target.md
|
129
149
|
- docs/testing.md
|
130
150
|
- docs/troubleshooting.md
|
131
151
|
- docs/typescript.md
|
@@ -134,9 +154,6 @@ files:
|
|
134
154
|
- docs/webpack.md
|
135
155
|
- docs/yarn.md
|
136
156
|
- gemfiles/Gemfile-rails-edge
|
137
|
-
- gemfiles/Gemfile-rails.4.2.x
|
138
|
-
- gemfiles/Gemfile-rails.5.0.x
|
139
|
-
- gemfiles/Gemfile-rails.5.1.x
|
140
157
|
- gemfiles/Gemfile-rails.5.2.x
|
141
158
|
- gemfiles/Gemfile-rails.6.0.x
|
142
159
|
- jetpacker.gemspec
|
@@ -176,12 +193,10 @@ files:
|
|
176
193
|
- lib/install/examples/typescript/tsconfig.json
|
177
194
|
- lib/install/examples/vue/app.vue
|
178
195
|
- lib/install/examples/vue/hello_vue.js
|
179
|
-
- lib/install/javascript/packs/application.js
|
180
196
|
- lib/install/loaders/coffee.js
|
181
197
|
- lib/install/loaders/elm.js
|
182
198
|
- lib/install/loaders/erb.js
|
183
199
|
- lib/install/loaders/svelte.js
|
184
|
-
- lib/install/loaders/typescript.js
|
185
200
|
- lib/install/loaders/vue.js
|
186
201
|
- lib/install/react.rb
|
187
202
|
- lib/install/stimulus.rb
|
@@ -189,6 +204,7 @@ files:
|
|
189
204
|
- lib/install/template.rb
|
190
205
|
- lib/install/typescript.rb
|
191
206
|
- lib/install/vue.rb
|
207
|
+
- lib/jetpacker.rb
|
192
208
|
- lib/jetpacker/version.rb
|
193
209
|
- lib/tasks/installers.rake
|
194
210
|
- lib/tasks/webpacker.rake
|
@@ -217,6 +233,7 @@ files:
|
|
217
233
|
- lib/webpacker/railtie.rb
|
218
234
|
- lib/webpacker/rake_tasks.rb
|
219
235
|
- lib/webpacker/runner.rb
|
236
|
+
- lib/webpacker/turbine.rb
|
220
237
|
- lib/webpacker/version.rb
|
221
238
|
- lib/webpacker/webpack_runner.rb
|
222
239
|
- package.json
|
@@ -228,6 +245,7 @@ files:
|
|
228
245
|
- package/__tests__/staging.js
|
229
246
|
- package/__tests__/test.js
|
230
247
|
- package/config.js
|
248
|
+
- package/configPath.js
|
231
249
|
- package/config_types/__tests__/config_list.js
|
232
250
|
- package/config_types/__tests__/config_object.js
|
233
251
|
- package/config_types/config_list.js
|
@@ -269,6 +287,8 @@ files:
|
|
269
287
|
- test/rake_tasks_test.rb
|
270
288
|
- test/test_app/Rakefile
|
271
289
|
- test/test_app/app/javascript/packs/application.js
|
290
|
+
- test/test_app/app/javascript/packs/multi_entry.css
|
291
|
+
- test/test_app/app/javascript/packs/multi_entry.js
|
272
292
|
- test/test_app/bin/webpack
|
273
293
|
- test/test_app/bin/webpack-dev-server
|
274
294
|
- test/test_app/config.ru
|
@@ -284,12 +304,12 @@ files:
|
|
284
304
|
- test/webpack_runner_test.rb
|
285
305
|
- test/webpacker_test.rb
|
286
306
|
- yarn.lock
|
287
|
-
homepage: https://github.com/
|
307
|
+
homepage: https://github.com/tongueroo/jetpacker
|
288
308
|
licenses:
|
289
309
|
- MIT
|
290
310
|
metadata:
|
291
|
-
source_code_uri: https://github.com/tongueroo/jetpacker/tree/v0.
|
292
|
-
changelog_uri: https://github.com/tongueroo/jetpacker/blob/v0.
|
311
|
+
source_code_uri: https://github.com/tongueroo/jetpacker/tree/v0.5.0
|
312
|
+
changelog_uri: https://github.com/tongueroo/jetpacker/blob/v0.5.0/CHANGELOG.md
|
293
313
|
post_install_message:
|
294
314
|
rdoc_options: []
|
295
315
|
require_paths:
|
@@ -298,14 +318,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
298
318
|
requirements:
|
299
319
|
- - ">="
|
300
320
|
- !ruby/object:Gem::Version
|
301
|
-
version: 2.
|
321
|
+
version: 2.4.0
|
302
322
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
303
323
|
requirements:
|
304
324
|
- - ">="
|
305
325
|
- !ruby/object:Gem::Version
|
306
326
|
version: '0'
|
307
327
|
requirements: []
|
308
|
-
rubygems_version: 3.
|
328
|
+
rubygems_version: 3.1.4
|
309
329
|
signing_key:
|
310
330
|
specification_version: 4
|
311
331
|
summary: Use webpack to manage app-like JavaScript modules in Jets
|
@@ -321,6 +341,8 @@ test_files:
|
|
321
341
|
- test/rake_tasks_test.rb
|
322
342
|
- test/test_app/Rakefile
|
323
343
|
- test/test_app/app/javascript/packs/application.js
|
344
|
+
- test/test_app/app/javascript/packs/multi_entry.css
|
345
|
+
- test/test_app/app/javascript/packs/multi_entry.js
|
324
346
|
- test/test_app/bin/webpack
|
325
347
|
- test/test_app/bin/webpack-dev-server
|
326
348
|
- test/test_app/config.ru
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/* eslint no-console:0 */
|
2
|
-
// This file is automatically compiled by Webpack, along with any other files
|
3
|
-
// present in this directory. You're encouraged to place your actual application logic in
|
4
|
-
// a relevant structure within app/javascript and only use these pack files to reference
|
5
|
-
// that code so it'll be compiled.
|
6
|
-
//
|
7
|
-
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
|
8
|
-
// layout file, like app/views/layouts/application.html.erb
|
9
|
-
|
10
|
-
|
11
|
-
// Uncomment to copy all static images under ../images to the output folder and reference
|
12
|
-
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
13
|
-
// or the `imagePath` JavaScript helper below.
|
14
|
-
//
|
15
|
-
// const images = require.context('../images', true)
|
16
|
-
// const imagePath = (name) => images(name, true)
|
17
|
-
|
18
|
-
console.log('Hello World from Webpacker')
|