ソースを参照

Fix MooTools build task

tags/0.5.1
Michael Jackson 14年前
コミット
f3e246f0f9
14個のファイルの変更13行の追加3行の削除
  1. +2
    -0
      README.md
  2. +10
    -2
      Rakefile
  3. +0
    -0
      wrappers/dojo/mustache.js.post
  4. +0
    -0
      wrappers/dojo/mustache.js.pre
  5. +0
    -0
      wrappers/jquery/mustache.js.post
  6. +0
    -0
      wrappers/jquery/mustache.js.pre
  7. +1
    -1
      wrappers/mootools/mustache.js.post
  8. +0
    -0
      wrappers/mootools/mustache.js.pre
  9. +0
    -0
      wrappers/qooxdoo/mustache.js.post
  10. +0
    -0
      wrappers/qooxdoo/mustache.js.pre
  11. +0
    -0
      wrappers/requirejs/mustache.js.post
  12. +0
    -0
      wrappers/requirejs/mustache.js.pre
  13. +0
    -0
      wrappers/yui3/mustache.js.post
  14. +0
    -0
      wrappers/yui3/mustache.js.pre

+ 2
- 0
README.md ファイルの表示

@@ -377,6 +377,7 @@ be built specifically for several different client libraries and platforms,
including the following:

- [jQuery](http://jquery.com/)
- [MooTools](http://mootools.net/)
- [Dojo](http://www.dojotoolkit.org/)
- [YUI](http://developer.yahoo.com/yui/)
- [RequireJS](http://requirejs.org/)
@@ -386,6 +387,7 @@ These may be built using [Rake](http://rake.rubyforge.org/) and one of the
following commands:

$ rake jquery
$ rake mootools
$ rake dojo
$ rake yui
$ rake requirejs


+ 10
- 2
Rakefile ファイルの表示

@@ -33,14 +33,22 @@ def templated_build(name, opts={})

mkdir_p opts[:location] if opts[:location]

sh "cat #{source}/#{target_js}.tpl.pre mustache.js \
#{source}/#{target_js}.tpl.post > #{opts[:location] || '.'}/#{target_js}"
files = [
"#{source}/mustache.js.pre",
'mustache.js',
"#{source}/mustache.js.post"
]

open("#{opts[:location] || '.'}/#{target_js}", 'w') do |f|
files.each {|file| f << File.read(file) }
end

puts "Done, see #{opts[:location] || '.'}/#{target_js}"
end
end

templated_build "jQuery"
templated_build "MooTools"
templated_build "Dojo", :location => "dojox/string"
templated_build "YUI3", :location => "yui3/mustache"
templated_build "RequireJS"


wrappers/dojo/mustache.js.tpl.post → wrappers/dojo/mustache.js.post ファイルの表示


wrappers/dojo/mustache.js.tpl.pre → wrappers/dojo/mustache.js.pre ファイルの表示


wrappers/jquery/jquery.mustache.js.tpl.post → wrappers/jquery/mustache.js.post ファイルの表示


wrappers/jquery/jquery.mustache.js.tpl.pre → wrappers/jquery/mustache.js.pre ファイルの表示


mustache-mootools/mustache.js.tpl.post → wrappers/mootools/mustache.js.post ファイルの表示

@@ -1,5 +1,5 @@

Object.implement('mustache', function(view, partials){
return Mustache.to_html(view, this, partials);
return Mustache.render(view, this, partials);
});
})();

mustache-mootools/mustache.js.tpl.pre → wrappers/mootools/mustache.js.pre ファイルの表示


wrappers/qooxdoo/qooxdoo.mustache.js.tpl.post → wrappers/qooxdoo/mustache.js.post ファイルの表示


wrappers/qooxdoo/qooxdoo.mustache.js.tpl.pre → wrappers/qooxdoo/mustache.js.pre ファイルの表示


wrappers/requirejs/requirejs.mustache.js.tpl.post → wrappers/requirejs/mustache.js.post ファイルの表示


wrappers/requirejs/requirejs.mustache.js.tpl.pre → wrappers/requirejs/mustache.js.pre ファイルの表示


wrappers/yui3/mustache.js.tpl.post → wrappers/yui3/mustache.js.post ファイルの表示


wrappers/yui3/mustache.js.tpl.pre → wrappers/yui3/mustache.js.pre ファイルの表示


読み込み中…
キャンセル
保存