代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony-SIG/jmustache 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
require 'rake'
require 'rake/clean'
task :default => :test
def minified_file
ENV['FILE'] || 'mustache.min.js'
end
desc "Run all tests"
task :test do
sh "./node_modules/.bin/mocha test"
end
desc "Run JSHint"
task :hint do
sh "./node_modules/.bin/jshint mustache.js"
end
# Creates a task that uses the various template wrappers to make a wrapped
# output file. There is some extra complexity because Dojo and YUI use
# different final locations.
def templated_build(name, final_location=nil)
short = name.downcase
source = File.join("wrappers", short)
dependencies = ["mustache.js"] + Dir.glob("#{source}/*.tpl.*")
target_js = final_location.nil? ? "#{short}.mustache.js" : "mustache.js"
desc "Package for #{name}"
task short.to_sym => dependencies do
puts "Packaging for #{name}"
mkdir_p final_location unless final_location.nil?
sources = [ "#{source}/mustache.js.pre", 'mustache.js', "#{source}/mustache.js.post" ]
relative_name = "#{final_location || '.'}/#{target_js}"
open(relative_name, 'w') do |f|
sources.each {|source| f << File.read(source) }
end
puts "Done, see #{relative_name}"
end
CLEAN.include(final_location.nil? ? target_js : final_location)
end
templated_build "jQuery"
templated_build "MooTools"
templated_build "Dojo", "dojox/string"
templated_build "YUI3", "yui3/mustache"
templated_build "qooxdoo"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。