Skip to content

Commit

Permalink
Merge branch 'main' into feat-tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz authored Oct 23, 2022
2 parents 2fcfc31 + cb23c67 commit a083b85
Show file tree
Hide file tree
Showing 45 changed files with 1,776 additions and 1,629 deletions.
4 changes: 3 additions & 1 deletion .github/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributions are welcome and will be fully credited!

We accept contributions via Pull Requests on [Github](https://github.com/posva-sponsors/vue-termui).
We accept contributions via Pull Requests on [Github](https://github.com/vue-terminal/vue-termui).

## Pull Requests

Expand All @@ -29,6 +29,8 @@ Lay out the reasoning behind it and propose an API for it. Ideally, you should h

## Project Guidelines

After pulling the project code and installing deps with `pnpm i`. run `pnpm run stub` at the root of the project. You can `cd packages/playground` and run `pnpm run dev` to test the playground.

This project uses pnpm workspaces and contains different packages:

### packages/core
Expand Down
2 changes: 1 addition & 1 deletion .github/funding.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: [posva]
github: [posva, webfansplz]
custom: https://www.paypal.me/posva
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ jobs:
- name: Install
run: pnpm i

- name: Stub packages
run: pnpm run stub

- name: Test
run: pnpm run test

Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"editor.formatOnSave": true,
"prettier.enable": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<p align="center">
<a href="https://npmjs.com/package/vue-termui"><img src="https://badgen.net/npm/v/vue-termui" alt="npm package"></a>
<a href="https://github.com/posva-sponsors/vue-termui/actions/workflows/test.yml?query=branch%3Amain"><img src="https://github.com/posva-sponsors/vue-termui/actions/workflows/test.yml/badge.svg" alt="build status"></a>
<a href="https://github.com/vue-terminal/vue-termui/actions/workflows/test.yml?query=branch%3Amain"><img src="https://github.com/vue-terminal/vue-termui/actions/workflows/test.yml/badge.svg" alt="build status"></a>
<a href="https://codecov.io/github/vue-terminal/vue-termui"><img src="https://badgen.net/codecov/c/github/vue-terminal/vue-termui" alt="code coverage"></a>
</p>

Expand Down
8 changes: 8 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--version" # prevent Netlify npm install

[build]
command = "npx pnpm@7 i --store=node_modules/.pnpm-store && npx pnpm@7 run -w docs:build"
ignore = "./scripts/docs-check.sh"
publish = "packages/docs/.vitepress/dist"
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "root",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@7.9.5",
"packageManager": "pnpm@7.12.2",
"repository": {
"url": "https://github.com/posva-sponsors/vue-termui.git",
"url": "https://github.com/vue-terminal/vue-termui.git",
"type": "git"
},
"scripts": {
"release": "node scripts/release.mjs",
"dev": "pnpm run -r --filter './packages/{core,vite-plugin-vue-termui,cli}' dev",
"stub": "pnpm run -r --filter './packages/{core,vite-plugin-vue-termui,cli}' stub",
"build": "pnpm run -r --filter './packages/{core,vite-plugin-vue-termui,cli}' build",
"play:dev": "pnpm run --filter './packages/playground' dev",
"lint": "prettier --check packages README.md",
Expand All @@ -23,28 +23,29 @@
"node": ">=16.0.0"
},
"devDependencies": {
"@types/node": "^16.11.29",
"@vitejs/plugin-vue": "^3.0.3",
"@vue/compiler-sfc": "^3.2.33",
"@vue/runtime-core": "^3.2.33",
"@types/node": "^18.11.3",
"@vitejs/plugin-vue": "^3.1.2",
"@vitest/coverage-c8": "^0.24.3",
"@vue/compiler-sfc": "^3.2.41",
"@vue/runtime-core": "^3.2.41",
"c8": "^7.11.2",
"chalk": "^5.0.1",
"chalk": "^5.1.2",
"conventional-changelog-cli": "^2.2.2",
"enquirer": "^2.3.6",
"execa": "^6.1.0",
"globby": "^13.1.1",
"minimist": "^1.2.6",
"minimist": "^1.2.7",
"p-series": "^3.0.0",
"prettier": "^2.6.2",
"semver": "^7.3.7",
"tsup": "^5.12.6",
"typescript": "^4.6.3",
"semver": "^7.3.8",
"tsup": "^6.3.0",
"typescript": "^4.8.4",
"unbuild": "^0.9.4",
"unplugin-auto-import": "^0.11.2",
"unplugin-vue-components": "^0.22.4",
"vite": "^3.0.9",
"vitest": "^0.10.0",
"vue": "^3.2.33",
"vue-tsc": "^0.34.10",
"unbuild": "^0.8.9"
"unplugin-vue-components": "^0.22.8",
"vite": "^3.1.8",
"vitest": "^0.24.3",
"vue": "^3.2.41",
"vue-tsc": "^1.0.8"
}
}
78 changes: 66 additions & 12 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,84 @@
## [0.0.14](https://github.com/posva-sponsors/vue-termui/compare/@vue-termui/[email protected].13...@vue-termui/[email protected].14) (2022-03-21)
## [0.0.16](https://github.com/vue-terminal/vue-termui/compare/@vue-termui/[email protected].14...@vue-termui/[email protected].16) (2022-10-21)

### Bug Fixes

- exit app when done ([a1461db](https://github.com/posva-sponsors/vue-termui/commit/a1461dbcfa6a2906e78cd5fed1bbdcc9c77d16f2))
- ci ([#12](https://github.com/vue-terminal/vue-termui/issues/12)) ([3c1d009](https://github.com/vue-terminal/vue-termui/commit/3c1d009a929cac0c786b0e31fd103824971489d1))
- clear screen when swapScreens is true ([5ef1f9e](https://github.com/vue-terminal/vue-termui/commit/5ef1f9eebced1b1bbda919639bec0d451fc96aa3))
- **focus:** correct traversal order ([5ce6381](https://github.com/vue-terminal/vue-termui/commit/5ce6381b1eb773685c187456d1cdcc44f281910e))

### Code Refactoring

- rewrite useStdout() ([7cfba52](https://github.com/vue-terminal/vue-termui/commit/7cfba5296a7728e2a5920ed85a41504c14f9c14c))

### Features

- allow passing auto import options ([7ab9a00](https://github.com/vue-terminal/vue-termui/commit/7ab9a001a61156264a480014ab8ccd734988b3b9))
- allow swapping screens for fullscreen apps ([71e0cdc](https://github.com/vue-terminal/vue-termui/commit/71e0cdcc161a7c5531e36da9b6441d2e26bff895))
- **box:** add basic title ([e5b488d](https://github.com/vue-terminal/vue-termui/commit/e5b488d6e7e18853e4ff5f2e9fa96742c87fcfd3))
- improve debug log ([98a4e50](https://github.com/vue-terminal/vue-termui/commit/98a4e50dc7ed1d24f1537cb44dc582cb5e07b651))
- useTitle ([a8b14ce](https://github.com/vue-terminal/vue-termui/commit/a8b14ce0c8b7aa3e31f1f963a650d672de261ef1))

### BREAKING CHANGES

- now it returns an object with `stdout` and a `write`
method. `stdout` is just the stdout being used by the app while `write`
lets you write to the output without messing up with the current output.
Useful for debugging.

## [0.0.15](https://github.com/vue-terminal/vue-termui/compare/@vue-termui/[email protected]...@vue-termui/[email protected]) (2022-10-21)

### Bug Fixes

- ci ([#12](https://github.com/vue-terminal/vue-termui/issues/12)) ([3c1d009](https://github.com/vue-terminal/vue-termui/commit/3c1d009a929cac0c786b0e31fd103824971489d1))
- clear screen when swapScreens is true ([5ef1f9e](https://github.com/vue-terminal/vue-termui/commit/5ef1f9eebced1b1bbda919639bec0d451fc96aa3))
- **focus:** correct traversal order ([5ce6381](https://github.com/vue-terminal/vue-termui/commit/5ce6381b1eb773685c187456d1cdcc44f281910e))

### Code Refactoring

- rewrite useStdout() ([7cfba52](https://github.com/vue-terminal/vue-termui/commit/7cfba5296a7728e2a5920ed85a41504c14f9c14c))

### Features

- allow passing auto import options ([7ab9a00](https://github.com/vue-terminal/vue-termui/commit/7ab9a001a61156264a480014ab8ccd734988b3b9))
- allow swapping screens for fullscreen apps ([71e0cdc](https://github.com/vue-terminal/vue-termui/commit/71e0cdcc161a7c5531e36da9b6441d2e26bff895))
- **box:** add basic title ([e5b488d](https://github.com/vue-terminal/vue-termui/commit/e5b488d6e7e18853e4ff5f2e9fa96742c87fcfd3))
- improve debug log ([98a4e50](https://github.com/vue-terminal/vue-termui/commit/98a4e50dc7ed1d24f1537cb44dc582cb5e07b651))
- useTitle ([a8b14ce](https://github.com/vue-terminal/vue-termui/commit/a8b14ce0c8b7aa3e31f1f963a650d672de261ef1))

### BREAKING CHANGES

- now it returns an object with `stdout` and a `write`
method. `stdout` is just the stdout being used by the app while `write`
lets you write to the output without messing up with the current output.
Useful for debugging.

## [0.0.14](https://github.com/vue-terminal/vue-termui/compare/@vue-termui/[email protected]...@vue-termui/[email protected]) (2022-03-21)

### Bug Fixes

- exit app when done ([a1461db](https://github.com/vue-terminal/vue-termui/commit/a1461dbcfa6a2906e78cd5fed1bbdcc9c77d16f2))

### Features

- auto detect port ([8fd7f40](https://github.com/posva-sponsors/vue-termui/commit/8fd7f409437582e8f3957535aa87e18176e09a42))
- focus management ([6198d1c](https://github.com/posva-sponsors/vue-termui/commit/6198d1c84ccbfca1d734fe1e049fb16842bc8136))
- auto detect port ([8fd7f40](https://github.com/vue-terminal/vue-termui/commit/8fd7f409437582e8f3957535aa87e18176e09a42))
- focus management ([6198d1c](https://github.com/vue-terminal/vue-termui/commit/6198d1c84ccbfca1d734fe1e049fb16842bc8136))

## [0.0.13](https://github.com/posva-sponsors/vue-termui/compare/@vue-termui/[email protected]...@vue-termui/[email protected]) (2022-03-15)
## [0.0.13](https://github.com/vue-terminal/vue-termui/compare/@vue-termui/[email protected]...@vue-termui/[email protected]) (2022-03-15)

### Bug Fixes

- use production mode by default for better builds ([f37830b](https://github.com/posva-sponsors/vue-termui/commit/f37830be17bdd87248203957d5204467c55a4478))
- use production mode by default for better builds ([f37830b](https://github.com/vue-terminal/vue-termui/commit/f37830be17bdd87248203957d5204467c55a4478))

## 0.0.12 (2022-03-15)

### Bug Fixes

- deps and cli file ([0473999](https://github.com/posva-sponsors/vue-termui/commit/04739996ede2b9d64a507a292ba813b7bafabe98))
- deps and cli file ([0473999](https://github.com/vue-terminal/vue-termui/commit/04739996ede2b9d64a507a292ba813b7bafabe98))

### Features

- add link and text transform components ([654ee74](https://github.com/posva-sponsors/vue-termui/commit/654ee74b15277c3913df630c7898826f0bd74d4c))
- add top, left, right, bottom ([5b73f16](https://github.com/posva-sponsors/vue-termui/commit/5b73f16808577d19766a3c3cea2be68f7302a345))
- handle communication channel + ctrl-c on dev server ([ebb5ec7](https://github.com/posva-sponsors/vue-termui/commit/ebb5ec72438dcf2f8e693ba9d16dd63672f834d5))
- handle multiple keys ([b48c8c0](https://github.com/posva-sponsors/vue-termui/commit/b48c8c0a0af203151e7c858f292c7d1746281c0f))
- warn missing current instance ([77d24ca](https://github.com/posva-sponsors/vue-termui/commit/77d24cae0db1d54a1c1c88547a8f6e8e9734dac1))
- add link and text transform components ([654ee74](https://github.com/vue-terminal/vue-termui/commit/654ee74b15277c3913df630c7898826f0bd74d4c))
- add top, left, right, bottom ([5b73f16](https://github.com/vue-terminal/vue-termui/commit/5b73f16808577d19766a3c3cea2be68f7302a345))
- handle communication channel + ctrl-c on dev server ([ebb5ec7](https://github.com/vue-terminal/vue-termui/commit/ebb5ec72438dcf2f8e693ba9d16dd63672f834d5))
- handle multiple keys ([b48c8c0](https://github.com/vue-terminal/vue-termui/commit/b48c8c0a0af203151e7c858f292c7d1746281c0f))
- warn missing current instance ([77d24ca](https://github.com/vue-terminal/vue-termui/commit/77d24cae0db1d54a1c1c88547a8f6e8e9734dac1))
38 changes: 15 additions & 23 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"access": "public"
},
"type": "module",
"version": "0.0.14",
"version": "0.0.16",
"scripts": {
"dev": "unbuild --stub",
"stub": "unbuild --stub",
"build": "tsup",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l @vue-termui/cli -r 1"
},
Expand All @@ -27,6 +27,8 @@
},
"files": [
"dist/**/*.js",
"dist/**/*.mjs",
"dist/**/*.cjs",
"dist/**/*.d.ts",
"vtui.mjs"
],
Expand All @@ -38,48 +40,38 @@
"vue-termui-cli",
"vue-termui"
],
"funding": "https://github.com/posva-sponsors/vue-termui?sponsor=1",
"funding": "https://github.com/vue-terminal/vue-termui?sponsor=1",
"license": "MIT",
"author": "Eduardo San Martin Morote (https://esm.dev)",
"repository": {
"type": "git",
"url": "https://github.com/posva-sponsors/vue-termui.git",
"url": "https://github.com/vue-terminal/vue-termui.git",
"directory": "packages/cli"
},
"engines": {
"node": ">=14.0.0"
},
"bugs": {
"url": "https://github.com/posva-sponsors/vue-termui/issues"
"url": "https://github.com/vue-terminal/vue-termui/issues"
},
"homepage": "https://github.com/posva-sponsors/vue-termui#readme",
"homepage": "https://github.com/vue-terminal/vue-termui#readme",
"dependencies": {
"picocolors": "^1.0.0",
"vite-node": "^0.22.1",
"vite-node": "^0.24.3",
"ws": "^8.5.0"
},
"peerDependencies": {
"vite": "^3.0.9",
"vite-plugin-vue-termui": ">=0.0.8",
"vue-termui": ">=0.0.10"
"vite": "^3.1.3",
"vite-plugin-vue-termui": ">=0.0.10",
"vue-termui": ">=0.0.13"
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@types/ws": "^8.5.3",
"cac": "^6.7.12",
"esbuild": "^0.14.38",
"esno": "^0.14.1",
"fast-glob": "^3.2.11",
"pathe": "^0.2.0",
"fast-glob": "^3.2.12",
"pathe": "^0.3.9",
"rimraf": "^3.0.2",
"rollup": "^2.70.2",
"rollup-plugin-dts": "^4.2.1",
"rollup-plugin-esbuild": "^4.9.1",
"rollup-plugin-license": "^2.7.0",
"vite-plugin-inspect": "^0.5.0",
"vite-plugin-inspect": "^0.7.5",
"vite-plugin-vue-termui": "workspace:*",
"vue-termui": "workspace:*"
},
Expand Down
Loading

0 comments on commit a083b85

Please sign in to comment.