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
{ | |
"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", |
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
# IGNORE ALLES | |
* | |
# WP EXCEPTIONS NOT TO IGNORE | |
!wp-content | |
!wp-content/themes | |
!wp-content/mu-plugins | |
!wp-content/themes/wpsa | |
!wp-content/themes/wpsa/** |
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
<?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 |
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
mkdir "${WORKSPACE}"/tmp | |
cd "${WORKSPACE}" | |
rm -rf .git | |
if [ -f "composer.json" ]; then | |
composer install | |
fi | |
cd wp-content/themes/wpsa |
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
#!/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 |
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
--- | |
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. |
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 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' ); |
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
// package.json | |
{ | |
"name": "dictionary", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, |
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
import React from 'react'; | |
const Widget = (props) => { | |
return( | |
<div className="widget> | |
<h1>{props.title}</h1> | |
</div> | |
); | |
} |
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
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" /> |
OlderNewer