add typescript
This commit is contained in:
0
app/assets/builds/.keep
Normal file
0
app/assets/builds/.keep
Normal file
@@ -1,4 +1,3 @@
|
||||
//= link_tree ../images
|
||||
//= link_directory ../stylesheets .css
|
||||
//= link_tree ../../javascript .js
|
||||
//= link_tree ../../../vendor/javascript .js
|
||||
//= link_tree ../builds
|
||||
|
||||
4
app/controllers/entrypoint_controller.rb
Normal file
4
app/controllers/entrypoint_controller.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class EntrypointController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
||||
import "@hotwired/turbo-rails"
|
||||
import "controllers"
|
||||
1
app/javascript/application.ts
Normal file
1
app/javascript/application.ts
Normal file
@@ -0,0 +1 @@
|
||||
console.log('Hello, Typescript!')
|
||||
2
app/views/entrypoint/index.html.erb
Normal file
2
app/views/entrypoint/index.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<h1>Entrypoint#index</h1>
|
||||
<p>Find me in app/views/entrypoint/index.html.erb</p>
|
||||
@@ -7,7 +7,7 @@
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
||||
<%= javascript_importmap_tags %>
|
||||
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user