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

Update Users Service to use Typescript #7

Merged
merged 19 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 16 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
16 changes: 16 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "standard-with-typescript",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-throw-literal": "off",
"no-useless-catch": "off"
}
}
37 changes: 18 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
name: Testing

on:
push:
branches:
- main
pull_request:
branches:
- main
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Testing
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
always-auth: false
check-latest: true

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Run Jest tests
run: npm test

- name: Lint with ESLint
run: npm run lint
- name: Lint with ESLint
run: npm run lint
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/out-tsc
dist/

# IDE - VSCode
.vscode/

# Runtime data
pids
*.pid
Expand Down Expand Up @@ -89,3 +92,10 @@ lerna-debug.log
# System Files
.DS_Store
Thumbs.db

# Ignore test-related files
/coverage.data
/coverage/

# Build files
/dist
37 changes: 0 additions & 37 deletions .vscode/launch.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Thank you for your interest in Magistrala and the desire to contribute!
3. Make your changes compatible to our workflow.

## Getting Started
The node module can be used from `index.js` and examples are located in `examples` directory. To use on the browser use `bundle.js` and examples are in `example/client`.
The node module can be used from `sdk.ts` and examples are located in `examples` directory. To use on the browser use `bundle.js` and examples are in `example/client`.

## Community

Expand Down
Loading
Loading