Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nckhell committed Dec 23, 2024
0 parents commit 09836e6
Show file tree
Hide file tree
Showing 650 changed files with 144,696 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HEALTHIE_ENVIRONMENT=https://staging-api.gethealthie.com/graphql
HEALTHIE_API_KEY=
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
jest.config.cjs
src/genql/generated
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["love", "prettier"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["tsconfig.json"]
},
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/consistent-type-definitions": "off"
}
}
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
38 changes: 38 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and test

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'

jobs:
build-and-test:
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Enable Corepack before setting up Node
run: corepack enable

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: yarn

- name: Compile Typescript
run: yarn build

- name: Run tests
run: yarn test
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Compile and publish package

on:
push:
branches: ['main', 'release/*']

jobs:
deploy:
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Enable Corepack before setting up Node
run: corepack enable

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: yarn

- name: Compile Typescript
run: yarn build

- name: Setup .yarnrc.yml
run: |
yarn config set npmAlwaysAuth true
yarn config set npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Publish to NPM Registry
run: |
pkg_version=$(cat package.json | jq -r '.version')
branch=${GITHUB_REF##*/}
if [[ $branch != "main" ]]; then
yarn version "$pkg_version-beta$GITHUB_RUN_NUMBER"
yarn npm publish --tag beta --access public
else
yarn version "$pkg_version"
yarn npm publish --access public
fi
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
node_modules/
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Yarn integrity file
.yarn-integrity

# Swap the comments on the following lines if you don't wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
!.yarn/cache
#.pnp.*

# TypeScript compiled files
*.tsbuildinfo
*.js
*.d.ts
*.js.map
*.jsx
*.jsx.map

# TypeScript cache
*.tscache/

# TypeScript transpiled directories (if any)
dist/
build/

# Miscellaneous
.DS_Store
.env
*.swp

# JetBrains IDEs
.idea

# Zed editor
.zed
Loading

0 comments on commit 09836e6

Please sign in to comment.