-
Notifications
You must be signed in to change notification settings - Fork 2
/
pack.js
40 lines (37 loc) · 1.07 KB
/
pack.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
var core = [
'Core/Pack.js',
'Core/Container.js',
'Core/TransformRepository.js',
'Core/Path.js',
'Core/utils.js',
'Core/FileList.js',
'Core/Output.js',
'Core/resources.js',
'Core/commands.js',
'Core/changeHandlers.js',
'Core/Api.js',
{ files: 'Core/Transforms/*.js', prioritise: 'combine.js' },
{ files: 'Embedded/*.pack.config.js', recursive: true },
{ files: 'Embedded/*.template.*', template: 'Pack.embedTemplate', recursive: true },
'Core/exports.js'
];
pack({
to: 'Build/Node/packscript.js',
include: [
'Node/setup.js',
core,
{ files: 'Node/*.js', exclude: 'Node/setup.js', last: 'exports.js', recursive: true }
],
includeConfigs: true
});
pack({
to: 'Build/Node/packscript.tests.js',
include: [
{ files: 'Tests/Infrastructure/*.js', first: 'setup.js' },
'Tests/Core/*.js',
'Tests/Transforms/*.js',
'Tests/Integration/*.js',
'Tests/Embedded/*.js'
]
});
sync(['package.json', 'README.md', 'Node/bin/packscript']).to('Build/Node');