-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.rb
38 lines (28 loc) · 811 Bytes
/
template.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
def source_paths
[__dir__]
end
gem "inertia_rails"
gem "vite_rails"
gem_group :development, :test do
gem "pry-rails"
gem "pry-byebug"
end
gem_group :development do
gem "annotate"
gem "better_errors"
gem "binding_of_caller"
end
after_bundle do
run "bundle exec vite install"
run "rm -fr app/frontend vite.config.ts config/vite.json "
run "yarn add vue vue-loader vue-template-compiler"
run "yarn add vite-plugin-vue2 --dev"
run "yarn add @inertiajs/inertia @inertiajs/inertia-vue @inertiajs/progress"
run "yarn add tailwindcss@latest postcss@latest autoprefixer@latest @tailwindcss/forms"
directory "config", force: true
directory "app", force: true
copy_file "vite.config.ts"
copy_file "postcss.config.js"
copy_file "Procfile.dev"
route 'root to: "pages#index"'
end