The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: October 8th 2015
- Original post
// Load plugins | |
var gulp = require('gulp'), | |
plugins = require('gulp-load-plugins')({ camelize: true }), | |
lr = require('tiny-lr'), | |
server = lr(); | |
// Styles | |
gulp.task('styles', function() { | |
return gulp.src('assets/styles/source/*.scss') | |
.pipe(plugins.rubySass({ style: 'expanded', compass: true })) |
<?php | |
// Get terms | |
// http://codex.wordpress.org/Function_Reference/get_terms | |
// use $args array in second parameter if needed | |
$my_categories = get_terms( 'TERM_NAME_HERE' ); | |
$my_categories_count = count( $my_categories ); | |
if ( $my_categories_count > 0 && is_array( $my_categories ) ) { | |
echo '<div class="wrap">'; |
# Create directory for new site | |
cd ~/Sites | |
mkdir {query} | |
cd {query} | |
# Download latest version of WordPress | |
wp core download | |
# Setup wp-config file with WP_DEBUG enabled | |
wp core config --dbname={query} --dbuser=root --dbpass=root --dbprefix={query}wp_ --extra-php <<PHP |
'use strict'; | |
module.exports = function(grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
grunt.initConfig({ | |
// watch for changes and trigger compass, jshint, uglify and livereload | |
watch: { |
{ | |
"name": "project-name", | |
"description": "project description", | |
"author": "Matt Banks <email@here.com>", | |
"version": "1.0.0", | |
"repository": { | |
"type": "git", | |
"url": "project-url-here" | |
}, | |
"scripts": { |
# EditorConfig coding styles definitions. For more information about the | |
# properties used in this file, please see the EditorConfig documentation: | |
# http://editorconfig.org/ | |
# indicate this is the root of the project | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf |
module.exports = { | |
// collectCoverage: true, | |
// collectCoverageFrom: [ | |
// 'app/**/*.js' | |
// ], | |
testResultsProcessor: 'jest-junit', | |
}; |
{ | |
"extends": [ | |
"airbnb-base", | |
"prettier" | |
], | |
"parserOptions": { | |
"ecmaVersion": 8, | |
"ecmaFeatures": { | |
"classes": true | |
} |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks |