-
Notifications
You must be signed in to change notification settings - Fork 1
/
core_tasks.js
67 lines (64 loc) · 1.59 KB
/
core_tasks.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
'use strict';
module.exports = [
// {
// "module": "nativeloop/plugins/npm",
// "dirname": "${event.dir.lib}",
// "args": ["install"],
// "events": "preload",
// "weight": 100,
// },
{
"module": "nativeloop/plugins/promises",
"events": "postcompile",
"weight": 100,
}, {
"module": "nativeloop/plugins/underscore-fix",
"events": "postcompile",
"weight": 110,
}, {
"module": "nativeloop/plugins/backbone-fix",
"events": "postcompile",
"weight": 120,
},
// TODO: Need to figure out way to add hook after Titanium has completed
// {
// "module": "nativeloop/plugins/remove-invalid-header",
// "events": "postcompile",
// "weight": 120,
// "platforms": ["mobileweb"],
// },
{
"module": "nativeloop/plugins/widgets-add",
"events": "preload",
"weight": 110,
},
// {
// "module": "nativeloop/plugins/widgets-remove",
// "events": "postcompile",
// "weight": 500,
// },
{
"module": "nativeloop/plugins/nodejs",
"events": "postcompile",
"includes": [ "**/*.js", "**/*.json", "!resolver.js", "!**/alloy/underscore.js" ],
"weight": 200,
}, {
"module": "nativeloop/plugins/babeljs",
"options": {
// "presets": ["es2015"]
'presets': [ require( 'babel-preset-es2015' ) ],
},
"includes": [ "**/*.js", "!backbone2.js", "**/alloy/lodash.js" ],
"events": [ "preload" ],
"weight": 200,
}, {
"module": "nativeloop/plugins/babeljs",
"options": {
// "presets": [ "es2015" ]
'presets': [ require( 'babel-preset-es2015' ) ],
},
"includes": [ "**/*.js", "!backbone2.js", "**/alloy/lodash.js" ],
"events": [ "preparse" ],
"weight": 100,
},
]