Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************/
- var gulp=require('gulp');
- var concat=require('gulp-concat');
- var rename=require('gulp-rename');
- var uglify=require('gulp-uglify');
- var sass=require('gulp-sass');
- var watch=require('gulp-watch');
- /******************************************************************************/
- gulp.task('stream', function(){
- gulp.watch('development/css/system/**.scss', ['system_style', 'plugins_style']);
- });
- /******************************************************************************/
- // gulp
- gulp.task('default', [
- 'plugins_style',
- 'system_style',
- 'plugins_script',
- 'system_script'
- ]);
- /******************************************************************************/
- gulp.task('plugins_style', function(){
- return gulp.src([
- 'development/css/plugins/bootstrap/bootstrap.scss',
- 'development/css/plugins/fontawesome/web-fonts-with-css/scss/font-compile.scss',
- 'development/css/plugins/owl/owl.carousel.min.css',
- 'development/css/plugins/owl/owl.theme.default.min.css'
- ])
- .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
- .pipe(concat('plugins.css'))
- .pipe(gulp.dest('./production/css'));
- });
- gulp.task('system_style', function(){
- return gulp.src([
- 'development/css/system/style.scss',
- 'development/css/mobile/mobile.scss'
- ])
- .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
- .pipe(concat('style.css'))
- .pipe(gulp.dest('./production/css'));
- });
- /******************************************************************************/
- var techtudo_js_plugins=[
- 'development/js/plugins/jquery-3.3.1.min.js',
- 'development/js/plugins/bootstrap.min.js',
- 'development/js/plugins/bootstrap-popper.min.js',
- 'development/js/plugins/vue-2.5.16.min.js',
- 'development/js/plugins/vue-resource-1.5.1.min.js',
- 'development/js/plugins/vue-scrollto-2.11.0.js',
- 'development/js/plugins/vue-clipboard.min.js',
- 'development/js/plugins/vue-star-rating.min.js',
- 'development/js/plugins/owl-carousel.min.js'
- ];
- var techtudo_js_system=[
- 'development/js/system/home.js',
- 'development/js/system/news.js',
- 'development/js/system/coupon.js',
- 'development/js/system/search.js',
- 'development/js/system/review.js',
- 'development/js/system/store.js'
- ];
- var techtudo_js_dest='./production/js';
- gulp.task('plugins_script', function(){
- return gulp.src(techtudo_js_plugins)
- .pipe(concat('plugins.js'))
- .pipe(gulp.dest(techtudo_js_dest));
- });
- gulp.task('system_script', function(){
- return gulp.src(techtudo_js_system)
- .pipe(concat('system.js'))
- .pipe(gulp.dest(techtudo_js_dest))
- .pipe(rename('system.min.js'))
- .pipe(uglify())
- .pipe(gulp.dest(techtudo_js_dest));
- });
- /******************************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement