-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
4,213 additions
and
4,080 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"path": "cz-conventional-changelog" | ||
"path": "@commitlint/cz-commitlint" | ||
} |
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.
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
# https://github.com/pnpm/pnpm/blob/main/.husky/commit-msg | ||
pnpm commitlint --edit --config=commitlint.config.cjs | ||
pnpm exec commitlint --edit $1 |
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,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged | ||
pnpm exec lint-staged |
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,4 +1,4 @@ | ||
{ | ||
"*.{js,ts}": "eslint --fix", | ||
"*.{js,jsc,ts,json,md}": "prettier --write" | ||
"!(*.ts)": "prettier --write --ignore-unknown", | ||
"*.ts": ["eslint --fix", "prettier --write"] | ||
} |
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 +1,3 @@ | ||
{} | ||
{ | ||
"singleQuote": true | ||
} |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 lonr | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,16 +1,24 @@ | ||
# tldr-ts | ||
|
||
> Yet another Node.js based command-line client for tldr. | ||
> More information: <https://tldr.sh>. | ||
- Installing: | ||
|
||
`npm i -g tldr-ts` | ||
> A tldr client with turbo speed. | ||
> Display simple help pages for command-line tools from the tldr-pages project. | ||
- Print the tldr page for a specific command: | ||
|
||
`tldr {{command}}` | ||
|
||
- Print the tldr page for tldr: | ||
- Print the tldr page for a specific subcommand: | ||
|
||
`tldr {{command}} {{subcommand}}` | ||
|
||
- Print the tldr page for a command in the given [L]anguage (if available, otherwise fall back to English): | ||
|
||
`tldr --language {{language_code}} {{command}}` | ||
|
||
- Print the tldr page for a command from a specific [p]latform: | ||
|
||
`tldr --platform {{android|common|freebsd|linux|osx|netbsd|openbsd|sunos|windows}} {{command}}` | ||
|
||
- [u]pdate the local cache of tldr pages: | ||
|
||
`tldr tldr` | ||
`tldr --update` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export default { extends: ['@commitlint/config-conventional'] }; |
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,11 @@ | ||
// @ts-check | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
eslintConfigPrettier, | ||
); |
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,7 +1,7 @@ | ||
{ | ||
"name": "tldr-ts", | ||
"version": "0.0.0-development", | ||
"description": "Yet another Node.js based command-line client for tldr", | ||
"description": "A tldr client with turbo speed", | ||
"keywords": [ | ||
"tldr" | ||
], | ||
|
@@ -12,56 +12,44 @@ | |
"license": "MIT", | ||
"author": "lonr", | ||
"type": "module", | ||
"imports": { | ||
"#package.json": "./package.json" | ||
}, | ||
"bin": { | ||
"tldr": "bin/tldr.js" | ||
"tldr": "dist/cli.js" | ||
}, | ||
"files": [ | ||
"bin", | ||
"dist/*.js" | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "rimraf dist && rollup --config rollup.config.ts --configPlugin typescript", | ||
"build": "tsup src/cli.ts --format=esm --clean --minify", | ||
"check-style": "prettier --check .", | ||
"check-ts": "tsc -noEmit", | ||
"commit": "cz", | ||
"lint": "eslint .", | ||
"prepare": "husky install", | ||
"prepare": "husky", | ||
"semantic-release": "semantic-release", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"watch": "rimraf dist && swc src -d dist -w" | ||
"watch": "tsup src/cli.ts --watch --format=esm --clean --minify" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.8.0", | ||
"@commitlint/config-conventional": "^17.8.0", | ||
"@rollup/plugin-commonjs": "^25.0.7", | ||
"@rollup/plugin-json": "^6.0.1", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@rollup/plugin-typescript": "^11.1.5", | ||
"@swc/cli": "^0.1.62", | ||
"@swc/core": "^1.3.93", | ||
"@types/fs-extra": "^11.0.2", | ||
"@types/minimist": "^1.2.4", | ||
"@types/node": "^20.8.7", | ||
"@types/yargs": "^17.0.28", | ||
"@typescript-eslint/eslint-plugin": "^6.8.0", | ||
"@typescript-eslint/parser": "^6.8.0", | ||
"chokidar": "^3.5.3", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"@commitlint/cli": "^19.5.0", | ||
"@commitlint/config-conventional": "^19.5.0", | ||
"@commitlint/cz-commitlint": "^19.5.0", | ||
"@eslint/js": "^9.14.0", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/minimist": "^1.2.5", | ||
"@types/node": "^22.9.0", | ||
"commitizen": "^4.3.1", | ||
"env-paths": "^3.0.0", | ||
"eslint": "^8.51.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^15.0.1", | ||
"eslint": "^9.14.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"husky": "^9.1.6", | ||
"inquirer": "9", | ||
"lint-staged": "^15.2.10", | ||
"minimist": "^1.2.8", | ||
"picocolors": "^1.0.0", | ||
"prettier": "3.0.3", | ||
"rimraf": "^5.0.5", | ||
"rollup": "^4.1.4", | ||
"semantic-release": "^22.0.5", | ||
"typescript": "^5.2.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
"picocolors": "^1.1.1", | ||
"prettier": "3.3.3", | ||
"semantic-release": "^24.2.0", | ||
"tsup": "^8.3.5", | ||
"typescript": "^5.2.2", | ||
"typescript-eslint": "^8.13.0" | ||
} | ||
} |
Oops, something went wrong.