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

Initial Implementation #1

Merged
merged 11 commits into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// eslint-disable-next-line unicorn/prefer-node-protocol
const { resolve } = require('path');

const project = resolve(__dirname, 'test.tsconfig.json');

module.exports = {
root: true,
extends: [
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/typescript'),
],
parserOptions: {
project,
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
};
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pnpm-lock.yaml
.nyc_output
dist
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# socket
A Node.js Implementation of the Cloudflare Socket API

A Node.js Implementation of the Cloudflare Socket API
37 changes: 37 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "socket",
"version": "0.0.1",
"description": "A Node.js Implementation of the Cloudflare Socket API",
"keywords": [],
"homepage": "https://github.com/vercel/socket#readme",
"bugs": {
"url": "https://github.com/vercel/socket/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vercel/socket.git"
},
"license": "MIT",
"author": "Ethan Arrowood <[email protected]>",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"format": "prettier .",
"lint": "eslint .",
"test": "tap --ts test"
},
"prettier": "@vercel/style-guide/prettier",
"devDependencies": {
"@types/node": "^20.1.7",
"@types/tap": "^15.0.8",
"@vercel/style-guide": "^4.0.2",
"eslint": "^8.40.0",
"prettier": "^2.8.8",
"tap": "^16.3.4",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
"engines": {
"node": ">=18"
}
}
Loading