lib/papers/dependency_specification/javascript.rb in papers-1.3.1 vs lib/papers/dependency_specification/javascript.rb in papers-1.3.2
- old
+ new
@@ -12,10 +12,10 @@
def self.introspected
dirs = Papers.config.javascript_paths
# TODO: add logic for determining rails. Is Rails.root better than Dir.pwd for such a case?
root_regexp = /^#{Regexp.escape Dir.pwd.to_s}\//
- dirs.map { |dir| Dir["#{dir}/**/*.js"] }.flatten.map { |name| name.sub(root_regexp, '') }
+ dirs.map { |dir| Dir["#{dir}/**/*.{js,coffee}"] }.flatten.map { |name| name.sub(root_regexp, '') }
end
def self.manifest_key
"javascripts"
end