webpacker-pnpm 1.2.1 → 1.2.3

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +0 -0
  3. data/.github/FUNDING.yml +3 -0
  4. data/.github/workflows/ci.yaml +51 -0
  5. data/.gitignore +3 -5
  6. data/.rubocop.yml +23 -5
  7. data/CHANGELOG.md +76 -63
  8. data/Gemfile +8 -8
  9. data/LICENSE +29 -0
  10. data/README.md +44 -37
  11. data/bin/console +15 -15
  12. data/bin/setup +8 -8
  13. data/gemfiles/Gemfile-rails.5.2.x +0 -0
  14. data/gemfiles/Gemfile-rails.6.0.x +0 -0
  15. data/lib/webpacker/pnpm/patches.rb +83 -53
  16. data/lib/webpacker/pnpm/railtie.rb +34 -33
  17. data/lib/webpacker/pnpm/version.rb +9 -9
  18. data/lib/webpacker/pnpm.rb +5 -5
  19. data/lib/webpacker/tasks/check_pnpm.rake +42 -42
  20. data/lib/webpacker/tasks/env.rake +22 -22
  21. data/lib/webpacker/tasks/pnpm_install.rake +14 -14
  22. data/test_app/.gitignore +6 -0
  23. data/test_app/Gemfile +5 -0
  24. data/test_app/Gemfile.lock +175 -0
  25. data/{Rakefile → test_app/Rakefile} +12 -11
  26. data/test_app/app/javascript/packs/application.js +10 -0
  27. data/{test/test_app → test_app}/app/javascript/packs/multi_entry.css +3 -3
  28. data/{test/test_app → test_app}/app/javascript/packs/multi_entry.js +4 -4
  29. data/{test/test_app → test_app}/bin/rails +0 -0
  30. data/{test/test_app → test_app}/bin/rake +0 -0
  31. data/{test/test_app → test_app}/bin/setup +0 -0
  32. data/{test/test_app → test_app}/bin/webpack +15 -15
  33. data/{test/test_app → test_app}/bin/webpack-dev-server +15 -15
  34. data/{test/test_app → test_app}/config/application.rb +13 -13
  35. data/{test/test_app → test_app}/config/boot.rb +5 -5
  36. data/{test/test_app → test_app}/config/environment.rb +6 -6
  37. data/{test/test_app → test_app}/config/webpack/development.js +0 -0
  38. data/{test/test_app → test_app}/config/webpack/environment.js +0 -0
  39. data/test_app/config/webpack/production.js +0 -0
  40. data/{test/test_app → test_app}/config/webpacker.yml +0 -0
  41. data/{test/test_app → test_app}/config/webpacker_public_root.yml +19 -19
  42. data/{test/test_app → test_app}/config.ru +7 -7
  43. data/{test/test_app → test_app}/package.json +3 -1
  44. data/test_app/pnpm-lock.yaml +6756 -0
  45. data/{test/test_app → test_app}/public/packs/manifest.json +31 -31
  46. data/test_app/src/index.js +0 -0
  47. data/{test → test_app/test}/rake_tasks_test.rb +108 -97
  48. data/{test → test_app/test}/test_helper.rb +61 -61
  49. data/webpacker-pnpm.gemspec +44 -44
  50. metadata +41 -59
  51. data/.travis.yml +0 -42
  52. data/test/test_app/.gitignore +0 -7
  53. data/test/test_app/Rakefile +0 -5
  54. data/test/test_app/app/javascript/packs/application.js +0 -10
  55. data/test/test_app/pnpm-lock.yaml +0 -20
