-
Notifications
You must be signed in to change notification settings - Fork 43
/
gulpfile.js
80 lines (71 loc) · 2.65 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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
var gulp = require("gulp");
//var bower = require("gulp-bower");
var elixir = require("laravel-elixir");
require('laravel-elixir-livereload');
var elixirTypscript = require('elixir-typescript');
/*
gulp.task('bower', function () {
return bower();
});*/
var vendors = '../../assets/vendors/';
var paths = {
'jquery': vendors + 'jquery/dist',
'jqueryUi': vendors + 'jquery-ui',
'moment': vendors + 'moment',
'bootstrap': vendors + 'bootstrap/dist',
'fontawesome': vendors + 'font-awesome',
'eonasdanBootstrapDatetimepicker': vendors + 'eonasdan-bootstrap-datetimepicker/build',
'tether' : vendors + 'tether/dist'
};
elixir(function (mix) {
mix.copy('node_modules/@angular', 'public/@angular');
mix.copy('node_modules/rxjs', 'public/rxjs');
mix.copy('node_modules/systemjs', 'public/systemjs');
mix.copy('node_modules/es6-promise', 'public/es6-promise');
mix.copy('node_modules/es6-shim', 'public/es6-shim');
mix.copy('node_modules/zone.js', 'public/zone.js');
mix.copy('node_modules/satellizer', 'public/satellizer');
mix.copy('node_modules/platform', 'public/platform');
mix.copy('node_modules/reflect-metadata', 'public/reflect-metadata');
/*
mix.copy('resources/assets/vendors/jquery-ui/themes/base/images', 'public/images');
mix.copy('resources/assets/vendors/c3/c3.min.css', 'public/css');
mix.copy('resources/assets/vendors/c3/c3.min.js', 'public/js');
mix.copy('resources/assets/vendors/d3/d3.min.js', 'public/js');
mix.copy('resources/assets/vendors/font-awesome/fonts', 'public/fonts');
*/
//CSS Libraries
/*
mix.styles([paths.fontawesome + "/css/font-awesome.min.css",
paths.jqueryUi + "/themes/base/core.css",
paths.tether + '/css/tether.css',
paths.eonasdanBootstrapDatetimepicker + '/css/bootstrap-datetimepicker.css'
], 'public/css/styles.css');
*/
//JS Libraries
/*
mix.scripts([paths.jquery + "/jquery.js",
paths.jqueryUi + "/jquery-ui.min.js",
paths.tether + '/js/tether.js',
paths.bootstrap + "/js/bootstrap.min.js",
paths.moment + '/moment.js',
paths.eonasdanBootstrapDatetimepicker + '/js/bootstrap-datetimepicker.min.js'
], 'public/js/scripts.js');
*/
mix.typescript(
'/**/*.ts',
'public/js',
{
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
}
);
mix.livereload();
mix.browserSync({proxy: 'localhost:8000'});
});