Guest User

Untitled

a guest
Feb 25th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. // Include gulp
  2. var gulp = require('gulp');
  3.  
  4. // Include Our Plugins
  5. var jshint = require('gulp-jshint');
  6. var sass = require('gulp-sass');
  7. var concat = require('gulp-concat');
  8. var uglify = require('gulp-uglify');
  9. var rename = require('gulp-rename');
  10.  
  11. // Lint Task
  12. gulp.task('lint', function() {
  13. return gulp.src('js/*.js')
  14. .pipe(jshint())
  15. .pipe(jshint.reporter('default'));
  16. });
  17.  
  18. // Compile Our Sass
  19. gulp.task('sass', function() {
  20. return gulp.src('assets/scss/*.scss')
  21. .pipe(sass())
  22. .pipe(gulp.dest('assets/css'));
  23. });
  24.  
  25. // Concatenate & Minify JS
  26. gulp.task('scripts', function() {
  27. return gulp.src('js/*.js')
  28. .pipe(concat('all.js'))
  29. .pipe(gulp.dest('assets/js'))
  30. .pipe(rename('all.min.js'))
  31. .pipe(uglify())
  32. .pipe(gulp.dest('assets/js'));
  33. });
  34.  
  35. // Watch Files For Changes
  36. gulp.task('watch', function() {
  37. gulp.watch('assets/js/*.js', ['lint', 'scripts']);
  38. gulp.watch('assets/scss/*.scss', ['sass']);
  39. });
  40.  
  41. // Default Task
  42. gulp.task('default', ['lint', 'sass', 'scripts', 'watch']);
  43.  
  44. @charset 'utf-8';
  45.  
  46. @import 'settings';
  47. @import 'foundation';
  48. @import 'motion-ui';
  49.  
  50. @include foundation-global-styles;
  51. @include foundation-grid;
  52. // @include foundation-flex-grid;
  53. @include foundation-typography;
  54. @include foundation-button;
  55. @include foundation-forms;
  56. // @include foundation-range-input;
  57. @include foundation-accordion;
  58. @include foundation-accordion-menu;
  59. @include foundation-badge;
  60. @include foundation-breadcrumbs;
  61. @include foundation-button-group;
  62. @include foundation-callout;
  63. @include foundation-close-button;
  64. @include foundation-menu;
  65. @include foundation-menu-icon;
  66. @include foundation-drilldown-menu;
  67. @include foundation-dropdown;
  68. @include foundation-dropdown-menu;
  69. @include foundation-flex-video;
  70. @include foundation-label;
  71. @include foundation-media-object;
  72. @include foundation-off-canvas;
  73. @include foundation-orbit;
  74. @include foundation-pagination;
  75. @include foundation-progress-bar;
  76. // @include foundation-progress-element;
  77. // @include foundation-meter-element;
  78. @include foundation-slider;
  79. @include foundation-sticky;
  80. @include foundation-reveal;
  81. @include foundation-switch;
  82. @include foundation-table;
  83. @include foundation-tabs;
  84. @include foundation-thumbnail;
  85. @include foundation-title-bar;
  86. @include foundation-tooltip;
  87. @include foundation-top-bar;
  88. @include foundation-visibility-classes;
  89. @include foundation-float-classes;
  90. // @include foundation-flex-classes;
  91.  
  92. @include motion-ui-transitions;
  93. @include motion-ui-animations;
  94.  
  95. // NOUVEAU mixins, including image-url() fix
  96. @import "nv-mixins";
  97.  
  98. // Load NOUVEAU compatibility styles
  99. @import "nv-wordpress";
  100.  
  101. // Color
  102. $brand-orange: #ff9900;
  103. $brand-hove-blue: #0066cc;
  104. $brand-blue: #181826;
  105. $brand-dark-blue: #1b1b25;
  106. $brand-dark-blue2: #181826;
  107. $brand-light-grey: rgba(206, 206, 208, 0.5);
  108. $brand-orange-rgba: rgba(255, 153, 0, 0.5);
  109. $brand-blue-rgba: rgba(0, 102, 204, 0.5);
  110.  
  111. @import 'parts/general';
  112. @import 'parts/header';
  113. @import 'pages/home';
  114. @import 'pages/insurance';
  115. @import 'pages/news';
  116. @import 'pages/why-us';
  117. @import 'pages/contact';
  118. @import 'parts/footer';
  119.  
  120. var sassOptions = {
  121. errLogToConsole: true,
  122. outputStyle: 'expanded',
  123. includePaths: 'bower_components/foundation-sites/scss'
  124. };
  125. // Compile Our Sass
  126. gulp.task('sass', function() {
  127. return gulp.src('assets/scss/*.scss')
  128. .pipe(sass(sassOptions))
  129. .pipe(gulp.dest('assets/css'));
  130. });
  131.  
  132. gulp.task('sass', function() {
  133. return gulp.src('assets/scss/**/*.scss') // This Line
  134. .pipe(sass())
  135. .pipe(gulp.dest('assets/css'));
  136. });
Add Comment
Please, Sign In to add comment