You’ve created a web app using the SANE stack (using an Ember.js client and a Sails.js API), and now you’re ready to get it out there for the world to see. There are many ways to handle deployments, with varying complexity and tradeoffs. This series of posts will present a few of those methods, with increasing levels of complexity, for deploying your app to AWS. There are many options of where to deploy your app, including Heroku, Firebase, DigitalOcean, AWS, and others. I’ve chosen to use AWS as it is currently the largest and most well-known.
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
#!/bin/bash | |
# | |
# A hook script to perform linting before allowing a commit, | |
# to avoid unnecessary noise or extra work to rebase commits. | |
# Based on: http://stackoverflow.com/a/20480591/1435658 | |
# Necessary to support .nvm and gitx | |
export PATH=/usr/local/bin/:$PATH | |
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
/* @flow */ | |
declare module 'react-select' { | |
import type { | |
ComponentType, | |
Element as ReactElement, | |
ElementRef, | |
Node, | |
Ref, | |
} from "react"; |
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
module.exports = { | |
meta: { | |
type: 'suggestion', | |
fixable: 'code', | |
schema: [], | |
}, | |
create(context) { | |
return { | |
ImportDeclaration(node) { | |
if ( |
This custom ESLint rule is based on a rule from eslint-plugin-react, but it adds one additional option to allowlist hostnames in external links.
I want to be able to use target="_blank" links for documentation articles (a site I control), and I want to keep referrer for analytics purposes. See jsx-eslint/eslint-plugin-react#2941 (comment).
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 Layout from '../../layouts/MainLayout.astro'; | |
import {getLanguageFromFilename, getSlugFromFilename} from '../../languages'; | |
export async function getStaticPaths() { | |
/** | |
* This builds up a set of params using the filename (which is always in english) as the slug, | |
* and adds a redirect prop to the proper internationalized slug. | |
*/ | |
function getRedirects(allPages) { |