Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prepare 0.1 release
  • Loading branch information
madrobby committed Oct 25, 2010
1 parent e9b26b6 commit 37ec346
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
.DS_Store
dist/zepto.min.js
dist/zepto.js
dist/zepto.js
pkg
21 changes: 20 additions & 1 deletion Rakefile
@@ -1,14 +1,19 @@
require 'rake'
require 'rake/packagetask'

ZEPTO_VERSION = "0.1"

ZEPTO_ROOT = File.expand_path(File.dirname(__FILE__))
ZEPTO_SRC_DIR = File.join(ZEPTO_ROOT, 'src')
ZEPTO_DIST_DIR = File.join(ZEPTO_ROOT, 'dist')
ZEPTO_PKG_DIR = File.join(ZEPTO_ROOT, 'pkg')

ZEPTO_FILES = [
File.join(ZEPTO_SRC_DIR,'zepto.js'),
File.join(ZEPTO_SRC_DIR,'fx.js'),
File.join(ZEPTO_SRC_DIR,'touch.js'),
File.join(ZEPTO_SRC_DIR,'ajax.js')
File.join(ZEPTO_SRC_DIR,'ajax.js'),
File.join(ZEPTO_SRC_DIR,'assets.js')
]

task :default => [:clean, :concat, :dist]
Expand Down Expand Up @@ -63,3 +68,17 @@ task :yuidist do
yui_compressor src, target
process_minified src, target
end

Rake::PackageTask.new('zepto', ZEPTO_VERSION) do |package|
package.need_tar_gz = true
package.need_zip = true
package.package_dir = ZEPTO_PKG_DIR
package.package_files.include(
'README.rdoc',
'MIT-LICENSE',
'dist/**/*',
'src/**/*',
'test/**/*',
'examples/**/*'
)
end

0 comments on commit 37ec346

Please sign in to comment.