Skip to content

Commit

Permalink
chore: move examples into dedicated workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
adbayb committed Aug 15, 2023
1 parent c850fc0 commit 982f811
Show file tree
Hide file tree
Showing 18 changed files with 331 additions and 5 deletions.
Empty file removed examples/.gitkeep
Empty file.
14 changes: 14 additions & 0 deletions examples/command/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"private": true,
"name": "@examples/command",
"version": "0.0.0",
"scripts": {
"start": "node -r esbuild-register ./src/index.ts"
},
"dependencies": {
"termost": "^0.9.0"
},
"devDependencies": {
"esbuild-register": "3.4.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { helpers, termost } from "../src";
import { helpers, termost } from "termost";

type ProgramContext = {
globalFlag: boolean;
Expand Down
5 changes: 5 additions & 0 deletions examples/command/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
14 changes: 14 additions & 0 deletions examples/default/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"private": true,
"name": "@examples/default",
"version": "0.0.0",
"scripts": {
"start": "node -r esbuild-register ./src/index.ts"
},
"dependencies": {
"termost": "^0.9.0"
},
"devDependencies": {
"esbuild-register": "3.4.2"
}
}
2 changes: 1 addition & 1 deletion termost/example/index.ts → examples/default/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { helpers, termost } from "../src";
import { helpers, termost } from "termost";

type ProgramContext = {
sharedOutput: string;
Expand Down
5 changes: 5 additions & 0 deletions examples/default/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
14 changes: 14 additions & 0 deletions examples/input/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"private": true,
"name": "@examples/input",
"version": "0.0.0",
"scripts": {
"start": "node -r esbuild-register ./src/index.ts"
},
"dependencies": {
"termost": "^0.9.0"
},
"devDependencies": {
"esbuild-register": "3.4.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { helpers, termost } from "../src";
import { helpers, termost } from "termost";

type ProgramContext = {
input1: "singleOption1" | "singleOption2";
Expand Down
5 changes: 5 additions & 0 deletions examples/input/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
14 changes: 14 additions & 0 deletions examples/option/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"private": true,
"name": "@examples/option",
"version": "0.0.0",
"scripts": {
"start": "node -r esbuild-register ./src/index.ts"
},
"dependencies": {
"termost": "^0.9.0"
},
"devDependencies": {
"esbuild-register": "3.4.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { helpers, termost } from "../src";
import { helpers, termost } from "termost";

type ProgramContext = {
optionWithAlias: number;
Expand Down
5 changes: 5 additions & 0 deletions examples/option/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
14 changes: 14 additions & 0 deletions examples/task/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"private": true,
"name": "@examples/task",
"version": "0.0.0",
"scripts": {
"start": "node -r esbuild-register ./src/index.ts"
},
"dependencies": {
"termost": "^0.9.0"
},
"devDependencies": {
"esbuild-register": "3.4.2"
}
}
2 changes: 1 addition & 1 deletion termost/example/withTask.ts → examples/task/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { helpers, termost } from "../src";
import { helpers, termost } from "termost";

type ProgramContext = {
computedFromOtherTaskValues: "big" | "small";
Expand Down
5 changes: 5 additions & 0 deletions examples/task/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@changesets/cli": "2.26.2",
"@commitlint/cli": "17.7.1",
"@commitlint/config-conventional": "17.7.0",
"@types/jest": "29.5.3",
"eslint": "8.47.0",
"prettier": "3.0.1",
"turbo": "1.10.12",
Expand Down
Loading

0 comments on commit 982f811

Please sign in to comment.