Skip to content

Commit 9f227eb

Browse files
committed
Initial commit
0 parents  commit 9f227eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+23596
-0
lines changed

.devcontainer/Dockerfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/typescript-node/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Node.js version: 16, 14, 12
4+
ARG VARIANT="16-buster"
5+
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
6+
7+
# [Optional] Uncomment this section to install additional OS packages.
8+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9+
# && apt-get -y install --no-install-recommends <your-package-list-here>
10+
11+
# [Optional] Uncomment if you want to install an additional version of node using nvm
12+
# ARG EXTRA_NODE_VERSION=10
13+
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
14+
15+
# [Optional] Uncomment if you want to install more global node packages
16+
# RUN su node -c "npm install -g <your-package-list -here>"

.devcontainer/devcontainer.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/typescript-node
3+
{
4+
"name": "Gatsby Starter Dogmatism",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick a Node version: 12, 14, 16
8+
"args": {
9+
"VARIANT": "16"
10+
}
11+
},
12+
// Set *default* container specific settings.json values on container create.
13+
"settings": {},
14+
// Add the IDs of extensions you want installed when the container is created.
15+
"extensions": [
16+
"streetsidesoftware.code-spell-checker",
17+
"esbenp.prettier-vscode",
18+
"mikestead.dotenv",
19+
"eamodio.gitlens",
20+
"vscode-icons-team.vscode-icons",
21+
"mgmcdermott.vscode-language-babel",
22+
"dbaeumer.vscode-eslint",
23+
"jpoissonnier.vscode-styled-components",
24+
"graphql.vscode-graphql",
25+
"lokalise.i18n-ally",
26+
"eliostruyf.vscode-front-matter"
27+
],
28+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
29+
"forwardPorts": [8000],
30+
// Use 'postCreateCommand' to run commands after the container is created.
31+
// "postCreateCommand": "yarn install",
32+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
33+
// "remoteUser": "node"
34+
}

.env.development

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SITE_URL=http://localhost:8000

.env.example

Whitespace-only changes.

.gatsby-ts.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const { createOptions } = require("gatsby-ts");
2+
3+
module.exports = createOptions({
4+
type: "ts-node",
5+
});

.github/workflows/cd.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Continuous Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
jobs:
11+
build-and-deploy:
12+
name: Build and deploy to Github Pages
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v2
17+
- name: Use nodejs
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: '16.x'
21+
- name: Get yarn cache directory path
22+
id: yarn-cache-dir-path
23+
run: echo "::set-output name=dir::$(yarn cache dir)"
24+
- name: Activate dependency cache
25+
uses: actions/cache@v2
26+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
27+
with:
28+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
29+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-yarn-
32+
- name: Install dependencies
33+
run: yarn install --frozen-lockfile
34+
- name: Install plugin dependencies
35+
run: (cd plugins/gatsby-plugin-i18n-l10n && yarn install --frozen-lockfile )
36+
- name: Caching Gatsby
37+
id: gatsby-cache-build
38+
uses: actions/cache@v2
39+
with:
40+
path: |
41+
public
42+
.cache
43+
key: ${{ runner.os }}-gatsby-build-${{ github.run_id }}
44+
restore-keys: |
45+
${{ runner.os }}-gatsby-build-
46+
- name: Build website
47+
run: yarn build:with-prefix
48+
env:
49+
PATH_PREFIX: '/gatsby-starter-dogmatism'
50+
CI: true
51+
- name: Deploy to GitHub Pages
52+
uses: JamesIves/github-pages-deploy-action@3.7.1
53+
with:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
BRANCH: gh-pages
56+
FOLDER: public
57+
CLEAN: true

.github/workflows/ci.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Continuous Integration
2+
3+
on: pull_request
4+
5+
jobs:
6+
check:
7+
name: Run some checks
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v2
12+
- name: Use nodejs
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: '16.x'
16+
- name: Install dependencies
17+
run: yarn install --frozen-lockfile
18+
- name: Check types
19+
run: yarn check:types
20+
- name: Check formatting
21+
run: yarn check:format
22+
- name: Try to build
23+
run: yarn build

0 commit comments

Comments
 (0)