js_rake_tasks 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/js_rake_tasks.rb +1 -1
- metadata +1 -1
data/lib/js_rake_tasks.rb
CHANGED
@@ -4,7 +4,7 @@ namespace 'coffee' do
|
|
4
4
|
task "compile", [:flags] do |t,args|
|
5
5
|
require 'json'
|
6
6
|
|
7
|
-
source_code = FileList.new('src/**/*.coffee').map { |file_path| File.read(file_path) }.join("\n")
|
7
|
+
source_code = FileList.new('src/**/*.coffee').sort.map { |file_path| File.read(file_path) }.join("\n")
|
8
8
|
|
9
9
|
package_json = JSON.parse(File.read("package.json"))
|
10
10
|
uncompressed_output = filter_output(compile_coffee_script(source_code), package_json)
|