代码拉取完成,页面将自动刷新
同步操作将从 idea man/history.js 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Requires
buildr = require 'buildr'
util = require 'util'
# Options
options =
watch: false
compress: true
# Configs
configs =
standard:
# Options
name: 'standard'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
outPath: __dirname+'/scripts/compressed'
# Checking
checkScripts: true
jshintOptions:
browser: true
laxbreak: true
boss: true
undef: true
onevar: true
strict: true
noarg: true
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
other: [
# -----------------------------
# Dojo Toolkit
{
# Options
name: 'html4+html5+dojo'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'json2.js'
'history.adapter.dojo.js'
'history.html4.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html4+html5/dojo.history.js'
}
{
# Options
name: 'html5+dojo'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'history.adapter.dojo.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html5/dojo.history.js'
}
# -----------------------------
# ExtJS
{
# Options
name: 'html4+html5+extjs'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'json2.js'
'history.adapter.extjs.js'
'history.html4.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html4+html5/extjs.history.js'
}
{
# Options
name: 'html5+extjs'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'history.adapter.extjs.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html5/extjs.history.js'
}
# -----------------------------
# JQUERY
{
# Options
name: 'html4+html5+jquery'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'json2.js'
'history.adapter.jquery.js'
'history.html4.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html4+html5/jquery.history.js'
}
{
# Options
name: 'html5+jquery'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'history.adapter.jquery.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html5/jquery.history.js'
}
# -----------------------------
# MOOTOOLS
{
# Options
name: 'html4+html5+mootools'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'json2.js'
'history.adapter.mootools.js'
'history.html4.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html4+html5/mootools.history.js'
}
{
# Options
name: 'html5+mootools'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'history.adapter.mootools.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html5/mootools.history.js'
}
# -----------------------------
# NATIVE
{
# Options
name: 'html4+html5+native'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'json2.js'
'history.adapter.native.js'
'history.html4.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html4+html5/native.history.js'
}
{
# Options
name: 'html5+native'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'history.adapter.native.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html5/native.history.js'
}
# -----------------------------
# RIGHT.JS
{
# Options
name: 'html4+html5+right'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'json2.js'
'history.adapter.right.js'
'history.html4.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html4+html5/right.history.js'
}
{
# Options
name: 'html5+right'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'history.adapter.right.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html5/right.history.js'
}
# -----------------------------
# ZEPTO
{
# Options
name: 'html4+html5+zepto'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'json2.js'
'history.adapter.zepto.js'
'history.html4.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html4+html5/zepto.history.js'
}
{
# Options
name: 'html5+zepto'
watch: options.watch
# Paths
srcPath: __dirname+'/scripts/uncompressed'
# Compression (without outPath only the generated bundle files are compressed)
compressScripts: options.compress # Array or true or false
# Order
scriptsOrder: [
'history.adapter.zepto.js'
'history.js'
]
# Bundling
bundleScriptPath: __dirname+'/scripts/bundled/html5/zepto.history.js'
}
]
# Standard
standardConfig = configs.standard
standardConfig.successHandler = ->
for config in configs.other
buildrInstance = buildr.createInstance config
buildrInstance.process()
# Process
standardBuildr = buildr.createInstance configs.standard
standardBuildr.process()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。