This file contains hidden or 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
const allCountries = [ | |
{name: 'Australia', code: 'AUS', code2: 'AU'}, | |
{name: 'Canada', code: 'CAN', code2: 'CA'}, | |
{name: 'Finland', code: 'FIN', code2: 'FI'}, | |
{name: 'Ireland', code: 'IRL', code2: 'IE'}, | |
{name: 'Japan', code: 'JPN', code2: 'JP'}, | |
{name: 'Norway', code: 'NOR', code2: 'NO'}, | |
{name: 'South Africa', code: 'ZAF', code2: 'ZA'}, | |
{name: 'Sweden', code: 'SWE', code2: 'SE'}, | |
{name: 'United Kingdom', code: 'GBR', code2: 'GB', alt: ['Great Britain', 'England', 'UK']}, |
This file contains hidden or 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
yarn test | |
RESULT=$? | |
if [ $RESULT == 1 ]; then | |
echo "Commit rejected: some tests failed. Please fix the tests before committing." | |
exit 1 | |
fi |
This file contains hidden or 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 node | |
const path = require('path'); | |
const glob = require('glob'); | |
const fs = require('fs'); | |
const SITE_ROOT = 'https://example.com'; | |
const SOURCE = path.join(__dirname, '..', 'pages', '/**/*.js'); | |
const DESTINATION = path.join(__dirname, '..', 'static', 'sitemap.xml'); |
This file contains hidden or 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
const signUp = Machine({ | |
id: 'signup', | |
initial: 'init', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
init: { | |
on: { |
OlderNewer