Skip to content

Instantly share code, notes, and snippets.

View dainelmawer's full-sized avatar
🏠
Working from home

Daine Mawer dainelmawer

🏠
Working from home
View GitHub Profile
{
"name": "wp-theme-workflow",
"version": "1.0.0",
"description": "A WordPress theme workflow inspired by 10up Engineering Best Practices",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
# IGNORE ALLES
*
# WP EXCEPTIONS NOT TO IGNORE
!wp-content
!wp-content/themes
!wp-content/mu-plugins
!wp-content/themes/wpsa
!wp-content/themes/wpsa/**
<?php
/**
* Custom WordPress configurations on "wp-config.php" file.
*
* This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
* For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page.
* Created using {@link http://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com.
*
* @package WordPress
* @generator GenerateWP.com
mkdir "${WORKSPACE}"/tmp
cd "${WORKSPACE}"
rm -rf .git
if [ -f "composer.json" ]; then
composer install
fi
cd wp-content/themes/wpsa
@dainelmawer
dainelmawer / OS X Development Setup
Created September 25, 2017 07:29
Development Bash Script for MAC OS X using Homebrew
#!/usr/bin/env bash
#
# Notes:
#
# - Homebrew & Git require Xcode Command Line Tools, OS X should prompt you on first install.
#
echo "Starting Mac OS X Dev Setup..."
# Check for Homebrew, install if we don't have it
---
sites:
# The wordpress-default configuration provides a default installation of the
# latest version of WordPress.
wordpress-default:
repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git
hosts:
- local.wordpress.dev
# The wordpress-develop configuration is useful for contributing to WordPress.
function zone_clean_header() {
  
  remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
  remove_action( 'wp_head', 'wp_generator' );
  remove_action( 'wp_head', 'wlwmanifest_link' );
  remove_action( 'wp_head', 'rsd_link' );
  remove_action( 'wp_head', 'wp_shortlink_wp_head' );
  remove_action( 'wp_head', 'feed_links', 2 );
  remove_action( 'wp_head', 'feed_links_extra', 3 );
  remove_action( 'wp_head', 'rest_output_link_wp_head' );
// package.json
{
"name": "dictionary",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
import React from 'react';
const Widget = (props) => {
return(
<div className="widget>
<h1>{props.title}</h1>
</div>
);
}
import React, { Component } from 'react';
import Input from './input';
import Button from './button';
import TextArea from './textarea';
const Form = () => (
<form>
<Input type="text" placeholder="Name" />
<Input type="email" placeholder="Email" />
<Input type="number" placeholder="Mobile" />