This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
100 lines (87 loc) · 1.73 KB
/
Rakefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
abort "Please use Ruby 1.9 to build Ember.js!" if RUBY_VERSION !~ /^1\.9/
require "bundler/setup"
require "erb"
require 'rake-pipeline'
require "colored"
def pipeline
Rake::Pipeline::Project.new("Assetfile")
end
desc "Build ember.js"
task :dist do
puts "Building Ember..."
pipeline.invoke
puts "Done"
end
desc "Clean build artifacts from previous builds"
task :clean do
puts "Cleaning build..."
pipeline.clean
puts "Done"
end
task :default => :dist
require "jshintrb/jshinttask"
Jshintrb::JshintTask.new :jshint do |t|
t.pattern = '{app/app/lib/**/*.js,app/submodules/yoin-ember/lib/**/*.js}'
t.options = {
:predef => [
"jQuery",
"Cordova",
"device",
"DeviceInfo",
"InfoBubble",
"moment",
"iScroll",
"$",
"Mk",
"$",
"google",
"I18n",
"Yn",
"App",
"console",
"Em",
"Ember",
"DS",
"Handlebars",
"Metamorph",
"require",
"equal",
"test",
"testBoth",
"testWithDefault",
"raises",
"deepEqual",
"start",
"stop",
"ok",
"strictEqual",
"module",
"expect",
"minispade"
],
:node => false,
:browser => true,
:boss => true,
:curly=> false,
:debug=> false,
:devel=> false,
:eqeqeq=> true,
:evil=> true,
:forin=> false,
:immed=> false,
:laxbreak=> false,
:newcap=> true,
:noarg=> true,
:noempty=> false,
:nonew=> false,
:nomen=> false,
:onevar=> false,
:plusplus=> false,
:undef=> true,
:regexp=> false,
:sub=> true,
:strict=> false,
:white=> false,
:eqnull=> true
}
end