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 { DiggyDB, DiggyQuery } from "diggydb-nodejs" | |
const db = new DiggyDB({ | |
hostname: "example.com" | |
}) | |
interface Framework { | |
id: string | |
name: string | |
version: string |
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 { DiggyDB, DiggyQuery } from "diggydb-nodejs" | |
const db = new DiggyDB({ | |
hostname: "example.com", | |
accessKeyId: process.env.AWS_ACCESS_KEY_ID, | |
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, | |
}) | |
interface Framework { | |
id: string |
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
Show hidden characters
{ | |
"name": "Node.js (latest LTS)", | |
"dockerFile": "Dockerfile", | |
"settings": { | |
"terminal.integrated.shell.linux": "/bin/bash" | |
}, | |
"runArgs": ["--env-file", "devcontainer.env"], | |
"mounts": [ | |
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", | |
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume" |
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
"mounts": [ | |
"source=try-node-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume" | |
] |
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
"mounts": [ | |
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume" | |
] |
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
export const query = graphql` | |
{ | |
riders: contentfulPageOrder(page: {eq: "Riders"}) { | |
order { | |
... on ContentfulRider { | |
id | |
slug | |
fullName | |
} | |
} |
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
const data = useStaticQuery( | |
graphql` | |
query { | |
allContentfulRider(sort: { fields: order, order: ASC }) { | |
nodes { | |
id | |
slug | |
fullName | |
} | |
} |
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
version: 2.1 | |
orbs: | |
pulumi: pulumi/pulumi@2.0.0 | |
jobs: | |
build: | |
docker: | |
- image: 'circleci/node:10' | |
working_directory: ~/repo/ | |
steps: | |
- checkout |
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
version: 2.1 | |
orbs: | |
pulumi: pulumi/pulumi@2.0.0 | |
jobs: | |
build: | |
docker: | |
- image: 'circleci/node:10' | |
working_directory: ~/repo/ | |
steps: | |
- checkout |
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
const path = require('path') | |
const NodemonPlugin = require('nodemon-webpack-plugin') | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
filename: 'main.js', | |
path: path.resolve(__dirname, 'dist') | |
}, | |
target: 'node', |