Skip to content

Commit 029b62d

Browse files
committed
Initial POC with ink installed and working
1 parent 7de344a commit 029b62d

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"codify-schemas": "1.0.32",
1212
"ajv": "^8.12.0",
1313
"ajv-formats": "^3.0.1",
14-
"tsx": "^4.7.3"
14+
"tsx": "^4.7.3",
15+
"ink": "^4.4.1",
16+
"react": "^18.3.1"
1517
},
1618
"description": "Codify is a set up as code tool for developers",
1719
"devDependencies": {
@@ -23,6 +25,7 @@
2325
"@types/mock-fs": "^4.13.3",
2426
"@types/node": "^18",
2527
"@types/semver": "^7.5.4",
28+
"@types/react": "^18.3.1",
2629
"eslint-config-prettier": "^9.0.0",
2730
"chai": "^4",
2831
"chai-as-promised": "^7.1.1",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { Args, Command, Flags } from '@oclif/core'
2+
import { render, Text } from 'ink';
23
import * as path from 'node:path';
4+
import * as React from 'react';
5+
36
import { PlanOrchestrator } from '../../orchestrators/plan.js';
47

58
export default class Plan extends Command {
@@ -25,6 +28,8 @@ export default class Plan extends Command {
2528
public async run(): Promise<void> {
2629
const { args, flags } = await this.parse(Plan)
2730

31+
render(<Text color="blue">Test Text</Text>);
32+
2833
const name = flags.name ?? 'world'
2934
this.log(`hello ${name} from /Users/kevinwang/Projects/codify/codify-core/src/commands/plan.ts`)
3035
if (args.file && flags.force) {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"moduleResolution": "Node16",
66
"esModuleInterop": true,
77
"resolveJsonModule": true,
8+
"jsx": "react",
89
"outDir": "dist",
910
"rootDir": "src",
1011
"strict": true,

0 commit comments

Comments
 (0)