-
Notifications
You must be signed in to change notification settings - Fork 123
/
gulpfile.js
58 lines (47 loc) · 3.32 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
const elixir = require('laravel-elixir');
elixir.config.sourcemaps = true;
// elixir.inProduction = true;
const publicPath = 'public/';
const themePath = publicPath + 'themes/newstv/';
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for your application as well as publishing vendor resources.
|
*/
elixir((mix) => {
mix
/*Core stylesheets*/
.sass('./vendor/sgsoft-studio/base/resources/assets/sass/style.scss', publicPath + 'admin/css')
.sass('./vendor/sgsoft-studio/base/resources/assets/sass/admin-bar.scss', publicPath + 'admin/css')
/*Core scripts*/
.rollup('./vendor/sgsoft-studio/base/resources/assets/js/webed-core.js', publicPath + 'admin/js')
.rollup('./vendor/sgsoft-studio/base/resources/assets/js/script.js', publicPath + 'admin/js')
/*Datatables*/
.rollup('./vendor/sgsoft-studio/base/resources/assets/js/Components/DataTables/DataTable.js', publicPath + 'admin/modules/datatables/webed.datatable.js')
.rollup('./vendor/sgsoft-studio/base/resources/assets/js/Components/DataTables/DataTableAjax.js', publicPath + 'admin/modules/datatables/webed.datatable.ajax.js')
.copy('./' + publicPath + 'admin/modules/auth', 'core/base/resources/public/admin/modules/auth')
.copy('./' + publicPath + 'admin/modules/datatables', 'core/base/resources/public/admin/modules/datatables')
.copy('./' + publicPath + 'admin/css', 'core/base/resources/public/admin/css')
.copy('./' + publicPath + 'admin/js', 'core/base/resources/public/admin/js')
/*Menus*/
.sass('./vendor/sgsoft-studio/menus/resources/assets/sass/admin/modules/menu/menu-nestable.scss', publicPath + 'admin/modules/menu')
.rollup('./vendor/sgsoft-studio/menus/resources/assets/js/admin/modules/menu/edit-menu.js', publicPath + 'admin/modules/menu')
.copy('./' + publicPath + 'admin/modules/menu', 'core/menus/resources/public/admin/modules/menu')
/*Custom fields*/
.sass('./vendor/sgsoft-studio/custom-fields/resources/assets/sass/admin/modules/custom-fields/edit-field-group.scss', publicPath + 'admin/modules/custom-fields')
.rollup('./vendor/sgsoft-studio/custom-fields/resources/assets/js/admin/modules/custom-fields/edit-field-group.js', publicPath + 'admin/modules/custom-fields')
.rollup('./vendor/sgsoft-studio/custom-fields/resources/assets/js/admin/modules/custom-fields/import-field-group.js', publicPath + 'admin/modules/custom-fields')
.rollup('./vendor/sgsoft-studio/custom-fields/resources/assets/js/admin/modules/custom-fields/use-custom-fields.js', publicPath + 'admin/modules/custom-fields')
.copy('./' + publicPath + 'admin/modules/custom-fields', 'core/custom-fields/resources/public/admin/modules/custom-fields')
/**
* Google analytics
*/
.rollup('./plugins/google-analytics/resources/assets/js/WebEdAnalytics.js', publicPath + 'plugins/analytics/analytics.js')
.copy('./' + publicPath + 'plugins/analytics', 'plugins/google-analytics/resources/public/plugins/analytics')
;
});