{"push_id":1080124803,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"eea697a9c14a382b66cc60a0938d7adfdb63dacf","before":"52dc1484ae4cee4a79e902f1716f0b5b7ccb18be","commits":[{"sha":"eea697a9c14a382b66cc60a0938d7adfdb63dacf","author":{"email":"ba265862c55ea5f6706d5ec990975f771ebbb76d@gmail.com","name":"ffuertes"},"message":"Felipe\n\nSearch Drive\n\nDrive\n.\nFolder Path\nMy Drive\nTools\nNEW\nFolders and views\nMy Drive\nShared with me\nGoogle Photos\nRecent\nStarred\nTrash\n2 GB of 30 GB used\nUpgrade storage\nName\nOwner\nLast modified\nFile size\n\ngulpfile.js\nme\n3:07 PM\n2 KB\n\npackage.json\nme\n3:07 PM\n561 bytes\n\n'use strict';\n\nvar gulp         = require('gulp'),\n\tsass         = require('gulp-sass'),\n\tautoprefixer = require('gulp-autoprefixer'),\n\tsourcemaps   = require('gulp-sourcemaps'),\n\tnotify       = require('gulp-notify'),\n\tdel          = require('del'),\n\tzip          = require('gulp-zip'),\n\trunSequence  = require('gulp-run-sequence'),\n\tbrowsersync  = require('browser-sync').create();\n\nvar config = {\n\tname: 'incideetheme',\n\tproxy: 'incidee.nex',\n\tpaths: {\n\t\tstyle: './sass/*.scss',\n\t\tscss: './sass/**/*.scss',\n\t\tphp: './**/*.php'\n\t},\n};\n\ngulp.task('styles', function(){\n\treturn gulp.src(config.paths.style)\n\t\t.pipe(sourcemaps.init())\n\t\t.pipe(sass({outputStyle: 'compressed'}).on('error', notify.onError(function(error){\n\t\t\t\t\treturn \"Error: \" + error.message;\n\t\t\t\t})\n\t\t))\n\t\t.pipe(autoprefixer({ browsers: ['last 2 versions'], flexbox: true }))\n\t\t.pipe(sourcemaps.write('./'))\n\t\t.pipe(gulp.dest('./'))\n\t\t.pipe(browsersync.reload({stream: true}))\n\t\t.pipe(notify({ message: 'Styles tasks complete', onLast: true }));\n});\n\ngulp.task('serve', ['styles'], function() {\n\n    browsersync.init({\n        proxy: config.proxy\n    });\n\n    gulp.watch(config.paths.scss, ['styles']);\n    gulp.watch(config.paths.php).on('change', browsersync.reload);\n});\n\nvar buildInclude    = [\n    // include common file types\n    './**/*.php',\n    './**/*.html',\n    './**/*.css',\n    './**/*.js',\n    './**/*.jpg',\n    './**/*.png',\n    './**/*.gif',\n    './**/*.svg',\n    './**/*.ttf',\n    './**/*.otf',\n    './**/*.eot',\n    './**/*.woff',\n    './**/*.woff2',\n\n    // exclude files and folders\n    '!./**/*.map',\n    '!./sass/**',\n    '!./node_modules/**',\n    '!./readme.md',\n    '!./**/readme.txt'\n];\n\n//Delete the build folder in case it exist\ngulp.task('clean', function(){\n\treturn del([\n\t\t'./' + config.name\n\t]);\n});\n\ngulp.task('buildZip', function() {\n    return gulp.src(config.name + '/**/')\n        .pipe(zip(config.name + '.zip'))\n        .pipe(gulp.dest('./'));\n});\n\ngulp.task('buildFiles', ['styles', 'clean'], function() {\n    return  gulp.src(buildInclude)\n        .pipe(gulp.dest('./' + config.name))\n        .pipe(notify({ message: 'Build task complete', onLast: true }));\n});\n\ngulp.task('build', function(){\n\trunSequence('buildFiles', 'buildZip', 'clean');\n    return notify({ message: 'Build Succeed', onLast: true });\n});\n\ngulp.task('default', ['serve']);","distinct":true,"url":"https://api.github.com/repos/ffuertes/wordpress-boilerplate/commits/eea697a9c14a382b66cc60a0938d7adfdb63dacf"}]}