add typescript

This commit is contained in:
João Geonizeli
2022-07-21 16:36:33 -03:00
parent 3ce6c421b1
commit 9dd9e28bf7
16 changed files with 177 additions and 14 deletions

0
app/assets/builds/.keep Normal file
View File

View File

@@ -1,4 +1,3 @@
//= link_tree ../images
//= link_directory ../stylesheets .css
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/javascript .js
//= link_tree ../builds

View File

@@ -0,0 +1,4 @@
class EntrypointController < ApplicationController
def index
end
end

View File

@@ -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"

View File

@@ -0,0 +1 @@
console.log('Hello, Typescript!')

View File

@@ -0,0 +1,2 @@
<h1>Entrypoint#index</h1>
<p>Find me in app/views/entrypoint/index.html.erb</p>

View File

@@ -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>