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
// ---- | |
// Sass (v3.3.3) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$svg-path: "../img/svg"; | |
$png-path: "../img/png"; | |
@mixin svg-img($name, $props: null, $bg: null) { | |
background: $bg url("#{$svg-path}/#{$name}.svg") $props; |
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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var browserSync = require('browser-sync'); | |
var theme = './wp/wp-content/themes/lostco'; | |
gulp.task('sass', function() { | |
gulp.src(theme +'/scss/*.scss') | |
.pipe(sass()) | |
.pipe(gulp.dest(theme)); |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Watch | |
watch: { | |
options: { | |
cwd: 'httpdocs/', |
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> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="js/utils.js"></script> | |
<script type="text/javascript" src="js/normalise.js"></script> | |
<style type="text/css"> | |
html, body { | |
margin: 0; | |
} |
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> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="js/utils.js"></script> | |
<script type="text/javascript" src="js/normalise.js"></script> | |
<style type="text/css"> | |
html, body { | |
margin: 0; | |
} |
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
var http = require("http"); | |
var _ = require("lodash"); | |
var validUrls = []; | |
module.exports = { | |
plugin: function (bs) { | |
bs.io.sockets.on("connection", function (client) { | |
client.on("client:url", function (data) { |
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
(function (window, socket) { | |
socket.on("connection", function () { | |
window.___socket___.emit("client:url", {location: window.location}); | |
}); | |
socket.on("html:inject", function (data) { | |
var body = document.getElementById("BSBLOCK"); | |
body.innerHTML = data.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
var fs = require("fs"); | |
var jsdom = require("jsdom").jsdom; | |
var document1 = fs.readFileSync("./store-product.html", "utf-8"); | |
var simple = fs.readFileSync("./dom1.html", "utf-8"); | |
var simple2 = fs.readFileSync("./dom2.html", "utf-8"); | |
var document2 = fs.readFileSync("./store-product-alt.html", "utf-8"); | |
var jquery = fs.readFileSync("./jquery.js", "utf-8"); |
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
var instance = browserSync(options, function () { | |
// instance.app | |
// instance.connect | |
}); |
OlderNewer