-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix SCSS/JS assets, add compile assets task
* fix scss: use scss imports, not css ones that cannot be resolved by the browser * add missing jQuery import * drop yarn - not needed * add rake task to compile assets, corresponding post install message
- Loading branch information
Showing
10 changed files
with
430 additions
and
404 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
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 |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
fixes and tweaks annotated with "COMFY FIX" | ||
*/ | ||
|
||
import jQuery from 'jquery'; | ||
|
||
(function($) | ||
{ | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
namespace :comfy do | ||
desc 'Compile SCSS and JS assets for propshaft.' | ||
task :compile_assets do | ||
puts 'Compiling assets...' | ||
dir = File.expand_path("#{__dir__}/..") | ||
Dir.chdir(dir) do | ||
unless system('npm install') | ||
puts 'Error: Failed to install npm packages.' | ||
exit(-1) | ||
end | ||
unless system('npm run build && npm run build:css') | ||
puts 'Error: Failed to compile assets' | ||
exit(-1) | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.