UNPKG

957 BJavaScriptView Raw
1include
2
3 .cfg('sync', true)
4
5 .js({
6 script: [
7 'solution/solution',
8 'builder/build',
9 'io/files/style'
10 ],
11
12 parser: [
13 'js',
14 'css',
15 'html'
16 ]
17
18 })
19 .done(function(resp) {
20
21
22 include.cfg('sync', false);
23
24 module.exports = Class({
25 Extends: Class.Deferred,
26
27 /**
28 * - config (Object) - {}
29 */
30 process: function(resources, config){
31
32 global.solution = {
33 directory: net.Uri.combine(process.cwd(), '/'),
34 uri: io.env.currentDir,
35 uris: {
36 outputDirectory: io.env.currentDir.combine(config.outputSources)
37 }
38 };
39
40 var resource = sln
41 .Resource
42 .fromMany(resources)
43 .load();
44
45 var that = this;
46
47
48 solution.resource = resource;
49
50 resp.build.build(solution, function(fileStats){
51
52
53 that.resolve(solution);
54 });
55
56 return this;
57 }
58
59 });
60
61 });
62