mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-11 03:10:34 +08:00
We were writing theme-transpiler JS files to the filesystem on a per-process basis, and then immediately reading them back in. Plus, there was no cleanup mechanism, so the tmp directory would grow indefinitely. This commit refactors things so that the `build.js` script outputs the theme-transpiler source to stdout. That way, we can read it directly into the process, and then into mini-racer, without needing to go via the filesystem. No cleanup required! In production, the theme-transpiler is still cached in a file during `assets:precompile` |
||
|---|---|---|
| .. | ||
| assets_precompile_spec.rb | ||
| compatibility_spec.rb | ||
| hashtags_spec.rb | ||
| incoming_emails_spec.rb | ||
| posts_spec.rb | ||
| redis_spec.rb | ||
| themes_spec.rb | ||
| topics_spec.rb | ||
| uploads_spec.rb | ||
| version_bump_spec.rb | ||