Skip to content

Commit

Permalink
Improve first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Apr 29, 2024
1 parent b585e7a commit a79ce2a
Show file tree
Hide file tree
Showing 14 changed files with 128 additions and 70 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
time: '05:00'
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
time: '05:00'
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
name: Dependabot
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Fetch metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-merge
run: gh pr merge --auto --merge $PR_URL
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.github/
/.vscode/
/coverage/
/docs/
Expand Down
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sonarlint.connectedMode.project": {
"connectionId": "olivierzal",
"projectKey": "OlivierZal_melcloud-api"
}
}
112 changes: 53 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
{
"name": "melcloud",
"name": "melcloud-api",
"version": "1.0.0",
"description": "MELCloud API package for NodeJS",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/OlivierZal/melcloud-api.git"
},
"keywords": [
"melcloud",
"api"
],
"author": "Olivier Zalmanski",
"license": "ISC",
"bugs": {
"url": "https://github.com/OlivierZal/melcloud-api/issues"
},
"homepage": "https://github.com/OlivierZal/melcloud-api#readme",
"prettier": {
"experimentalTernaries": true,
"semi": false,
Expand All @@ -25,10 +40,10 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"globals": "^15.0.0",
"globals": "^15.1.0",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1"
"typescript-eslint": "^7.8.0"
},
"dependencies": {
"axios": "^1.6.8",
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions lib/APICallErrorData.ts → src/lib/APICallErrorData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type APICallContextData from './APICallContextData'
import APICallRequestData from './APICallRequestData'
import APICallResponseData from './APICallResponseData'
import {
type APICallContextData,
APICallRequestData,
APICallResponseData,
} from '..'
import type { AxiosError } from 'axios'

interface APICallContextDataWithErrorMessage extends APICallContextData {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import APICallContextData from './APICallContextData'
import { APICallContextData } from '..'
import type { InternalAxiosRequestConfig } from 'axios'

export default class APICallRequestData extends APICallContextData {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AxiosResponse, InternalAxiosRequestConfig } from 'axios'
import APICallContextData from './APICallContextData'
import { APICallContextData } from '..'

export default class APICallResponseData extends APICallContextData {
public readonly headers?: AxiosResponse['headers']
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"lib": ["ESNext"],
"module": "node16",
"module": "NodeNext",
"noImplicitOverride": true,
"outDir": "dist",
"rootDir": "src",
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2022"
"target": "ESNext"
}
}

0 comments on commit a79ce2a

Please sign in to comment.