daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******************************************************************************/
  2.  
  3. var gulp=require('gulp');
  4. var concat=require('gulp-concat');
  5. var rename=require('gulp-rename');
  6. var uglify=require('gulp-uglify');
  7. var sass=require('gulp-sass');
  8. var watch=require('gulp-watch');
  9.  
  10. /******************************************************************************/
  11.  
  12. gulp.task('stream', function(){
  13.   gulp.watch('development/css/system/**.scss', ['system_style', 'plugins_style']);
  14. });
  15.  
  16. /******************************************************************************/
  17.  
  18. // gulp
  19. gulp.task('default', [
  20.   'plugins_style',
  21.   'system_style',
  22.   'plugins_script',
  23.   'system_script'
  24. ]);
  25.  
  26. /******************************************************************************/
  27.  
  28. gulp.task('plugins_style', function(){
  29.     return gulp.src([
  30.         'development/css/plugins/bootstrap/bootstrap.scss',
  31.         'development/css/plugins/fontawesome/web-fonts-with-css/scss/font-compile.scss',
  32.         'development/css/plugins/owl/owl.carousel.min.css',
  33.         'development/css/plugins/owl/owl.theme.default.min.css'
  34.     ])
  35.     .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
  36.     .pipe(concat('plugins.css'))
  37.     .pipe(gulp.dest('./production/css'));
  38. });
  39.  
  40. gulp.task('system_style', function(){
  41.     return gulp.src([
  42.         'development/css/system/style.scss',
  43.         'development/css/mobile/mobile.scss'
  44.     ])
  45.     .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
  46.     .pipe(concat('style.css'))
  47.     .pipe(gulp.dest('./production/css'));
  48. });
  49.  
  50. /******************************************************************************/
  51.  
  52. var techtudo_js_plugins=[
  53.     'development/js/plugins/jquery-3.3.1.min.js',
  54.     'development/js/plugins/bootstrap.min.js',
  55.   'development/js/plugins/bootstrap-popper.min.js',
  56.     'development/js/plugins/vue-2.5.16.min.js',
  57.   'development/js/plugins/vue-resource-1.5.1.min.js',
  58.     'development/js/plugins/vue-scrollto-2.11.0.js',
  59.     'development/js/plugins/vue-clipboard.min.js',
  60.     'development/js/plugins/vue-star-rating.min.js',
  61.   'development/js/plugins/owl-carousel.min.js'
  62. ];
  63.  
  64. var techtudo_js_system=[
  65.     'development/js/system/home.js',
  66.     'development/js/system/news.js',
  67.     'development/js/system/coupon.js',
  68.     'development/js/system/search.js',
  69.     'development/js/system/review.js',
  70.   'development/js/system/store.js'
  71. ];
  72.  
  73. var techtudo_js_dest='./production/js';
  74.  
  75. gulp.task('plugins_script', function(){
  76.     return gulp.src(techtudo_js_plugins)
  77.         .pipe(concat('plugins.js'))
  78.         .pipe(gulp.dest(techtudo_js_dest));
  79. });
  80.  
  81. gulp.task('system_script', function(){
  82.     return gulp.src(techtudo_js_system)
  83.         .pipe(concat('system.js'))
  84.         .pipe(gulp.dest(techtudo_js_dest))
  85.         .pipe(rename('system.min.js'))
  86.         .pipe(uglify())
  87.         .pipe(gulp.dest(techtudo_js_dest));
  88. });
  89.  
  90. /******************************************************************************/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top