Skip to content

Commit d1404de

Browse files
authored
chore: improve DX (#25)
* chore: vscode prompt to use workspace typescript * fix: gitignore more files * feat: use typescript verbatimModuleSyntax * chore: eslint ignore build output * chore: prettier formatting * chore: tools ignore docs folder * fix: typings should to be types for npm package * chore: add changeset
1 parent 9ee2d88 commit d1404de

Some content is hidden

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

45 files changed

+185
-147
lines changed

.DS_Store

-6 KB
Binary file not shown.

.changeset/unlucky-spoons-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@team-plain/typescript-sdk': patch
3+
---
4+
5+
Conform [including TypeScript declarations for the npm package](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package), `typings` to `types`

.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# Generated:
2-
src/graphql/types.ts
2+
src/graphql/types.ts
3+
dist
4+
docs

.eslintrc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"parserOptions": {
4+
"parserOptions": {
55
"project": "./tsconfig.json"
66
},
7-
"plugins": [
8-
"@typescript-eslint"
9-
],
7+
"plugins": ["@typescript-eslint"],
108
"extends": [
119
"eslint:recommended",
1210
"plugin:@typescript-eslint/recommended",
@@ -25,4 +23,4 @@
2523
}
2624
}
2725
]
28-
}
26+
}

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
uses: batista/lint-filenames@v1.0.1
3636
with:
3737
path: './src/graphql/fragments'
38-
pattern: '[a-z]+((\\d)|([A-Z0-9][a-z0-9]+))*([A-Z])?Parts.gql$'
38+
pattern: '[a-z]+((\\d)|([A-Z0-9][a-z0-9]+))*([A-Z])?Parts.gql$'

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/setup-node@v2
1616
with:
17-
node-version: "16"
17+
node-version: '16'
1818
- uses: actions/checkout@v2
1919
- uses: tibdex/github-app-token@v1
2020
id: generate-token

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Install dependencies
2121
run: npm ci
2222
- name: Test
23-
run: npm run test
23+
run: npm run test

.github/workflows/typecheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Install dependencies
2121
run: npm i
2222
- name: Typecheck
23-
run: npm run typecheck
23+
run: npm run typecheck

.gitignore

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1-
node_modules
1+
# build output
22
dist
3+
4+
# dependencies
5+
node_modules
6+
yarn.lock
7+
pnpm-lock.yaml
8+
9+
# logs
10+
*.log
11+
12+
# macOS-specific files
13+
.DS_Store
14+
15+
# editors
316
.vscode
17+
.devcontainer
418

519
# These are generated and not commited
6-
docs
20+
docs
21+
22+
# cache
23+
.eslintcache

.prettierignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Directories
2+
.changeset
3+
.vscode
4+
dist
5+
docs
6+
7+
# Files
8+
src/graphql/types.ts
9+
CHANGELOG.md
10+
package-lock.json
11+
package.json

0 commit comments

Comments
 (0)