Skip to content

Commit 7f1d402

Browse files
committed
copy engine generator files
1 parent f2f08e0 commit 7f1d402

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
require "bundler/setup"
1+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
2+
load "rails/tasks/engine.rake"
3+
4+
load "rails/tasks/statistics.rake"
25

36
require "bundler/gem_tasks"

bin/rails

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env ruby
2+
# This command will automatically be run when you run "rails" with Rails gems
3+
# installed from the root of your application.
4+
5+
ENGINE_ROOT = File.expand_path("..", __dir__)
6+
ENGINE_PATH = File.expand_path("../lib/custom_elements/rails", __dir__)
7+
APP_PATH = File.expand_path("../test/dummy/config/application", __dir__)
8+
9+
# Set up gems listed in the Gemfile.
10+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11+
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
12+
13+
require "rails/all"
14+
require "rails/engine/commands"

0 commit comments

Comments
 (0)