本文整理汇总了Python中helpers.Helpers.deployer方法的典型用法代码示例。如果您正苦于以下问题:Python Helpers.deployer方法的具体用法?Python Helpers.deployer怎么用?Python Helpers.deployer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类helpers.Helpers
的用法示例。
在下文中一共展示了Helpers.deployer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: deploy
# 需要导入模块: from helpers import Helpers [as 别名]
# 或者: from helpers.Helpers import deployer [as 别名]
def deploy():
# Libraries usually have a versioned path (True)
# help.deployer(True)
# Sites or apps dont
help.deployer(Yak.paths['build'], False)
# In case you wanna deploy dependencies as well
help.deployer('dependencies', False, 'dependencies')
示例2: deploy
# 需要导入模块: from helpers import Helpers [as 别名]
# 或者: from helpers.Helpers import deployer [as 别名]
def deploy():
# Prep-up the default browser build
help.deployer(Yak.paths['build'], False)
help.deployer('dependencies', False, 'js')
# Copy that over to ios folder
deepcopy(FileList(Yak.paths['dist']), Yak.paths['dist-ios'])
# Copy that over to android folder, along with specialized phonegap
deepcopy(FileList(Yak.paths['dist']), Yak.paths['dist-android'])
# Phonegap for Android
libs = FileList('src/lib/phonegap/android', filter="*.js")
libs.merge(FileList('src/lib/phonegap/plugins', filter="*.js"))
combine(libs, FileSystem.join(Yak.paths['dist-android'], 'js', 'phonegap.js'))
# Phonegap for ios
libs = FileList('src/lib/phonegap/ios', filter="*.js")
libs.merge(FileList('src/lib/phonegap/plugins', filter="*.js"))
combine(libs, FileSystem.join(Yak.paths['dist-ios'], 'js', 'phonegap.js'))
示例3: deploy
# 需要导入模块: from helpers import Helpers [as 别名]
# 或者: from helpers.Helpers import deployer [as 别名]
def deploy():
# Libraries usually have a versioned path (True)
# help.deployer(True)
# Sites or apps dont
help.deployer(Yak.paths['build'], True)