public
Description: A very basic set of common utilities for javascript
Homepage: http://labs.gandrew.com/drupal/jsUtils
Clone URL: git://github.com/gingerhendrix/jsutils.git
jsutils / Rakefile
100644 42 lines (28 sloc) 0.895 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'rubygems'
begin
  require 'rake'
rescue LoadError
  puts 'This script should only be accessed via the "rake" command.'
  puts 'Installation: gem install rake -y'
  exit
end
require 'rake'
require 'rake/clean'
require 'rake/packagetask'
require 'rake_remote_task'
 
 
$:.unshift File.dirname(__FILE__) + "/lib"
 
APP_VERSION = '0.2.4'
APP_NAME = 'jsUtils'
APP_HOMEPAGE = "http://projects.gandrew.com/jsUtils/"
APP_FILE_NAME= "jsUtils.js"
 
APP_ROOT = File.expand_path(File.dirname(__FILE__))
APP_SRC_DIR = File.join(APP_ROOT, 'src')
APP_DIST_DIR = File.join(APP_ROOT, 'dist')
APP_PKG_DIR = File.join(APP_ROOT, 'pkg')
 
RUBYFORGE_PROJECT = APP_NAME
 
DEPLOY_ROOT = "/var/web/projects/#{APP_NAME}"
ON_DEPLOY_RESTART = []
APP_SERVER = "gandrew.com"
 
role :app, APP_SERVER
 
task :default => [:dist, :package, :clean_package_source]
 
Dir['tasks/**/*.rake'].each { |rake| load rake }