WP CLI to automate production
This Gist acompanies my post: WP-CLI: Remote WP Management
\documentclass[12pt, letterpaper, titlepage]{article} | |
% font size could be 10pt (default), 11pt or 12 pt | |
% paper size could be letterpaper (default), legalpaper, executivepaper, | |
% a4paper, a5paper or b5paper | |
% side could be oneside (default) or twoside | |
% columns could be onecolumn (default) or twocolumn | |
% graphics could be final (default) or draft | |
% | |
% titlepage could be notitlepage (default) or titlepage which | |
% makes an extra page for title |
This Gist acompanies my post: WP-CLI: Remote WP Management
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Test</title> | |
<style> | |
.slogan span:nth-child(odd) { | |
color: red; | |
} | |
</style> | |
</head> |
#!/bin/env bash | |
echo "\n\n Checking if package.json exists" | |
if [ -f package.json ] | |
then | |
echo "\n\n package.json exists." | |
else | |
echo "\n\n package.json doesn't exists... creating" | |
npm init --yes | |
fi |
{ | |
"name": "tsquickstart", | |
"version": "1.0.0", | |
"description": "Boilerplate for quick one-off TypeScript projects. Just run `npm start`", | |
"scripts": { | |
"init": "test -f tsconfig.json || (tsc --init -t ESNext -m ESNext && npm install)", | |
"start": "npm run init && concurrently \"npm run watch\" \"npm run serve\"", | |
"serve": "http-server", | |
"watch": "tsc -p . --watch", | |
"build": "tsc -p ." |
A Pen by Carlos Araya on CodePen.
importScripts( | |
'https://storage.googleapis.com/workbox-cdn/releases/3.0.0-beta.0/workbox-sw.js ' | |
); | |
if (workbox) { | |
workbox.routing.registerRoute( | |
/.*\.(?:woff2,woff,ttf,otf)/, | |
workbox.strategies.cacheFirst({ | |
cacheName: 'font-cache', | |
plugins: [ |
Principles of Adult Behavior
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Globalize App example using Webpack</title> | |
</head> | |
<body> | |
<h1>Globalize App example using Webpack</h1> |