Skip to content
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

Scaffolding for TypeScript CLI #198

Merged
merged 17 commits into from
May 20, 2022
3 changes: 2 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ jobs:
run: npm run lint

- name: Test
run: npm test
run: |
npm test
env:
XATA_DATABASE_URL: ${{ secrets.INTEGRATION_TEST_DATABASE_URL }}
XATA_API_KEY: ${{ secrets.INTEGRATION_TEST_API_KEY }}
Expand Down
1 change: 1 addition & 0 deletions cli/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
Empty file added cli/.eslintrc
Empty file.
9 changes: 9 additions & 0 deletions cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*-debug.log
*-error.log
/.nyc_output
/dist
/lib
/tmp
/yarn.lock
node_modules
oclif.manifest.json
1 change: 1 addition & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Xata CLI
6 changes: 6 additions & 0 deletions cli/bin/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node
import { Errors, flush, run } from '@oclif/core';

run(void 0, import.meta.url)
.then(flush)
.catch(Errors.handle);