generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #542 from ita-social-projects/fix/importmap_compile
Fix/importmap_compile
- Loading branch information
Showing
5 changed files
with
18 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,9 @@ | ||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails | ||
import "controllers" | ||
import "@hotwired/turbo-rails" | ||
|
||
import "controllers"; | ||
import "channels"; | ||
import "jquery" | ||
|
||
import "@fortawesome/fontawesome-free" | ||
|
||
// This file is automatically compiled by Webpack, along with any other files | ||
// present in this directory. You're encouraged to place your actual application logic in | ||
// a relevant structure within app/javascript and only use these pack files to reference | ||
// that code so it'll be compiled. | ||
|
||
import Rails from "@rails/ujs"; | ||
import * as ActiveStorage from "@rails/activestorage"; | ||
import "../channels"; | ||
import "@rails/request.js"; | ||
|
||
require("jquery"); | ||
require("@nathanvda/cocoon"); | ||
|
||
import "../ajax/checkbox"; | ||
import "plugins/flatpickr"; | ||
|
||
import "@hotwired/turbo-rails"; | ||
import "bootstrap"; | ||
import "popper" | ||
|
||
import "../js/calculators/edit"; | ||
import "../controllers/stimulus_application"; | ||
|
||
global.toastr = require("toastr"); | ||
|
||
Rails.start(); | ||
Turbo.start(); | ||
ActiveStorage.start(); | ||
|
||
$("document").ready(function () { | ||
setTimeout(function () { | ||
$(".alert").slideUp(); | ||
}, 10000); | ||
}); | ||
import "@fortawesome/fontawesome-free"; | ||
import "@nathanvda/cocoon"; | ||
import "@rails/request.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# Pin npm packages by running ./bin/importmap | ||
|
||
pin "application", preload: true | ||
pin "jquery", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.js" | ||
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true | ||
pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true | ||
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true | ||
pin "jquery", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.js" | ||
pin_all_from "app/javascript/controllers", under: "controllers" | ||
pin "bootstrap", to: "https://ga.jspm.io/npm:[email protected]/dist/js/bootstrap.esm.js" | ||
pin "@popperjs/core", to: "https://ga.jspm.io/npm:@popperjs/[email protected]/lib/index.js" | ||
pin "toastr", to: "https://ga.jspm.io/npm:[email protected]/toastr.js" | ||
pin_all_from "app/javascript/channels", under: "channels" | ||
pin "bootstrap", to: "https://ga.jspm.io/npm:[email protected]/dist/js/bootstrap.esm.js", preload: true | ||
pin "@nathanvda/cocoon", to: "https://ga.jspm.io/npm:@nathanvda/[email protected]/cocoon.js" | ||
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true | ||
pin "@fortawesome/fontawesome-free", to: "https://ga.jspm.io/npm:@fortawesome/[email protected]/js/all.js" | ||
pin "@fortawesome/fontawesome-free", to: "https://ga.jspm.io/npm:@fortawesome/[email protected]/js/all.js", preload: true | ||
pin "toastr", to: "https://ga.jspm.io/npm:[email protected]/toastr.js", preload: true | ||
pin "@popperjs/core", to: "https://ga.jspm.io/npm:@popperjs/[email protected]/lib/index.js", preload: true |