Skip to content

Commit

Permalink
Removed Webpacker files
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilgkrishnan authored Sep 6, 2023
1 parent 0ee9580 commit 59854da
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 84 deletions.
6 changes: 3 additions & 3 deletions railties/test/generators/app_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -739,19 +739,19 @@ def test_skip_javascript_option
def test_webpack_option
generator([destination_root], javascript: "webpack")

webpacker_called = 0
webpack_called = 0
command_check = -> command, *_ do
case command
when "javascript:install:webpack"
webpacker_called += 1
webpack_called += 1
end
end

generator.stub(:rails_command, command_check) do
run_generator_instance
end

assert_equal 1, webpacker_called, "`javascript:install:webpack` expected to be called once, but was called #{webpacker_called} times."
assert_equal 1, webpack_called, "`javascript:install:webpack` expected to be called once, but was called #{webpack_called} times."
assert_gem "jsbundling-rails"
assert_node_files
end
Expand Down
3 changes: 0 additions & 3 deletions railties/test/isolation/assets/config/webpack/base.js

This file was deleted.

5 changes: 0 additions & 5 deletions railties/test/isolation/assets/config/webpack/development.js

This file was deleted.

5 changes: 0 additions & 5 deletions railties/test/isolation/assets/config/webpack/production.js

This file was deleted.

5 changes: 0 additions & 5 deletions railties/test/isolation/assets/config/webpack/test.js

This file was deleted.

61 changes: 0 additions & 61 deletions railties/test/isolation/assets/config/webpacker.yml

This file was deleted.

3 changes: 1 addition & 2 deletions railties/test/isolation/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"dependencies": {
"@rails/actioncable": "file:../../../../actioncable",
"@rails/activestorage": "file:../../../../activestorage",
"@rails/ujs": "file:../../../../actionview",
"@rails/webpacker": "^6.0.0-rc.5"
"@rails/ujs": "file:../../../../actionview"
}
}

0 comments on commit 59854da

Please sign in to comment.