Skip to content

Commit

Permalink
chore(cli): create package
Browse files Browse the repository at this point in the history
  • Loading branch information
treyturner committed Oct 7, 2024
1 parent a29c0b1 commit 48eefac
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/cli/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
test
7 changes: 7 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# artifacts-cli

A CLI for playing Artifacts MMO.

## Status

Investigating CLI libraries; particularly those with window management and input auto-complete.
38 changes: 38 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "@trey.turner/artifacts-cli",
"version": "0.0.1",
"module": "index.ts",
"main": "dist/index.js",
"types": "dist/types.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/treyturner/ts-artifacts.git"
},
"scripts": {
"build": "tsc -p src/tsconfig.json",
"check": "bun run --silent lint && bun run --silent format && bun run --silent typecheck",
"check:fix": "bun run --silent lint:fix && bun run --silent format:fix && bun run --silent typecheck",
"clean": "bun run --silent clean:build && bun run --silent clean:deps",
"clean:build": "rm -rf dist",
"clean:deps": "rm -rf node_modules bun.lockb",
"format": "biome format src/ test/",
"format:fix": "biome format --write src/ test/",
"lint": "biome lint --error-on-warnings src/ test/",
"lint:fix": "biome lint --error-on-warnings --fix src/ test/",
"start": "bun run src/index.ts",
"typecheck": "tsc -p src/tsconfig.json && tsc --noEmit -p test/tsconfig.json"
},
"dependencies": {
"@trey.turner/artifacts-api-client": "workspace:*",
"node-inspect-extracted": "3.0.2"
},
"devDependencies": {
"@types/bun": "latest",
"dotenv": "16.4.5",
"typescript": "5.6.2"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}
1 change: 1 addition & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Not yet implemented");
7 changes: 7 additions & 0 deletions packages/cli/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig-base.json",
"compilerOptions": {
"composite": true,
"outDir": "../dist"
}
}
8 changes: 8 additions & 0 deletions packages/cli/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../../tsconfig-base.json",
"references": [{ "path": "../src" }],
"compilerOptions": {
"noEmit": true,
"declarationMap": false
}
}
5 changes: 3 additions & 2 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"bump-patch-for-minor-pre-major": true,
"packages": {
"packages/api-client": {},
"packages/mocks-counterfact": {
"packages/cli": {
"release-as": "0.0.1"
}
},
"packages/mocks-counterfact": {}
},
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
Expand Down

0 comments on commit 48eefac

Please sign in to comment.