Skip to content

Instantly share code, notes, and snippets.

@jasonruesch
jasonruesch / project.json
Created October 17, 2021 17:02
Add deploy target to the api project
{
"root": "apps/api",
"sourceRoot": "apps/api/src",
"projectType": "application",
"targets": {
...
"deploy": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"commands": [
@jasonruesch
jasonruesch / project.json
Created October 17, 2021 17:01
Add deploy target to the web project
{
"projectType": "application",
"root": "apps/web",
"sourceRoot": "apps/web/src",
"prefix": "cb",
"targets": {
...
"deploy": {
"executor": "@nrwl/workspace:run-commands",
"options": {
@jasonruesch
jasonruesch / project.json
Last active November 4, 2021 20:28
Serve Firebase Functions emulator with Nest application
{
"root": "apps/api",
"sourceRoot": "apps/api/src",
"projectType": "application",
"targets": {
...
"serve": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"commands": [
@jasonruesch
jasonruesch / proxy.conf.json
Created October 17, 2021 16:56
Point target to Firebase Functions emulator
{
"/api": {
"target": "http://localhost:5001/cowabunga-dude/us-central1",
"secure": false
}
}
@jasonruesch
jasonruesch / firebase.json
Created October 17, 2021 16:55
Update functions and hosting rewrites
{
"functions": {
"runtime": "nodejs14",
"source": "dist/apps/api",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
},
@jasonruesch
jasonruesch / main.ts
Created October 17, 2021 16:53
Connect Firebase Functions to Nest application
import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { ExpressAdapter } from '@nestjs/platform-express';
import * as express from 'express';
import * as functions from 'firebase-functions';
import 'firebase-admin';
import { AppModule } from './app/app.module';
const API_PREFIX = '/api';
const server = express();
@jasonruesch
jasonruesch / project.json
Created October 17, 2021 16:43
Add generatePackageJson to build target's options
{
"root": "apps/api",
"sourceRoot": "apps/api/src",
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/node:build",
"outputs": [
"{options.outputPath}"
],
@jasonruesch
jasonruesch / Fork-This-Talk.html
Created October 24, 2017 17:23 — forked from ryanj/Fork-This-Talk.html
ATO2017 Lightning Talks - Revealjs presentation hacks with gist-reveal - http://bit.ly/ato-reveal
<section>
<h2><span class='fragment fade-right'>ryanj</span> <span class='fragment fade-up'>@</span> <span class='fragment fade-left'>red hat</span></h2>
<h1 class='fragment fade-up'>RevealJS Presentation Hacks</h1>
<h4 class='fragment fade-up'><a href="http://gist-reveal.it/57830ddbac95a9b3a6d464a03572cc74">http://gist-reveal.it/57830ddbac95a9b3a6d464a03572cc74</a></h4>
</section>
<section data-markdown>
## reveal.js
https://github.com/hakimel/reveal.js#revealjs--
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@jasonruesch
jasonruesch / Gruntfile.js
Last active August 29, 2015 13:57
Gruntfile.js with grunt-contrib-less and connect-modrewrite support
// Generated on 2014-03-12 using generator-angular 0.7.1
// Modified to not use imagemin, since there is a problem deploying to Windows Azure with it.
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'