mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 04:11:11 +00:00
parent
431b34e938
commit
68f0b8152f
4 changed files with 447 additions and 327 deletions
|
@ -1,16 +1,16 @@
|
|||
pipeline:
|
||||
yarn:
|
||||
image: node:17-alpine
|
||||
image: node:alpine
|
||||
commands:
|
||||
- yarn
|
||||
|
||||
yarn_lint:
|
||||
image: node:17-alpine
|
||||
image: node:alpine
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
npm_publish:
|
||||
image: node:17-alpine
|
||||
image: node:alpine
|
||||
commands:
|
||||
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
|
||||
- echo "email = tyhou13@gmx.com" >> ~/.npmrc
|
||||
|
|
27
package.json
27
package.json
|
@ -12,7 +12,7 @@
|
|||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"docs": "typedoc src/index.ts --sourcefile-url-prefix 'https://github.com/LemmyNet/lemmy-js-client/tree/main/src/'",
|
||||
"docs": "typedoc src/index.ts",
|
||||
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
|
||||
"prepare": "yarn run build && husky install"
|
||||
},
|
||||
|
@ -30,21 +30,20 @@
|
|||
"form-data": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.6.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
||||
"@typescript-eslint/parser": "^5.31.0",
|
||||
"eslint": "^8.20.0",
|
||||
"@types/node": "^20.1.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
||||
"@typescript-eslint/parser": "^5.59.5",
|
||||
"eslint": "^8.40.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"husky": "^8.0.1",
|
||||
"lint-staged": "^13.0.3",
|
||||
"prettier": "^2.7.1",
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^13.2.2",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier-plugin-import-sort": "^0.0.7",
|
||||
"prettier-plugin-organize-imports": "^3.0.0",
|
||||
"prettier-plugin-packagejson": "^2.2.18",
|
||||
"sortpack": "^2.3.0",
|
||||
"typedoc": "^0.21.6",
|
||||
"typedoc-plugin-sourcefile-url": "^1.0.6",
|
||||
"typescript": "^4.7.4"
|
||||
"prettier-plugin-organize-imports": "^3.2.2",
|
||||
"prettier-plugin-packagejson": "^2.4.3",
|
||||
"sortpack": "^2.3.4",
|
||||
"typedoc": "^0.24.7",
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"importSort": {
|
||||
".js, .jsx, .ts, .tsx": {
|
||||
|
|
|
@ -7,9 +7,9 @@ import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
|||
import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
||||
import { BanFromCommunity } from "./types/BanFromCommunity";
|
||||
import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
||||
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
||||
import { BanPerson } from "./types/BanPerson";
|
||||
import { BanPersonResponse } from "./types/BanPersonResponse";
|
||||
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
||||
import { BlockCommunity } from "./types/BlockCommunity";
|
||||
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
||||
import { BlockPerson } from "./types/BlockPerson";
|
||||
|
@ -95,7 +95,6 @@ import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
|||
import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
|
||||
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
||||
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
||||
import { UploadImage, UploadImageResponse, VERSION } from "./types/others";
|
||||
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
||||
import { PasswordReset } from "./types/PasswordReset";
|
||||
import { PasswordResetResponse } from "./types/PasswordResetResponse";
|
||||
|
@ -129,6 +128,7 @@ import { SiteResponse } from "./types/SiteResponse";
|
|||
import { TransferCommunity } from "./types/TransferCommunity";
|
||||
import { VerifyEmail } from "./types/VerifyEmail";
|
||||
import { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
||||
import { UploadImage, UploadImageResponse, VERSION } from "./types/others";
|
||||
|
||||
enum HttpType {
|
||||
Get = "GET",
|
||||
|
|
Loading…
Reference in a new issue