@@ -1,33 +1,34 @@
1
- # frozen_string_literal: true
2
-
3
- require "rails/railtie"
4
-
5
- module Webpacker
6
- module PNPM
7
- class Railtie < Rails::Railtie
8
- rake_tasks do
9
- # load all the rake tasks within the `tasks` directory
10
- Dir[File.join(File.dirname(__FILE__), "../tasks/**/*.rake")].each do |task|
11
- load task
12
- end
13
- end
14
-
15
- # manually specify node_modules bin path to skip Yarn execution during
16
- # Webpack runner initialization
17
- config.before_configuration do
18
- begin
19
- ENV["WEBPACKER_NODE_MODULES_BIN_PATH"] ||= File.join(`pnpm root`.chomp, ".bin")
20
- rescue Errno::ENOENT
21
- # use abort instead of Rails' logger because it doesn't show up when
22
- # run within Rake tasks
23
- abort(
24
- <<~HEREDOC.squish
25
- \e[31m[FATAL] pnpm is not installed or not present in $PATH.
26
- Install pnpm and try again.\e[0m
27
- HEREDOC
28
- )
29
- end
30
- end
31
- end
32
- end
33
- end
1
+ # frozen_string_literal: true
2
+
3
+ require "rails/railtie"
4
+
5
+ module Webpacker
6
+ module PNPM
7
+ class Railtie < Rails::Railtie
8
+ rake_tasks do
9
+ # load all the rake tasks within the `tasks` directory
10
+ Dir[File.join(File.dirname(__FILE__), "../tasks/**/*.rake")].each do |task|
11
+ load task
12
+ end
13
+ end
14
+
15
+ # manually specify node_modules bin path to skip Yarn execution during
16
+ # Webpack runner initialization
17
+ config.before_configuration do
18
+ begin
19
+ ENV["WEBPACKER_NODE_MODULES_BIN_PATH"] ||= File.join(`pnpm root`.chomp,
20
+ ".bin")
21
+ rescue Errno::ENOENT
22
+ # use abort instead of Rails' logger because it doesn't show up when
23
+ # run within Rake tasks
24
+ abort(
25
+ <<~HEREDOC.squish
26
+ \e[31m[FATAL] pnpm is not installed or not present in $PATH.
27
+ Install pnpm and try again.\e[0m
28
+ HEREDOC
29
+ )
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -1,9 +1,9 @@
1
- # frozen_string_literal: true
2
-
3
- module Webpacker
4
- module PNPM
5
- VERSION = "1.2.1"
6
-
7
- public_constant :VERSION
8
- end
9
- end
1
+ # frozen_string_literal: true
2
+
3
+ module Webpacker
4
+ module PNPM
5
+ VERSION = "1.2.3"
6
+
7
+ public_constant :VERSION
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "pnpm/version"
4
- require_relative "pnpm/railtie"
5
- require_relative "pnpm/patches"
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "pnpm/version"
4
+ require_relative "pnpm/railtie"
5
+ require_relative "pnpm/patches"
@@ -1,42 +1,42 @@
1
- # frozen_string_literal: true
2
-
3
- require "semantic_range"
4
-
5
- namespace :webpacker do
6
- desc "Verifies if pnpm is installed"
7
- task check_pnpm: [:environment] do
8
- begin
9
- $stdout.puts "Verifying pnpm version..."
10
-
11
- pnpm_version = `pnpm --version`.chomp
12
- raise Errno::ENOENT if pnpm_version.blank?
13
-
14
- begin
15
- pnpm_range = ">= 3.0.0"
16
- is_unsupported = SemanticRange.satisfies?(pnpm_version, pnpm_range)
17
- rescue StandardError
18
- is_unsupported = false
19
- end
20
-
21
- unless is_unsupported
22
- warn(
23
- <<~HEREDOC.squish
24
- Webpacker requires pnpm \"#{pnpm_range}\" and you are using #{pnpm_version}.
25
- Please upgrade pnpm https://pnpm.js.org/en/installation/.
26
- HEREDOC
27
- )
28
- warn("Exiting!")
29
- exit!
30
- end
31
- rescue Errno::ENOENT
32
- warn(
33
- <<~HEREDOC.squish
34
- pnpm is not installed. Please download and install pnpm from
35
- https://pnpm.js.org/en/installation/.
36
- HEREDOC
37
- )
38
- warn("Exiting!")
39
- exit!
40
- end
41
- end
42
- end
1
+ # frozen_string_literal: true
2
+
3
+ require "semantic_range"
4
+
5
+ namespace :webpacker do
6
+ desc "Verifies if pnpm is installed"
7
+ task check_pnpm: [:environment] do
8
+ begin
9
+ $stdout.puts "Verifying pnpm version..."
10
+
11
+ pnpm_version = `pnpm --version`.chomp
12
+ raise Errno::ENOENT if pnpm_version.blank?
13
+
14
+ begin
15
+ pnpm_range = ">= 3.0.0"
16
+ is_unsupported = SemanticRange.satisfies?(pnpm_version, pnpm_range)
17
+ rescue StandardError
18
+ is_unsupported = false
19
+ end
20
+
21
+ unless is_unsupported
22
+ warn(
23
+ <<~HEREDOC.squish
24
+ Webpacker requires pnpm \"#{pnpm_range}\" and you are using #{pnpm_version}.
25
+ Please upgrade pnpm https://pnpm.js.org/en/installation/.
26
+ HEREDOC
27
+ )
28
+ warn("Exiting!")
29
+ exit!
30
+ end
31
+ rescue Errno::ENOENT
32
+ warn(
33
+ <<~HEREDOC.squish
34
+ pnpm is not installed. Please download and install pnpm from
35
+ https://pnpm.js.org/en/installation/.
36
+ HEREDOC
37
+ )
38
+ warn("Exiting!")
39
+ exit!
40
+ end
41
+ end
42
+ end
@@ -1,22 +1,22 @@
1
- # frozen_string_literal: true
2
-
3
- require "webpacker/version"
4
-
5
- namespace :webpacker do
6
- desc "Provide information on Webpacker's current environment"
7
- task env: [:environment] do
8
- $stdout.puts "Ruby: #{`ruby --version`}"
9
- $stdout.puts "Rails: #{Rails.version}"
10
- $stdout.puts "Webpacker: #{Webpacker::VERSION}"
11
- $stdout.puts "Node: #{`node --version`}"
12
- $stdout.puts "pnpm: #{`pnpm --version`}"
13
-
14
- $stdout.puts "\n"
15
- $stdout.puts "@rails/webpacker: \n#{`npm list @rails/webpacker version`}"
16
-
17
- $stdout.puts "Is bin/webpack present?: #{File.exist?("bin/webpack")}"
18
- $stdout.puts <<~HEREDOC.squish
19
- Is bin/webpack-dev-server present?: #{File.exist?("bin/webpack-dev-server")}
20
- HEREDOC
21
- end
22
- end
1
+ # frozen_string_literal: true
2
+
3
+ require "webpacker/version"
4
+
5
+ namespace :webpacker do
6
+ desc "Provide information on Webpacker's current environment"
7
+ task env: [:environment] do
8
+ $stdout.puts "Ruby: #{`ruby --version`}"
9
+ $stdout.puts "Rails: #{Rails.version}"
10
+ $stdout.puts "Webpacker: #{Webpacker::VERSION}"
11
+ $stdout.puts "Node: #{`node --version`}"
12
+ $stdout.puts "pnpm: #{`pnpm --version`}"
13
+
14
+ $stdout.puts "\n"
15
+ $stdout.puts "@rails/webpacker: \n#{`npm list @rails/webpacker version`}"
16
+
17
+ $stdout.puts "Is bin/webpack present?: #{File.exist?("bin/webpack")}"
18
+ $stdout.puts <<~HEREDOC.squish
19
+ Is bin/webpack-dev-server present?: #{File.exist?("bin/webpack-dev-server")}
20
+ HEREDOC
21
+ end
22
+ end
@@ -1,14 +1,14 @@
1
- # frozen_string_literal: true
2
-
3
- namespace :webpacker do
4
- desc "Install all JavaScript dependencies as specified via pnpm."
5
- task pnpm_install: [:environment] do
6
- valid_node_envs = ["test", "development", "production"]
7
-
8
- node_env = ENV.fetch("NODE_ENV") do
9
- valid_node_envs.include?(Rails.env) ? Rails.env : "production"
10
- end
11
-
12
- system({ "NODE_ENV" => node_env }, "pnpm i --frozen-lockfile --shamefully-hoist")
13
- end
14
- end
1
+ # frozen_string_literal: true
2
+
3
+ namespace :webpacker do
4
+ desc "Install all JavaScript dependencies as specified via pnpm."
5
+ task pnpm_install: [:environment] do
6
+ valid_node_envs = ["test", "development", "production"]
7
+
8
+ node_env = ENV.fetch("NODE_ENV") do
9
+ valid_node_envs.include?(Rails.env) ? Rails.env : "production"
10
+ end
11
+
12
+ system({ "NODE_ENV" => node_env }, "pnpm i --frozen-lockfile --shamefully-hoist")
13
+ end
14
+ end
@@ -0,0 +1,6 @@
1
+ dist
2
+ log
3
+ node_modules
4
+ tmp
5
+
6
+ !Gemfile.lock
data/test_app/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "webpacker-pnpm", path: "../"
@@ -0,0 +1,175 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ webpacker-pnpm (1.2.3)
5
+ rails (>= 5.2)
6
+ rake (>= 12.3.3)
7
+ semantic_range (~> 2.3)
8
+ webpacker
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actioncable (6.1.7)
14
+ actionpack (= 6.1.7)
15
+ activesupport (= 6.1.7)
16
+ nio4r (~> 2.0)
17
+ websocket-driver (>= 0.6.1)
18
+ actionmailbox (6.1.7)
19
+ actionpack (= 6.1.7)
20
+ activejob (= 6.1.7)
21
+ activerecord (= 6.1.7)
22
+ activestorage (= 6.1.7)
23
+ activesupport (= 6.1.7)
24
+ mail (>= 2.7.1)
25
+ actionmailer (6.1.7)
26
+ actionpack (= 6.1.7)
27
+ actionview (= 6.1.7)
28
+ activejob (= 6.1.7)
29
+ activesupport (= 6.1.7)
30
+ mail (~> 2.5, >= 2.5.4)
31
+ rails-dom-testing (~> 2.0)
32
+ actionpack (6.1.7)
33
+ actionview (= 6.1.7)
34
+ activesupport (= 6.1.7)
35
+ rack (~> 2.0, >= 2.0.9)
36
+ rack-test (>= 0.6.3)
37
+ rails-dom-testing (~> 2.0)
38
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
+ actiontext (6.1.7)
40
+ actionpack (= 6.1.7)
41
+ activerecord (= 6.1.7)
42
+ activestorage (= 6.1.7)
43
+ activesupport (= 6.1.7)
44
+ nokogiri (>= 1.8.5)
45
+ actionview (6.1.7)
46
+ activesupport (= 6.1.7)
47
+ builder (~> 3.1)
48
+ erubi (~> 1.4)
49
+ rails-dom-testing (~> 2.0)
50
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
+ activejob (6.1.7)
52
+ activesupport (= 6.1.7)
53
+ globalid (>= 0.3.6)
54
+ activemodel (6.1.7)
55
+ activesupport (= 6.1.7)
56
+ activerecord (6.1.7)
57
+ activemodel (= 6.1.7)
58
+ activesupport (= 6.1.7)
59
+ activestorage (6.1.7)
60
+ actionpack (= 6.1.7)
61
+ activejob (= 6.1.7)
62
+ activerecord (= 6.1.7)
63
+ activesupport (= 6.1.7)
64
+ marcel (~> 1.0)
65
+ mini_mime (>= 1.1.0)
66
+ activesupport (6.1.7)
67
+ concurrent-ruby (~> 1.0, >= 1.0.2)
68
+ i18n (>= 1.6, < 2)
69
+ minitest (>= 5.1)
70
+ tzinfo (~> 2.0)
71
+ zeitwerk (~> 2.3)
72
+ builder (3.2.4)
73
+ concurrent-ruby (1.1.10)
74
+ crass (1.0.6)
75
+ digest (3.1.1)
76
+ erubi (1.12.0)
77
+ globalid (1.0.0)
78
+ activesupport (>= 5.0)
79
+ i18n (1.12.0)
80
+ concurrent-ruby (~> 1.0)
81
+ io-wait (0.3.0)
82
+ loofah (2.19.1)
83
+ crass (~> 1.0.2)
84
+ nokogiri (>= 1.5.9)
85
+ mail (2.8.0.1)
86
+ mini_mime (>= 0.1.1)
87
+ net-imap
88
+ net-pop
89
+ net-smtp
90
+ marcel (1.0.2)
91
+ method_source (1.0.0)
92
+ mini_mime (1.1.2)
93
+ mini_portile2 (2.6.1)
94
+ minitest (5.15.0)
95
+ net-imap (0.2.2)
96
+ digest
97
+ net-protocol
98
+ strscan
99
+ net-pop (0.1.2)
100
+ net-protocol
101
+ net-protocol (0.1.2)
102
+ io-wait
103
+ timeout
104
+ net-smtp (0.3.0)
105
+ digest
106
+ net-protocol
107
+ timeout
108
+ nio4r (2.5.8)
109
+ nokogiri (1.12.5)
110
+ mini_portile2 (~> 2.6.1)
111
+ racc (~> 1.4)
112
+ racc (1.6.2)
113
+ rack (2.2.5)
114
+ rack-proxy (0.7.4)
115
+ rack
116
+ rack-test (2.0.2)
117
+ rack (>= 1.3)
118
+ rails (6.1.7)
119
+ actioncable (= 6.1.7)
120
+ actionmailbox (= 6.1.7)
121
+ actionmailer (= 6.1.7)
122
+ actionpack (= 6.1.7)
123
+ actiontext (= 6.1.7)
124
+ actionview (= 6.1.7)
125
+ activejob (= 6.1.7)
126
+ activemodel (= 6.1.7)
127
+ activerecord (= 6.1.7)
128
+ activestorage (= 6.1.7)
129
+ activesupport (= 6.1.7)
130
+ bundler (>= 1.15.0)
131
+ railties (= 6.1.7)
132
+ sprockets-rails (>= 2.0.0)
133
+ rails-dom-testing (2.0.3)
134
+ activesupport (>= 4.2.0)
135
+ nokogiri (>= 1.6)
136
+ rails-html-sanitizer (1.4.4)
137
+ loofah (~> 2.19, >= 2.19.1)
138
+ railties (6.1.7)
139
+ actionpack (= 6.1.7)
140
+ activesupport (= 6.1.7)
141
+ method_source
142
+ rake (>= 12.2)
143
+ thor (~> 1.0)
144
+ rake (13.0.6)
145
+ semantic_range (2.3.1)
146
+ sprockets (4.2.0)
147
+ concurrent-ruby (~> 1.0)
148
+ rack (>= 2.2.4, < 4)
149
+ sprockets-rails (3.4.2)
150
+ actionpack (>= 5.2)
151
+ activesupport (>= 5.2)
152
+ sprockets (>= 3.0.0)
153
+ strscan (3.0.5)
154
+ thor (1.2.1)
155
+ timeout (0.3.1)
156
+ tzinfo (2.0.5)
157
+ concurrent-ruby (~> 1.0)
158
+ webpacker (5.4.3)
159
+ activesupport (>= 5.2)
160
+ rack-proxy (>= 0.6.1)
161
+ railties (>= 5.2)
162
+ semantic_range (>= 2.3.0)
163
+ websocket-driver (0.7.5)
164
+ websocket-extensions (>= 0.1.0)
165
+ websocket-extensions (0.1.5)
166
+ zeitwerk (2.6.6)
167
+
168
+ PLATFORMS
169
+ ruby
170
+
171
+ DEPENDENCIES
172
+ webpacker-pnpm!
173
+
174
+ BUNDLED WITH
175
+ 1.17.3
@@ -1,11 +1,12 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
-
6
- Rake::TestTask.new do |t|
7
- t.libs << "test"
8
- t.test_files = FileList["test/**/*_test.rb"]
9
- end
10
-
11
- task(default: :test)
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "config/application"
4
+ require "rake/testtask"
5
+
6
+ Rails.application.load_tasks
7
+ Rake::TestTask.new do |t|
8
+ t.libs << "test"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ task(default: :test)
@@ -0,0 +1,10 @@
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
4
+ // in a relevant structure within app/javascript and only use these pack files to
5
+ // reference that code so it'll be compiled.
6
+ //
7
+ // To reference this file, add <%= javascript_pack_tag 'application' %> to the
8
+ // appropriate layout file, like app/views/layouts/application.html.erb
9
+
10
+ console.log('"Hello Sanity" from webpacker-pnpm!');
@@ -1,4 +1,4 @@
1
- /*
2
- * Dummy file #1 for Multi File Entry points: https://webpack.js.org/guides/entry-advanced/
3
- * This file must be named the same
1
+ /*
2
+ * Dummy file #1 for Multi File Entry points: https://webpack.js.org/guides/entry-advanced/
3
+ * This file must be named the same
4
4
  */
@@ -1,4 +1,4 @@
1
- /*
2
- * Dummy file #2 for Multi File Entry points: https://webpack.js.org/guides/entry-advanced/
3
- * This file must be named the same
4
- */
1
+ /*
2
+ * Dummy file #2 for Multi File Entry points: https://webpack.js.org/guides/entry-advanced/
3
+ * This file must be named the same
4
+ */
File without changes
File without changes
File without changes
@@ -1,15 +1,15 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
5
- ENV["NODE_ENV"] ||= ENV["RAILS_ENV"]
6
-
7
- require "pathname"
8
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
9
- Pathname.new(__FILE__).realpath)
10
-
11
- require "bundler/setup"
12
-
13
- require "webpacker"
14
- require "webpacker/webpack_runner"
15
- Webpacker::WebpackRunner.run(ARGV)
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
5
+ ENV["NODE_ENV"] ||= ENV["RAILS_ENV"]
6
+
7
+ require "pathname"
8
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
9
+ Pathname.new(__FILE__).realpath)
10
+
11
+ require "bundler/setup"
12
+
13
+ require "webpacker"
14
+ require "webpacker/webpack_runner"
15
+ Webpacker::WebpackRunner.run(ARGV)
@@ -1,15 +1,15 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
5
- ENV["NODE_ENV"] ||= ENV["RAILS_ENV"]
6
-
7
- require "pathname"
8
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
9
- Pathname.new(__FILE__).realpath)
10
-
11
- require "bundler/setup"
12
-
13
- require "webpacker"
14
- require "webpacker/dev_server_runner"
15
- Webpacker::DevServerRunner.run(ARGV)
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
5
+ ENV["NODE_ENV"] ||= ENV["RAILS_ENV"]
6
+
7
+ require "pathname"
8
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
9
+ Pathname.new(__FILE__).realpath)
10
+
11
+ require "bundler/setup"
12
+
13
+ require "webpacker"
14
+ require "webpacker/dev_server_runner"
15
+ Webpacker::DevServerRunner.run(ARGV)
@@ -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,5 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
4
-
5
- require "bundler/setup" # Set up gems listed in the Gemfile.
1
+ # frozen_string_literal: true
2
+
3
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
4
+
5
+ require "bundler/setup" # Set up gems listed in the Gemfile.
@@ -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