webpacker-pnpm 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitattributes +0 -0
- data/.github/FUNDING.yml +3 -0
- data/.github/workflows/ci.yaml +50 -0
- data/.gitignore +5 -2
- data/.rubocop.yml +24 -91
- data/CHANGELOG.md +69 -45
- data/Gemfile +8 -17
- data/LICENSE +29 -0
- data/README.md +33 -35
- data/Rakefile +11 -11
- data/bin/console +15 -15
- data/bin/setup +8 -8
- data/gemfiles/Gemfile-rails.5.2.x +0 -0
- data/gemfiles/Gemfile-rails.6.0.x +0 -0
- data/lib/webpacker/pnpm/patches.rb +61 -53
- data/lib/webpacker/pnpm/railtie.rb +33 -24
- data/lib/webpacker/pnpm/version.rb +9 -7
- data/lib/webpacker/pnpm.rb +5 -5
- data/lib/webpacker/tasks/check_pnpm.rake +42 -27
- data/lib/webpacker/tasks/env.rake +22 -20
- data/lib/webpacker/tasks/pnpm_install.rake +14 -14
- data/test/rake_tasks_test.rb +97 -106
- data/test/test_app/.gitignore +6 -6
- data/test/test_app/Rakefile +5 -5
- data/test/test_app/app/javascript/packs/application.js +10 -10
- data/test/test_app/app/javascript/packs/multi_entry.css +3 -3
- data/test/test_app/app/javascript/packs/multi_entry.js +4 -4
- data/test/test_app/bin/rails +4 -6
- data/test/test_app/bin/rake +4 -6
- data/test/test_app/bin/setup +25 -27
- data/test/test_app/bin/webpack +15 -14
- data/test/test_app/bin/webpack-dev-server +15 -14
- data/test/test_app/config/application.rb +13 -13
- data/test/test_app/config/boot.rb +5 -0
- data/test/test_app/config/environment.rb +6 -6
- data/test/test_app/config/webpack/development.js +0 -0
- data/test/test_app/config/webpack/environment.js +0 -0
- data/test/test_app/config/webpacker.yml +0 -0
- data/test/test_app/config/webpacker_public_root.yml +19 -19
- data/test/test_app/config.ru +7 -7
- data/test/test_app/package.json +0 -0
- data/test/test_app/pnpm-lock.yaml +0 -0
- data/test/test_app/public/packs/manifest.json +31 -31
- data/test/test_helper.rb +61 -64
- data/webpacker-pnpm.gemspec +44 -36
- metadata +72 -42
- data/.travis.yml +0 -45
- data/gemfiles/Gemfile-rails-edge +0 -12
@@ -1,13 +1,13 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "action_controller/railtie"
|
4
|
-
require "action_view/railtie"
|
5
|
-
require "webpacker"
|
6
|
-
require "webpacker/pnpm"
|
7
|
-
|
8
|
-
module TestApp
|
9
|
-
class Application < ::Rails::Application
|
10
|
-
config.secret_key_base = "abcdef"
|
11
|
-
config.eager_load = true
|
12
|
-
end
|
13
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "action_controller/railtie"
|
4
|
+
require "action_view/railtie"
|
5
|
+
require "webpacker"
|
6
|
+
require "webpacker/pnpm"
|
7
|
+
|
8
|
+
module TestApp
|
9
|
+
class Application < ::Rails::Application
|
10
|
+
config.secret_key_base = "abcdef"
|
11
|
+
config.eager_load = true
|
12
|
+
end
|
13
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "application"
|
4
|
-
|
5
|
-
Rails.backtrace_cleaner.remove_silencers!
|
6
|
-
Rails.application.initialize!
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "application"
|
4
|
+
|
5
|
+
Rails.backtrace_cleaner.remove_silencers!
|
6
|
+
Rails.application.initialize!
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,19 +1,19 @@
|
|
1
|
-
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
|
-
|
3
|
-
default: &default
|
4
|
-
public_root_path: ../public
|
5
|
-
|
6
|
-
development:
|
7
|
-
<<: *default
|
8
|
-
compile: true
|
9
|
-
|
10
|
-
test:
|
11
|
-
<<: *default
|
12
|
-
compile: true
|
13
|
-
public_output_path: packs-test
|
14
|
-
|
15
|
-
production:
|
16
|
-
<<: *default
|
17
|
-
compile: false
|
18
|
-
extract_css: true
|
19
|
-
cache_manifest: true
|
1
|
+
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
|
+
|
3
|
+
default: &default
|
4
|
+
public_root_path: ../public
|
5
|
+
|
6
|
+
development:
|
7
|
+
<<: *default
|
8
|
+
compile: true
|
9
|
+
|
10
|
+
test:
|
11
|
+
<<: *default
|
12
|
+
compile: true
|
13
|
+
public_output_path: packs-test
|
14
|
+
|
15
|
+
production:
|
16
|
+
<<: *default
|
17
|
+
compile: false
|
18
|
+
extract_css: true
|
19
|
+
cache_manifest: true
|
data/test/test_app/config.ru
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# This file allows the `Rails.root` to be correctly determined.
|
4
|
-
|
5
|
-
require_relative "config/environment"
|
6
|
-
|
7
|
-
run
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This file allows the `Rails.root` to be correctly determined.
|
4
|
+
|
5
|
+
require_relative "config/environment"
|
6
|
+
|
7
|
+
run(Rails.application)
|
data/test/test_app/package.json
CHANGED
File without changes
|
File without changes
|
@@ -1,31 +1,31 @@
|
|
1
|
-
{
|
2
|
-
"bootstrap.css": "/packs/bootstrap-c38deda30895059837cf.css",
|
3
|
-
"application.css": "/packs/application-dd6b1cd38bfa093df600.css",
|
4
|
-
"bootstrap.js": "/packs/bootstrap-300631c4f0e0f9c865bc.js",
|
5
|
-
"application.js": "/packs/application-k344a6d59eef8632c9d1.js",
|
6
|
-
"application.png": "/packs/application-k344a6d59eef8632c9d1.png",
|
7
|
-
"fonts/fa-regular-400.woff2": "/packs/fonts/fa-regular-400-944fb546bd7018b07190a32244f67dc9.woff2",
|
8
|
-
"media/images/image.jpg": "/packs/media/images/image-c38deda30895059837cf.jpg",
|
9
|
-
"media/images/nested/image.jpg": "/packs/media/images/nested/image-c38deda30895059837cf.jpg",
|
10
|
-
"media/images/mb-icon.png": "/packs/media/images/mb-icon-c38deda30895059837cf.png",
|
11
|
-
"media/images/nested/mb-icon.png": "/packs/media/images/nested/mb-icon-c38deda30895059837cf.png",
|
12
|
-
"entrypoints": {
|
13
|
-
"application": {
|
14
|
-
"js": [
|
15
|
-
"/packs/vendors~application~bootstrap-c20632e7baf2c81200d3.chunk.js",
|
16
|
-
"/packs/vendors~application-e55f2aae30c07fb6d82a.chunk.js",
|
17
|
-
"/packs/application-k344a6d59eef8632c9d1.js"
|
18
|
-
],
|
19
|
-
"css": [
|
20
|
-
"/packs/1-c20632e7baf2c81200d3.chunk.css",
|
21
|
-
"/packs/application-k344a6d59eef8632c9d1.chunk.css"
|
22
|
-
]
|
23
|
-
},
|
24
|
-
"hello_stimulus": {
|
25
|
-
"css": [
|
26
|
-
"/packs/1-c20632e7baf2c81200d3.chunk.css",
|
27
|
-
"/packs/hello_stimulus-k344a6d59eef8632c9d1.chunk.css"
|
28
|
-
]
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
1
|
+
{
|
2
|
+
"bootstrap.css": "/packs/bootstrap-c38deda30895059837cf.css",
|
3
|
+
"application.css": "/packs/application-dd6b1cd38bfa093df600.css",
|
4
|
+
"bootstrap.js": "/packs/bootstrap-300631c4f0e0f9c865bc.js",
|
5
|
+
"application.js": "/packs/application-k344a6d59eef8632c9d1.js",
|
6
|
+
"application.png": "/packs/application-k344a6d59eef8632c9d1.png",
|
7
|
+
"fonts/fa-regular-400.woff2": "/packs/fonts/fa-regular-400-944fb546bd7018b07190a32244f67dc9.woff2",
|
8
|
+
"media/images/image.jpg": "/packs/media/images/image-c38deda30895059837cf.jpg",
|
9
|
+
"media/images/nested/image.jpg": "/packs/media/images/nested/image-c38deda30895059837cf.jpg",
|
10
|
+
"media/images/mb-icon.png": "/packs/media/images/mb-icon-c38deda30895059837cf.png",
|
11
|
+
"media/images/nested/mb-icon.png": "/packs/media/images/nested/mb-icon-c38deda30895059837cf.png",
|
12
|
+
"entrypoints": {
|
13
|
+
"application": {
|
14
|
+
"js": [
|
15
|
+
"/packs/vendors~application~bootstrap-c20632e7baf2c81200d3.chunk.js",
|
16
|
+
"/packs/vendors~application-e55f2aae30c07fb6d82a.chunk.js",
|
17
|
+
"/packs/application-k344a6d59eef8632c9d1.js"
|
18
|
+
],
|
19
|
+
"css": [
|
20
|
+
"/packs/1-c20632e7baf2c81200d3.chunk.css",
|
21
|
+
"/packs/application-k344a6d59eef8632c9d1.chunk.css"
|
22
|
+
]
|
23
|
+
},
|
24
|
+
"hello_stimulus": {
|
25
|
+
"css": [
|
26
|
+
"/packs/1-c20632e7baf2c81200d3.chunk.css",
|
27
|
+
"/packs/hello_stimulus-k344a6d59eef8632c9d1.chunk.css"
|
28
|
+
]
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
data/test/test_helper.rb
CHANGED
@@ -1,64 +1,61 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "rails"
|
4
|
-
require "rails/test_help"
|
5
|
-
require "etc"
|
6
|
-
require "fileutils"
|
7
|
-
require "open3"
|
8
|
-
|
9
|
-
require_relative "test_app/config/environment"
|
10
|
-
|
11
|
-
Rails.env = "production"
|
12
|
-
Webpacker.instance = ::Webpacker::Instance.new
|
13
|
-
|
14
|
-
module Webpacker
|
15
|
-
module PNPM
|
16
|
-
class Test < ActiveSupport::TestCase
|
17
|
-
# force test parallelization - this is not about test speed, it is about
|
18
|
-
# maximizing the likelihood of having tests fail by providing isolated
|
19
|
-
# execution threads. manually specify the number of workers, as by default
|
20
|
-
# Rails uses the number of physical, not logical, cores. Additionally,
|
21
|
-
# spawn threads rather than fork processes as Rails' DRb implementation
|
22
|
-
# only supports UNIX systems
|
23
|
-
Minitest.parallel_executor = Minitest::Parallel::Executor.new(Etc.nprocessors)
|
24
|
-
parallelize_me!
|
25
|
-
|
26
|
-
protected
|
27
|
-
|
28
|
-
# concurrent scoped chdir calls are not supported, as they can cause
|
29
|
-
# unforeseen and unpredictable bugs. instead, allow copying the desired
|
30
|
-
# directory to a temp directory before performing possible filesystem
|
31
|
-
# manipulations. opts are passed through to Open3::capture2e
|
32
|
-
def chdir_concurrent(dir, cmd, env = {}, opts = {})
|
33
|
-
# Process::spawn requires an env hash of strings
|
34
|
-
env.stringify_keys!
|
35
|
-
env.transform_values!(&:to_s)
|
36
|
-
|
37
|
-
env = ENV.to_h.merge(env)
|
38
|
-
isolated = opts.delete(:isolated)
|
39
|
-
output = nil
|
40
|
-
|
41
|
-
begin
|
42
|
-
# if we're want an isolated environment, copy the directory contents to
|
43
|
-
# a new temporary directory and change the working directory to it
|
44
|
-
if isolated
|
45
|
-
files = Dir[File.join(dir, "*")].reject
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rails"
|
4
|
+
require "rails/test_help"
|
5
|
+
require "etc"
|
6
|
+
require "fileutils"
|
7
|
+
require "open3"
|
8
|
+
|
9
|
+
require_relative "test_app/config/environment"
|
10
|
+
|
11
|
+
Rails.env = "production"
|
12
|
+
Webpacker.instance = ::Webpacker::Instance.new
|
13
|
+
|
14
|
+
module Webpacker
|
15
|
+
module PNPM
|
16
|
+
class Test < ActiveSupport::TestCase
|
17
|
+
# force test parallelization - this is not about test speed, it is about
|
18
|
+
# maximizing the likelihood of having tests fail by providing isolated
|
19
|
+
# execution threads. manually specify the number of workers, as by default
|
20
|
+
# Rails uses the number of physical, not logical, cores. Additionally,
|
21
|
+
# spawn threads rather than fork processes as Rails' DRb implementation
|
22
|
+
# only supports UNIX systems
|
23
|
+
Minitest.parallel_executor = Minitest::Parallel::Executor.new(Etc.nprocessors)
|
24
|
+
parallelize_me!
|
25
|
+
|
26
|
+
protected
|
27
|
+
|
28
|
+
# concurrent scoped chdir calls are not supported, as they can cause
|
29
|
+
# unforeseen and unpredictable bugs. instead, allow copying the desired
|
30
|
+
# directory to a temp directory before performing possible filesystem
|
31
|
+
# manipulations. opts are passed through to Open3::capture2e
|
32
|
+
def chdir_concurrent(dir, cmd, env = {}, opts = {})
|
33
|
+
# Process::spawn requires an env hash of strings
|
34
|
+
env.stringify_keys!
|
35
|
+
env.transform_values!(&:to_s)
|
36
|
+
|
37
|
+
env = ENV.to_h.merge(env)
|
38
|
+
isolated = opts.delete(:isolated)
|
39
|
+
output = nil
|
40
|
+
|
41
|
+
begin
|
42
|
+
# if we're want an isolated environment, copy the directory contents to
|
43
|
+
# a new temporary directory and change the working directory to it
|
44
|
+
if isolated
|
45
|
+
files = Dir[File.join(dir, "*")].reject { |f| f.include?("node_modules") }
|
46
|
+
dir = Dir.mktmpdir
|
47
|
+
FileUtils.cp_r(files, dir)
|
48
|
+
end
|
49
|
+
|
50
|
+
output, = Open3.capture2e(env, "cd #{dir} && #{cmd}", opts)
|
51
|
+
yield(dir) if block_given?
|
52
|
+
ensure
|
53
|
+
# make sure we remove the generated temp directory
|
54
|
+
FileUtils.remove_entry_secure(dir) if isolated
|
55
|
+
end
|
56
|
+
|
57
|
+
output
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
data/webpacker-pnpm.gemspec
CHANGED
@@ -1,36 +1,44 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path("lib", __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require "webpacker/pnpm/version"
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = "webpacker-pnpm"
|
9
|
-
spec.version = Webpacker::PNPM::VERSION
|
10
|
-
spec.
|
11
|
-
spec.email =
|
12
|
-
spec.
|
13
|
-
spec.
|
14
|
-
|
15
|
-
|
16
|
-
spec.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
spec.
|
29
|
-
|
30
|
-
spec.
|
31
|
-
spec.
|
32
|
-
spec.
|
33
|
-
|
34
|
-
|
35
|
-
spec.
|
36
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "webpacker/pnpm/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "webpacker-pnpm"
|
9
|
+
spec.version = Webpacker::PNPM::VERSION
|
10
|
+
spec.author = "Elias Gabriel"
|
11
|
+
spec.email = "me@eliasfgabriel.com"
|
12
|
+
spec.homepage = "https://github.com/thearchitector/webpacker-pnpm"
|
13
|
+
spec.license = "BSD-3-Clause"
|
14
|
+
|
15
|
+
spec.summary = "Replaces Webpacker's Yarn environment with pnpm."
|
16
|
+
spec.description = <<~HEREDOC.gsub(/[[:space:]]+/, " ").strip
|
17
|
+
webpacker-pnpm minimizes dependency hell, improves code quality stability, and
|
18
|
+
reduces node_modules folder sizes by replacing Webpacker's Yarn environment with pnpm.
|
19
|
+
HEREDOC
|
20
|
+
|
21
|
+
spec.metadata = {
|
22
|
+
"homepage_uri" => spec.homepage,
|
23
|
+
"source_code_uri" => "#{spec.homepage}/tree/v#{spec.version}",
|
24
|
+
"changelog_uri" => "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md",
|
25
|
+
"bug_tracker_uri" => "#{spec.homepage}/issues"
|
26
|
+
}
|
27
|
+
|
28
|
+
spec.required_ruby_version = ">= 2.4.0"
|
29
|
+
|
30
|
+
spec.add_dependency "rails", ">= 5.2"
|
31
|
+
spec.add_dependency "rake", ">= 12.3.3"
|
32
|
+
spec.add_dependency "semantic_range", "~> 2.3"
|
33
|
+
spec.add_dependency "webpacker", "~> 5.0"
|
34
|
+
|
35
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
36
|
+
spec.add_development_dependency "practical-pig", "~> 1.0"
|
37
|
+
spec.add_development_dependency "rubocop", "~> 0.83.0"
|
38
|
+
spec.add_development_dependency "rubocop-minitest", "~> 0.9"
|
39
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.3"
|
40
|
+
spec.add_development_dependency "rubocop-rails", "~> 2.5"
|
41
|
+
|
42
|
+
spec.files = `git ls-files`.split("\n")
|
43
|
+
spec.test_files = `git ls-files -- test/*`.split("\n")
|
44
|
+
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpacker-pnpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elias Gabriel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,121 +25,151 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '5.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
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: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: semantic_range
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.3'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: webpacker
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '5.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '5.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 5.
|
76
|
-
type: :
|
75
|
+
version: '5.0'
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 5.
|
82
|
+
version: '5.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: practical-pig
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.83.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.83.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-minitest
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.9'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
124
|
+
version: '0.9'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-performance
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.3'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.3'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: rubocop-rails
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
114
142
|
requirements:
|
115
|
-
- - "
|
143
|
+
- - "~>"
|
116
144
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
145
|
+
version: '2.5'
|
118
146
|
type: :development
|
119
147
|
prerelease: false
|
120
148
|
version_requirements: !ruby/object:Gem::Requirement
|
121
149
|
requirements:
|
122
|
-
- - "
|
150
|
+
- - "~>"
|
123
151
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
125
|
-
description:
|
126
|
-
|
127
|
-
|
152
|
+
version: '2.5'
|
153
|
+
description: webpacker-pnpm minimizes dependency hell, improves code quality stability,
|
154
|
+
and reduces node_modules folder sizes by replacing Webpacker's Yarn environment
|
155
|
+
with pnpm.
|
156
|
+
email: me@eliasfgabriel.com
|
128
157
|
executables: []
|
129
158
|
extensions: []
|
130
159
|
extra_rdoc_files: []
|
131
160
|
files:
|
132
161
|
- ".gitattributes"
|
162
|
+
- ".github/FUNDING.yml"
|
163
|
+
- ".github/workflows/ci.yaml"
|
133
164
|
- ".gitignore"
|
134
165
|
- ".rubocop.yml"
|
135
|
-
- ".travis.yml"
|
136
166
|
- CHANGELOG.md
|
137
167
|
- Gemfile
|
168
|
+
- LICENSE
|
138
169
|
- README.md
|
139
170
|
- Rakefile
|
140
171
|
- bin/console
|
141
172
|
- bin/setup
|
142
|
-
- gemfiles/Gemfile-rails-edge
|
143
173
|
- gemfiles/Gemfile-rails.5.2.x
|
144
174
|
- gemfiles/Gemfile-rails.6.0.x
|
145
175
|
- lib/webpacker/pnpm.rb
|
@@ -175,11 +205,12 @@ files:
|
|
175
205
|
- webpacker-pnpm.gemspec
|
176
206
|
homepage: https://github.com/thearchitector/webpacker-pnpm
|
177
207
|
licenses:
|
178
|
-
-
|
208
|
+
- BSD-3-Clause
|
179
209
|
metadata:
|
180
210
|
homepage_uri: https://github.com/thearchitector/webpacker-pnpm
|
181
|
-
source_code_uri: https://github.com/thearchitector/webpacker-pnpm/tree/v1.2.
|
182
|
-
changelog_uri: https://github.com/thearchitector/webpacker-pnpm/blob/v1.2.
|
211
|
+
source_code_uri: https://github.com/thearchitector/webpacker-pnpm/tree/v1.2.2
|
212
|
+
changelog_uri: https://github.com/thearchitector/webpacker-pnpm/blob/v1.2.2/CHANGELOG.md
|
213
|
+
bug_tracker_uri: https://github.com/thearchitector/webpacker-pnpm/issues
|
183
214
|
post_install_message:
|
184
215
|
rdoc_options: []
|
185
216
|
require_paths:
|
@@ -195,11 +226,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
226
|
- !ruby/object:Gem::Version
|
196
227
|
version: '0'
|
197
228
|
requirements: []
|
198
|
-
|
199
|
-
rubygems_version: 2.7.6.2
|
229
|
+
rubygems_version: 3.0.3
|
200
230
|
signing_key:
|
201
231
|
specification_version: 4
|
202
|
-
summary: Replaces Webpacker's Yarn environment with pnpm
|
232
|
+
summary: Replaces Webpacker's Yarn environment with pnpm.
|
203
233
|
test_files:
|
204
234
|
- test/rake_tasks_test.rb
|
205
235
|
- test/test_app/.gitignore
|