forked from dotnet/machinelearning-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
39 lines (33 loc) · 1.2 KB
/
gulpfile.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
/// <binding BeforeBuild='copy-assets' />
// gulpfile.js
var _ = require('lodash'),
gulp = require('gulp');
var node = "./node_modules/",
www = "./wwwroot/lib/";
gulp.task('copy-assets', function () {
var assets = {
js: [
`${node}jquery/dist/jquery.js`,
`${node}jquery/dist/jquery.min.js`,
`${node}jquery/dist/jquery.min.map`,
`${node}bootstrap/dist/js/bootstrap.js`,
`${node}bootstrap/dist/js/bootstrap.min.js`,
`${node}bootstrap/dist/js/bootstrap.js.map`,
`${node}typeahead.js/dist/typeahead.bundle.js`,
`${node}typeahead.js/dist/typeahead.bundle.min.js`,
`${node}plotly.js/dist/plotly-basic.js`,
`${node}plotly.js/dist/plotly-basic.min.js`
],
css: [
`${node}bootstrap/dist/css/bootstrap.css`,
`${node}bootstrap/dist/css/bootstrap.map`,
`${node}bootstrap/dist/css/bootstrap.min.css`,
],
webfonts: [
`${node}@fortawesome/fontawesome-free-webfonts/webfonts/*`
]
};
_(assets).forEach(function (assets, type) {
gulp.src(assets).pipe(gulp.dest(`${www}${type}`));
});
});