Remeber to use git config core.ignorecase false
while you are on case insensitive partition
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 plumber = require('gulp-plumber'); | |
var print = require('gulp-print'); | |
var notify = require("gulp-notify"); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var csslint = require('gulp-csslint'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var uglify = require('gulp-uglify'); | |
var browserSync = require('browser-sync'); |
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
<!--[if !IE]><!--> | |
<script type="text/javascript"> | |
var supportsWoff2 = (function(){ | |
if(!('FontFace' in window)){ | |
return false; | |
} | |
var f = new window.FontFace( "t", 'url("data:application/font-woff2,") format("woff2")', {}); | |
f.load().catch(function(){}); | |
return f.status === 'loading'; | |
})(); |
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
env: | |
node: true | |
browser: true | |
amd: true | |
es6: true | |
jquery: true | |
prototypejs: true | |
rules: | |
indent: 0 | |
brace-style: [2, "1tbs"] |
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
window.addEventListener("beforeunload", function () { | |
document.body.classList.add("animate-out"); | |
}); |
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() { | |
// global vars | |
var gulp = this.gulp, | |
plugins = this.opts.plugins, | |
config = this.opts.configs; | |
// local plugins | |
const fs = require('fs'); | |
const path = require('path'); | |
const mkdirp = require('mkdirp'); |
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
<form class="form"> | |
<h2 class="form__header"></h2> | |
<p class="form__description"></p> | |
<div class="form__field field"> | |
<label class="field__label"></label> | |
<input class="field__input"> | |
</div> | |
<div class="form__field field"> | |
<label class="field__label"></label> | |
<input class="field__input"> |
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
const css = require('css'), | |
fs = require('fs'), | |
specificity = require('specificity'); | |
function getSelectorsWithHighSpecificity(cssFilePath, maxSpecificity) { | |
const cssFile = fs.readFileSync(cssFilePath, 'utf8'), | |
output = []; | |
css.parse(cssFile).stylesheet.rules.forEach(rule => { | |
if (rule.type === 'rule') { |
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
window.domReady = function(callback) { | |
var ready = false; | |
var detach = function() { | |
if(document.addEventListener) { | |
document.removeEventListener("DOMContentLoaded", completed); | |
window.removeEventListener("load", completed); | |
} | |
else { | |
document.detachEvent("onreadystatechange", completed); |
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
const glob = require('glob') | |
const fs = require('fs') | |
glob('core/components/**/*.js', (temp, files) => { | |
files.forEach(path => { | |
// const file = require('./' + path) | |
console.log(path) | |
let file = fs.readFileSync('./' + path, 'utf8') | |
file = file.replace(/import Vue from 'vue'\n/gm, '') |
OlderNewer