gingerhendrix / jsutils

A very basic set of common utilities for javascript

This URL has Read+Write access

jsutils / Rakefile
595ced39 » gingerhendrix 2008-04-19 Added dist and deploy rake ... 1 require 'rubygems'
2 begin
3 require 'rake'
4 rescue LoadError
5 puts 'This script should only be accessed via the "rake" command.'
6 puts 'Installation: gem install rake -y'
7 exit
8 end
9 require 'rake'
10 require 'rake/clean'
11 require 'rake/packagetask'
7ad65484 » gingerhendrix 2009-04-23 Fixed deploy task, and depl... 12 require 'rake_remote_task'
13
595ced39 » gingerhendrix 2008-04-19 Added dist and deploy rake ... 14
15 $:.unshift File.dirname(__FILE__) + "/lib"
16
5900ddc3 » gingerhendrix 2009-04-23 Added docs rake task 17 APP_VERSION = '0.2.4'
595ced39 » gingerhendrix 2008-04-19 Added dist and deploy rake ... 18 APP_NAME = 'jsUtils'
5900ddc3 » gingerhendrix 2009-04-23 Added docs rake task 19 APP_HOMEPAGE = "http://projects.gandrew.com/jsUtils/"
595ced39 » gingerhendrix 2008-04-19 Added dist and deploy rake ... 20 APP_FILE_NAME= "jsUtils.js"
21
22 APP_ROOT = File.expand_path(File.dirname(__FILE__))
23 APP_SRC_DIR = File.join(APP_ROOT, 'src')
24 APP_DIST_DIR = File.join(APP_ROOT, 'dist')
25 APP_PKG_DIR = File.join(APP_ROOT, 'pkg')
26
5900ddc3 » gingerhendrix 2009-04-23 Added docs rake task 27 RUBYFORGE_PROJECT = APP_NAME
28
595ced39 » gingerhendrix 2008-04-19 Added dist and deploy rake ... 29 DEPLOY_ROOT = "/var/web/projects/#{APP_NAME}"
30 ON_DEPLOY_RESTART = []
7ad65484 » gingerhendrix 2009-04-23 Fixed deploy task, and depl... 31 APP_SERVER = "gandrew.com"
5900ddc3 » gingerhendrix 2009-04-23 Added docs rake task 32
7ad65484 » gingerhendrix 2009-04-23 Fixed deploy task, and depl... 33 role :app, APP_SERVER
595ced39 » gingerhendrix 2008-04-19 Added dist and deploy rake ... 34
35 task :default => [:dist, :package, :clean_package_source]
36
37 Dir['tasks/**/*.rake'].each { |rake| load rake }
38
39
40
41