forked from erichocean/blossom
-
Notifications
You must be signed in to change notification settings - Fork 4
/
projectfile.js
50 lines (41 loc) · 1.93 KB
/
projectfile.js
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
// ==========================================================================
// Project: Blossom - Modern, Cross-Platform Application Framework
// Copyright: ©2012 Fohr Motion Picture Studios. All rights reserved.
// License: Licensed under the GPLv3 license (see BLOSSOM-LICENSE).
// ==========================================================================
/*globals global require __dirname BT */
require('./buildtools'); // adds the SC and BT namespaces as globals
var path = require('path');
var project = BT.Project.create({
"static": BT.Directory.create({
"form_demo": require('./examples/form_demo'),
"widget_demo": require('./examples/widget_demo'),
"view_demo": require('./examples/view_demo'),
"splitsurface_demo": require('./examples/splitsurface_demo'),
"surface_test": require('./examples/surface_test'),
"scroll_demo": require('./examples/scroll_demo'),
"bindings_demo": require('./examples/bindings_demo'),
"psurfaces_test": require('./examples/psurfaces_test'),
"text_demo": require('./examples/text_demo'),
"list_demo": require('./examples/list_demo'),
"behavior_test": require('./examples/behavior_test'),
// A one-off app target that results in just the code for blossom.
"blossom-latest": BT.App.create({
frameworks: 'sproutcore'.w(),
sourceTree: path.join(__dirname, "examples/blossom-latest")
}),
"sproutcore": require('./node/buildfile'),
// no sc_static() support yet, so give our image a nice and easy path
"sc-theme-repeat-x.png": BT.File.create({
sourcePath: path.join(__dirname, "application/resources/classic/images/sc-theme-repeat-x.png"),
mimeType: 'image/png'
}),
"fontawesome-webfont.ttf": BT.File.create({
sourcePath: path.join(__dirname, "examples/widget_demo/fontawesome-webfont.ttf"),
mimeType: 'font/opentype'
})
})
});
// project.accept(BT.LoggingVisitor.create());
project.serve();
// project.build();