【文件属性】:
文件名称:cakery:一个 ruby gem,可以智能地将多个文件合并为一个文件
文件大小:179KB
文件格式:ZIP
更新时间:2021-06-04 16:48:37
Ruby
##这是什么?
智能地将多个文件合二为一。 Cakery 有一个简单的DSL ,它允许您对目录进行 glob 并将字符串传递给erb文件。 您还可以将宏添加到蛋糕管道。 将其视为的更通用版本。
快速开始
###Combine ./spec目录中的许多 js 文件合并为一个文件在您的 ruby 代码中:
#Create a new recipe
recipe = Cakery . new ( 'test.js.erb' ) do | r |
#The << operator means to glob the directory into a string in @spec
#The << operator accepts any unix style glob operator, e.g. /**/* for recursive
r . spec << "./spec
【文件预览】:
cakery-master
----.gitignore(200B)
----cakery.gemspec(1KB)
----.travis.yml(60B)
----LICENSE(1KB)
----spec()
--------bake_spec.rb(5KB)
--------assets()
----README.md(4KB)
----logo.png(169KB)
----lib()
--------cakery.rb(3KB)
--------cakery()
----Gemfile(89B)
----Rakefile(986B)