Skip to content

Commit 1a934f3

Browse files
Initial commit
0 parents  commit 1a934f3

23 files changed

+16070
-0
lines changed

.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "apollographql/typescript-repo-template" }
6+
],
7+
"commit": false,
8+
"access": "public",
9+
"baseBranch": "main"
10+
}

.circleci/config.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
version: 2.1
2+
3+
orbs:
4+
node: circleci/[email protected]
5+
6+
commands:
7+
install-volta:
8+
description: Install volta to manage Node/npm versions
9+
steps:
10+
- run:
11+
name: Install volta
12+
# Teach the volta installer to update Circle's special env
13+
# file instead of the default.
14+
command: |
15+
curl https://get.volta.sh | PROFILE="$BASH_ENV" bash
16+
17+
setup-node:
18+
parameters:
19+
node-version:
20+
type: string
21+
default: ''
22+
steps:
23+
- install-volta
24+
- checkout
25+
- when:
26+
condition: << parameters.node-version >>
27+
steps:
28+
- run: volta pin node@<< parameters.node-version >>
29+
- run: node --version
30+
- run: npm --version
31+
- node/install-packages
32+
33+
jobs:
34+
NodeJS:
35+
parameters:
36+
node-version:
37+
type: string
38+
docker:
39+
- image: cimg/base:stable
40+
steps:
41+
- setup-node:
42+
node-version: <<parameters.node-version>>
43+
- run: npm run test:ci
44+
- store_test_results:
45+
path: junit.xml
46+
47+
Prettier:
48+
docker:
49+
- image: cimg/base:stable
50+
steps:
51+
- setup-node
52+
- run: npm run prettier-check
53+
54+
Spell Check:
55+
docker:
56+
- image: cimg/base:stable
57+
steps:
58+
- setup-node
59+
- run: npm run spell-check
60+
61+
workflows:
62+
version: 2
63+
Build:
64+
jobs:
65+
- NodeJS:
66+
name: NodeJS << matrix.node-version >>
67+
matrix:
68+
parameters:
69+
node-version:
70+
- "14"
71+
- "16"
72+
- "18"
73+
- Prettier
74+
- Spell Check

.codesandbox/ci.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sandboxes": [],
3+
"node": "16",
4+
"installCommand": "install-with-npm-8.5"
5+
}

.envrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export VOLTA_HOME="$PWD/.volta"
2+
PATH_add "$VOLTA_HOME/bin"
3+
4+
if ! [ -f "$VOLTA_HOME/bin/volta" ]; then
5+
echo "Volta not found in $VOLTA_HOME/bin/volta, installing..."
6+
curl https://get.volta.sh/ | bash
7+
fi
8+
9+
# Allow you to run jest and other things in node_modules/.bin without npx.
10+
layout node

.github/workflows/release-pr.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v3
15+
with:
16+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17+
fetch-depth: 0
18+
19+
- name: Setup Node.js 16.x
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 16.x
23+
24+
- name: Install Dependencies
25+
run: npm i
26+
27+
- name: Create Release Pull Request / NPM Publish
28+
uses: changesets/action@v1
29+
with:
30+
publish: npm run publish-changeset
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Ignore the compiled output.
2+
dist/
3+
4+
# TypeScript incremental compilation cache
5+
*.tsbuildinfo
6+
7+
# Logs
8+
logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Coverage (from Jest)
15+
coverage/
16+
17+
# JUnit Reports (used mainly in CircleCI)
18+
reports/
19+
junit.xml
20+
21+
# Node modules
22+
node_modules/
23+
24+
# Mac OS
25+
.DS_Store
26+
27+
# Intellij Configuration Files
28+
.idea/
29+
30+
# Volta binaries (when using direnv/.envrc)
31+
.volta

.npmignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*
2+
!src/**/*
3+
src/**/__tests__/**
4+
!dist/**/*
5+
dist/**/__tests__/**
6+
!package.json
7+
!README.md
8+
!tsconfig.base.json
9+
!tsconfig.json
10+
!tsconfig.build.json

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.json
2+
*.json5
3+
*.yml
4+
*.md
5+
6+
dist/

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": true
4+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022- Apollo Graph, Inc. (Formerly Meteor Development Group, Inc.)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)