forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Christian Albrecht <[email protected]>
- Loading branch information
Showing
9 changed files
with
550 additions
and
508 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
pkgs/servers/web-apps/discourse/asserts_patch-package_from_path.patch
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake | ||
index 68b5db61ac..d460b5753e 100644 | ||
index 9608297789..5487490915 100644 | ||
--- a/lib/tasks/assets.rake | ||
+++ b/lib/tasks/assets.rake | ||
@@ -19,7 +19,7 @@ task 'assets:precompile:before' do | ||
|
||
if only_assets_precompile_remaining | ||
# Using exec to free up Rails app memory during ember build | ||
- exec "#{compile_command} && EMBER_CLI_COMPILE_DONE=1 bin/rake assets:precompile" | ||
+ exec "#{compile_command} && EMBER_CLI_COMPILE_DONE=1 bundle exec rake assets:precompile" | ||
@@ -36,7 +36,7 @@ task "assets:precompile:build" do | ||
if only_ember_precompile_build_remaining | ||
exec "#{compile_command}" | ||
elsif only_assets_precompile_remaining | ||
- exec "#{compile_command} && SKIP_EMBER_CLI_COMPILE=1 bin/rake assets:precompile" | ||
+ exec "#{compile_command} && SKIP_EMBER_CLI_COMPILE=1 bundle exec rake assets:precompile" | ||
else | ||
system compile_command | ||
end | ||
system compile_command, exception: true | ||
EmberCli.clear_cache! |
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
21 changes: 21 additions & 0 deletions
21
pkgs/servers/web-apps/discourse/prebuild-theme-transpiler.patch
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,21 @@ | ||
diff --git a/lib/discourse_js_processor.rb b/lib/discourse_js_processor.rb | ||
index 26d142fa4d..6040aba6f4 100644 | ||
--- a/lib/discourse_js_processor.rb | ||
+++ b/lib/discourse_js_processor.rb | ||
@@ -68,7 +68,7 @@ class DiscourseJsProcessor | ||
TRANSPILER_PATH = | ||
( | ||
if Rails.env.production? | ||
- "tmp/theme-transpiler.js" | ||
+ "app/assets/javascripts/theme-transpiler.js" | ||
else | ||
"tmp/theme-transpiler/#{Process.pid}.js" | ||
end | ||
@@ -87,6 +87,6 @@ class DiscourseJsProcessor | ||
"node", | ||
"app/assets/javascripts/theme-transpiler/build.js", | ||
TRANSPILER_PATH, | ||
- ) | ||
+ ) if !Rails.env.production? or !File.file?(TRANSPILER_PATH) | ||
TRANSPILER_PATH | ||
end |
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
Oops, something went wrong.