View require-shim.js
// in your action
{formatter} = requrie('../helper.js')
// in helper.js
const path = require('path')
exports.formatter = require(path.join(__dirname, 'path', 'that', 'is', 'really', 'long', 'formatter.js'))
View test.js
/**
* @jest-environment jest-environment-webdriver
*/
const url = 'https://www.actionherojs.com'
describe('www.actionherojs.com#index', () => {
test('it renders', async () => {
await browser.get(url)
const title = await browser.findElement(by.tagName('h2')).getText()
View build.js
const nexe = require('nexe')
nexe.compile({
output: 'build',
input: `${__dirname}/index.js`,
build: true,
silent: false
})
View client.js
require('isomorphic-fetch') // ensure fech is in-scope, even on the server
let hosts = {
dev: 'http://localhost:8080',
production: 'https://api.scoreboard.guru'
}
export default class Client {
apiEndpoint () {
if (process && process.title === 'node') {
View v17.js
exports.cacheTest = {
name: 'cacheTest',
description: 'I will test the internal cache functions of the API',
inputs: {
key: {
required: true,
formatter: function (s) { return String(s) }
},
value: {
required: true,
View code.js
const {promisify} = require('util')
async sleep (time) {
return promisify(setTimeout)(time)
}
View index.js
exports.api = {}
exports.initializer = require('./initializer.js')
exports.main = require('./main.js') // comment me out and everything is fine
View buildSitemap.js
#! /usr/bin/env node
// I am ./bin/buildSitemap.js
const path = require('path')
const glob = require('glob')
const fs = require('fs')
const SITE_ROOT = process.env.SITE_ROOT || 'https://www.actionherojs.com'
const SOURCE = process.env.SOURCE || path.join(__dirname, '..', 'pages', '/**/*.js')
const DESTINATION = process.env.DESTINATION || path.join(__dirname, '..', 'static', 'sitemap.xml')
View asyncAwait.js
exports.asyncAwait = {
name: 'asyncAwait',
description: 'I am an asyncAwait action',
run: async function (api, data, next) {
let startTime = new Date().getTime()
let sleep = 1000
let timerPromise = new Promise((resolve, reject) => { setTimeout(resolve, sleep) })
try {
View Full English Breakfast in a Bread Bowl.md

London Style Breakfast Bread Bowls (LSBBB)

Original Inspiration:

http://www.bargehouse.co.uk/kitchen/

Bespoke sourdough loaf filled filled with smoked bacon, Cumberland sausage, slow roasted tomatoes, leeks, oyster mushrooms, spinach, topped with a free range egg and sprinkled with cheese

Shopping List: