refactor(build): add tree view resourses to release folder

pull/3/head
alex 2016-02-25 13:03:34 +03:00
parent b9a5cdf1e5
commit 1375efbecd
3 changed files with 16 additions and 9 deletions

View File

@ -78,14 +78,15 @@ gulp.task('fonts', function () {
.pipe(gulp.dest(path.join(conf.paths.dist, '/fonts/')));
});
gulp.task('other', function () {
gulp.task('other', ['copyVendorImages'], function () {
var fileFilter = $.filter(function (file) {
return file.stat.isFile();
});
return gulp.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(gulp.dest(path.join(conf.paths.dist, '/')));

View File

@ -4,12 +4,15 @@ var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
gulp.task('copyVendorImages',function () {
return gulp.src([
path.join(conf.wiredep.directory, '**/ammap/dist/ammap/images/**/*'),
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')));
gulp.task('copyVendorImages', function () {
return gulp
.src([
path.join(conf.wiredep.directory, '**/ammap/dist/ammap/images/**/*'),
path.join(conf.wiredep.directory, '**/amcharts/dist/amcharts/images/**/*'),
path.join(conf.wiredep.directory, '**/ionrangeslider/img/**/*'),
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')));
});

View File

@ -23,6 +23,9 @@
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'].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";
}
})();