This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install gulp-cli -g | |
npm install gulp -D | |
touch gulpfile.js | |
gulp --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('sprite', function() { | |
var spriteData = | |
gulp.src('./images/sprite/*.*') | |
.pipe(spritesmith({ | |
imgName: 'sprite.png', | |
cssName: 'sprite.css', | |
})); | |
spriteData.img.pipe(gulp.dest('./images/')); | |
spriteData.css.pipe(gulp.dest('./styles/')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('images', function() { | |
return gulp.src('./images/src/*') | |
.pipe(plumber({ errorHandler: onError })) | |
.pipe(imagemin({ optimizationLevel: 7, progressive: true })) | |
.pipe(gulp.dest('./images')); | |
}); | |
var onError = function(err) { | |
console.log('An error occurred:', gutil.colors.magenta(err.message)); | |
gutil.beep(); | |
this.emit('end'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('sass', function() { | |
return gulp.src('./sass/*.scss') | |
.pipe(sass({outputStyle: 'compressed'})) | |
.pipe(strip_comments()) | |
// .pipe(autoprefixer()) | |
.pipe(gulp.dest('./')) // Output LTR stylesheets (style.css) | |
.pipe(plumber({ errorHandler: onError })) | |
.pipe(browserSync.stream()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('sass', function() { | |
return gulp.src('./sass/*.scss') | |
.pipe(sass({outputStyle: 'compressed'})) | |
.pipe(strip_comments()) | |
// .pipe(autoprefixer()) | |
.pipe(gulp.dest('./')) // Output LTR stylesheets (style.css) | |
.pipe(plumber({ errorHandler: onError })) | |
.pipe(browserSync.stream()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('browser-sync', function() { | |
var files = [ | |
'./*.php', | |
'./*.html', | |
'./*.js' | |
]; | |
browserSync.init(files, { | |
// server: { | |
// baseDir: "./", | |
// index: "index.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('watch', function() { | |
gulp.watch('./sass/**/*.scss', ['sass']); | |
gulp.watch('images/src/*', ['images']); | |
gulp.watch('images/sprite/*', ['sprite']); | |
}); | |
gulp.task('default', ['sprite', 'sass', 'js', 'script', 'images', 'browser-sync', 'watch']); | |
gulp.task('build',['sprite', 'sass', 'js', 'script', 'images']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install gulp es6-promise gulp-sass gulp-rename gulp-plumber gulp-util gulp-concat gulp-uglify gulp-concat gulp-imagemin browser-sync main-bower-files gulp.spritesmith gulp-strip-json-comments --save-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('es6-promise').polyfill(); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var rename = require('gulp-rename'); | |
var plumber = require('gulp-plumber'); | |
var gutil = require('gulp-util'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<title>EU Business Register :: Search results</title> | |
<META HTTP-EQUIV="Cache-control" CONTENT="no-cache"> | |
<META NAME="copyright" CONTENT="www.eubusinessregister.com"> | |
<META NAME="description" CONTENT="Welcome to EU Business Register!The easiest way to find companies specified by branch, city and country within the 25 EU countries"> | |
<META HTTP-EQUIV="expires" CONTENT="Sun, 1 Jan 2010 23:59:59 GMT"> | |
<META NAME="keywords" CONTENT="eu business register,eu,europian union,company search"> | |
<META NAME="ROBOTS" CONTENT="FOLLOW, INDEX"> |