Skip to content

swapi typescript support #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: tsclientlib-and-language-option
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/swapi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ node_modules: package.json
swapi-loaders.js:
node ../../lib/index.js --config swapi.dataloader-config.yaml --output swapi-loaders.js

.PHONY: swapi-loaders-ts.ts
swapi-loaders-ts.ts:
node ../../lib/index.js --config swapi.dataloader-config-ts.yaml --output swapi-loaders-ts.ts

flow-typed: node_modules
yarn flow-typed install

.PHONY: build
build: node_modules
yarn babel *.js -d build
yarn build
8 changes: 6 additions & 2 deletions examples/swapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"@babel/node": "^7.7.0",
"@babel/preset-flow": "^7.0.0",
"flow-bin": "0.123.0",
"flow-typed": "^2.6.2"
"flow-typed": "^2.6.2",
"typescript": "^5.4.3"
},
"dependencies": {
"dataloader": "^2.0.0",
Expand All @@ -13,5 +14,8 @@
},
"engines": {
"node": ">=10"
},
"scripts": {
"build": "tsc"
}
}
}
9 changes: 9 additions & 0 deletions examples/swapi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"outDir": "./build",
"rootDir": "./",
"strict": true
}
}
5 changes: 5 additions & 0 deletions examples/swapi/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2190,6 +2190,11 @@ typescript@^3.4:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d"
integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==

typescript@^5.4.3:
version "5.4.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.3.tgz#5c6fedd4c87bee01cd7a528a30145521f8e0feff"
integrity sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==

union-value@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847"
Expand Down