chore: basic structure of files to rewrite in TS

This commit is contained in:
divlo
2020-12-28 16:49:31 +01:00
parent d5e0dcc69d
commit 748c61ed07
18 changed files with 109 additions and 18 deletions

View File

@@ -3,17 +3,28 @@
"version": "0.0.1",
"description": "Authenticate socket.io incoming connections with JWTs.",
"license": "MIT",
"main": "lib/index.js",
"types": "./types/index.d.ts",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
"build/**/*"
],
"engines": {
"node": ">=12"
},
"keywords": [
"socket",
"socket.io",
"jwt"
],
"author": "Divlo <contact@divlo.fr>",
"repository": {
"type": "git",
"url": "git+https://github.com/Thream/socketio-jwt"
},
"bugs": {
"url": "https://github.com/Thream/socketio-jwt/issues"
},
"homepage": "https://github.com/Thream/socketio-jwt#readme",
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
@@ -43,10 +54,33 @@
}
}
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"rootDir": "./src",
"collectCoverage": true,
"coverageDirectory": "../coverage/"
},
"ts-standard": {
"files": [
"./src/**/*.ts"
],
"envs": [
"node",
"jest"
]
},
"scripts": {
"test": "mocha",
"lint": "exit 0",
"build": "exit 0"
"build": "rimraf ./build && tsc",
"lint": "ts-standard | snazzy",
"format": "ts-standard --fix | snazzy",
"release": "release-it",
"test": "jest",
"test:watchAll": "jest --watchAll",
"test:clearCache": "jest --clearCache"
},
"peerDependencies": {
"socket.io": "*"
},
"dependencies": {
"jsonwebtoken": "8.5.1",
@@ -56,17 +90,19 @@
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"@release-it/conventional-changelog": "2.0.0",
"@types/jest": "26.0.19",
"@types/node": "14.14.16",
"@types/socket.io": "2.1.12",
"express": "4.17.1",
"husky": "4.3.6",
"mocha": "3.2.0",
"q": "1.5.1",
"jest": "26.6.3",
"release-it": "14.2.2",
"request": "2.88.2",
"serve-static": "1.14.1",
"server-destroy": "1.0.1",
"should": "13.2.3",
"socket.io": "2.3.0",
"socket.io-client": "2.3.0"
"rimraf": "3.0.2",
"snazzy": "9.0.0",
"socket.io": "3.0.4",
"socket.io-client": "3.0.4",
"ts-jest": "26.4.4",
"ts-standard": "10.0.0",
"typescript": "4.1.3"
}
}