mirror of https://github.com/akveo/blur-admin
refactor(build): add tree view resourses to release folder
parent
b9a5cdf1e5
commit
1375efbecd
|
@ -78,14 +78,15 @@ gulp.task('fonts', function () {
|
||||||
.pipe(gulp.dest(path.join(conf.paths.dist, '/fonts/')));
|
.pipe(gulp.dest(path.join(conf.paths.dist, '/fonts/')));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('other', function () {
|
gulp.task('other', ['copyVendorImages'], function () {
|
||||||
var fileFilter = $.filter(function (file) {
|
var fileFilter = $.filter(function (file) {
|
||||||
return file.stat.isFile();
|
return file.stat.isFile();
|
||||||
});
|
});
|
||||||
|
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
path.join(conf.paths.src, '/**/*'),
|
path.join(conf.paths.src, '/**/*'),
|
||||||
path.join('!' + conf.paths.src, '/**/*.{html,css,js,scss,md}')
|
path.join('!' + conf.paths.src, '/**/*.{html,css,js,scss,md}'),
|
||||||
|
path.join(conf.paths.tmp, '/serve/**/assets/img/theme/vendor/**/*')
|
||||||
])
|
])
|
||||||
.pipe(fileFilter)
|
.pipe(fileFilter)
|
||||||
.pipe(gulp.dest(path.join(conf.paths.dist, '/')));
|
.pipe(gulp.dest(path.join(conf.paths.dist, '/')));
|
||||||
|
|
|
@ -4,12 +4,15 @@ var path = require('path');
|
||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
var conf = require('./conf');
|
var conf = require('./conf');
|
||||||
|
|
||||||
gulp.task('copyVendorImages',function () {
|
gulp.task('copyVendorImages', function () {
|
||||||
return gulp.src([
|
return gulp
|
||||||
path.join(conf.wiredep.directory, '**/ammap/dist/ammap/images/**/*'),
|
.src([
|
||||||
path.join(conf.wiredep.directory, '**/amcharts/dist/amcharts/images/**/*'),
|
path.join(conf.wiredep.directory, '**/ammap/dist/ammap/images/**/*'),
|
||||||
path.join(conf.wiredep.directory, '**/ionrangeslider/img/**/*')
|
path.join(conf.wiredep.directory, '**/amcharts/dist/amcharts/images/**/*'),
|
||||||
])
|
path.join(conf.wiredep.directory, '**/ionrangeslider/img/**/*'),
|
||||||
.pipe(gulp.dest(path.join(conf.paths.dist, '/assets/img/theme/vendor')));
|
path.join(conf.wiredep.directory, '**/jstree/dist/themes/**/*'),
|
||||||
|
path.join(conf.wiredep.directory, '**/leaflet/dist/images/**/*')
|
||||||
|
])
|
||||||
|
.pipe(gulp.dest(path.join(conf.paths.tmp, 'serve', '/assets/img/theme/vendor')));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
editableOptions.theme = 'bs3';
|
editableOptions.theme = 'bs3';
|
||||||
editableThemes['bs3'].submitTpl = '<button type="submit" class="btn btn-primary btn-with-icon"><i class="ion-checkmark-round"></i></button>';
|
editableThemes['bs3'].submitTpl = '<button type="submit" class="btn btn-primary btn-with-icon"><i class="ion-checkmark-round"></i></button>';
|
||||||
editableThemes['bs3'].cancelTpl = '<button type="button" ng-click="$form.$cancel()" class="btn btn-default btn-with-icon"><i class="ion-close-round"></i></button>';
|
editableThemes['bs3'].cancelTpl = '<button type="button" ng-click="$form.$cancel()" class="btn btn-default btn-with-icon"><i class="ion-close-round"></i></button>';
|
||||||
|
|
||||||
|
$.jstree.defaults.core.themes.url = true;
|
||||||
|
$.jstree.defaults.core.themes.dir = "assets/img/theme/vendor/jstree/dist/themes";
|
||||||
}
|
}
|
||||||
|
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue