Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test plan: - make sure you have the coffee binary from npm: `npm install -g coffee-script@1.6.2` - run rake js:generate, make sure all coffeescript still compiles correctly - open a coffeescript file and make sure it still gets automatically compiled when saved by guard. - rejoice at the arrival of source maps. Change-Id: I06ce9e83a76be9d4cc0e2b2c80566a0db19f9d7e Reviewed-on: https://gerrit.instructure.com/18842 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Ryan Florence <ryanf@instructure.com> Product-Review: Stanley Stuart <stanley@instructure.com> QA-Review: Stanley Stuart <stanley@instructure.com>
- Loading branch information
Stanley Stuart
committed
Mar 22, 2013
1 parent
117adb2
commit 8045a59
Showing
9 changed files
with
21 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if Rails.env.development? | ||
app_dir = File.expand_path "#{Rails.root}/public/app" | ||
FileUtils.makedirs(app_dir) unless File.exists?(app_dir) | ||
symlink = File.expand_path "#{Rails.root}/public/app/coffeescripts" | ||
target = File.expand_path "#{Rails.root}/app/coffeescripts" | ||
unless File.symlink?(symlink) && File.readlink(symlink) == target | ||
File.unlink(symlink) if File.exists?(symlink) | ||
File.symlink(target,symlink) | ||
end | ||
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
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
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