-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Convert to TypeScript, add ESLint, drop Node.js 12 support and …
…deprecated CLI options. (#458) * chore: add .npmrc * feat: configure TypeScript and ESLint * feat!: rewrite modules/files using TypeScript * chore: export types for the modules * feat: change minimum node version to 14.5.0 BREAKING CHANGE: Switched to using ES2020 syntax and minimum Node engine to 14.5.0. * feat!: removes the deprecated cli options BREAKING CHANGE: Removes the deprecated options/arguments for starting the server. They are: - --port (-p) - --host (-h) - --unix-socket (-s) * test!: rewrite test using TypeScript & node-tap * build: update ci script * chore: update ESLint config * ci: run the test script in the right directory * ci: add test script to root package.json * doc: update usage programmatically
- Loading branch information
Showing
48 changed files
with
4,582 additions
and
3,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ yarn-error.log | |
# coverage | ||
coverage | ||
.nyc_output | ||
|
||
# build | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
save-exact = true | ||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
{ | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
"packages/*", | ||
"test" | ||
], | ||
"scripts": { | ||
"test": "NODE_ENV=test nyc --check-coverage --statements 100 --branches 100 --functions 100 --lines 100 ava", | ||
"prepublish": "lerna run prepublish", | ||
"publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre", | ||
"publish-stable": "lerna version --force-publish" | ||
"publish-stable": "lerna version --force-publish", | ||
"test": "cd test && yarn run test" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"ava": "0.23.0", | ||
"lerna": "^3.4.0", | ||
"node-fetch": "2.6.0", | ||
"nyc": "11.3.0", | ||
"resumer": "0.0.0", | ||
"rewire": "3.0.2", | ||
"sinon": "4.4.3", | ||
"test-listen": "1.0.2", | ||
"then-sleep": "1.0.1" | ||
"lerna": "^3.4.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
require.resolve('@vercel/style-guide/eslint/node'), | ||
require.resolve('@vercel/style-guide/eslint/typescript'), | ||
], | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: ['./tsconfig.json'], | ||
}, | ||
ignorePatterns: ['dist/**', 'types/**'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.