-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathJakefile
More file actions
28 lines (20 loc) · 679 Bytes
/
Jakefile
File metadata and controls
28 lines (20 loc) · 679 Bytes
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
var DEPLOY = __dirname + "/pkg/";
desc("runs build");
task('default', ['build'], function () {});
desc("clean");
task('clean', [], function () {
var childProcess = require('child_process');
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("ios");
packager.bundle("wp7");
util.puts(fs.readFileSync("build/dalek", "utf-8"));
});