forked from purdrew/incubator-cordova-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJakefile
38 lines (27 loc) · 1002 Bytes
/
Jakefile
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
desc("runs build");
task('default', ['build', 'test'], function () {});
desc("clean");
task('clean', [], function () {
var childProcess = require('child_process');
var path = require("path");
var DEPLOY = path.join(__dirname,"pkg");
var cmd = 'rm -rf ' + DEPLOY + ' && ' +
'mkdir ' + DEPLOY;
childProcess.exec(cmd,complete);
}, true);
desc("compiles the source files for all extensions");
task('build', ['clean'], function () {
var util = require('util'),
fs = require('fs'),
packager = require("./build/packager");
packager.bundle("blackberry");
packager.bundle("playbook");
packager.bundle("ios");
packager.bundle("wp7");
packager.bundle("android");
util.puts(fs.readFileSync("build/dalek", "utf-8"));
});
desc("runs the unit tests in node");
task('test', [], require('./test/runner').node);
desc("starts a webserver to point at to run the unit tests");
task('btest', [], require('./test/runner').browser);