diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18944dc --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.log +.env +node_modules +dist \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..fad7cb6 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,5 @@ +{ + "printWidth": 120, + "semi": true, + "bracketSpacing": true +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cac0e10 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": true +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..8251584 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "node-partial-stream", + "version": "0.1.0", + "main": "dist/index.js", + "repository": "ssh://git@github.com-sukantgujar/SukantGujar/node-partial-stream", + "author": "sukantgujar ", + "license": "MIT", + "scripts": { + "build-watch": "npx tsc -w" + }, + "devDependencies": { + "@types/node": "^11.10.5", + "typescript": "^3.3.3333" + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..d9a8b89 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,2 @@ +import { Request } from "node"; +export function handler(req: Request) {} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1616537 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "esModuleInterop": true, + "target": "es6", + "noImplicitAny": true, + "moduleResolution": "node", + "sourceMap": true, + "outDir": "dist", + "baseUrl": ".", + "paths": { + "*": [ + "node_modules/*", + "src/types/*" + ] + } + }, + "include": [ + "src/**/*" + ] +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..a6e1de2 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,13 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@types/node@^11.10.5": + version "11.10.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-11.10.5.tgz#fbaca34086bdc118011e1f05c47688d432f2d571" + integrity sha512-DuIRlQbX4K+d5I+GMnv+UfnGh+ist0RdlvOp+JZ7ePJ6KQONCFQv/gKYSU1ZzbVdFSUCKZOltjmpFAGGv5MdYA== + +typescript@^3.3.3333: + version "3.3.3333" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3333.tgz#171b2c5af66c59e9431199117a3bcadc66fdcfd6" + integrity sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==