This repository has been archived by the owner on Aug 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuse.js
64 lines (53 loc) · 1.73 KB
/
fuse.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
var build = function () {
// most of my src code is not ts... so I dont want this running atm
//const TypeCheckPlugin = require('fuse-box-typechecker').TypeCheckPlugin // kinda buggy on the 1.4.1 preview-.-.
const {
FuseBox,
HTMLPlugin,
RawPlugin
} = require("fuse-box");
const fuse = FuseBox.init({
homeDir: "src",
output: "dist/$name.js",
plugins: [
//TypeCheckPlugin({bundles:['app']}),
HTMLPlugin(),
[".css", RawPlugin({extensions: ['.css']})]
]
});
fuse.register('aurelia-v-grid', {
homeDir: 'node_modules/aurelia-v-grid/dist/commonjs',
main: 'index.js',
instructions: '**/*.{html,css,js}',
});
fuse.bundle("vendor")
.cache(true)
.instructions(`
+ aurelia-bootstrapper
+ fuse-box-aurelia-loader
+ aurelia-framework
+ aurelia-pal
+ aurelia-metadata
+ aurelia-v-grid
+ aurelia-loader-default
+ aurelia-polyfills
+ aurelia-fetch-client
+ aurelia-pal-browser
+ aurelia-animator-css
+ aurelia-logging-console
+ aurelia-templating-binding
+ aurelia-templating-resources
+ aurelia-event-aggregator
+ aurelia-history-browser
+ aurelia-templating-router`)
fuse.bundle("app")
.watch().cache(false)
.sourceMaps(true)
.instructions(`
> [main.ts]
+ [**/*.{ts,html,css}]`)
// don't change the port (know issue with hmr)
fuse.dev({ port: 4445, httpServer: true, root:'.' });
fuse.run();
}
build();