Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
hoist example-project to root
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Jul 7, 2024
1 parent 7dcc953 commit 8e974bb
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@ Run `bun bootstrap` to install dependencies and `bun cli.ts` to run test the cli
To run tests, run `bun test`

If you want to test developing, run `bun dev` and visit http://localhost:5173. The project being
loaded is inside `tests/assets/example-project`
loaded is inside `example-project`

![image](https://github.com/tscircuit/cli/assets/1910070/cabb180d-a64f-4fe5-a6af-26f990af39b3)

![image](https://github.com/tscircuit/cli/assets/1910070/9350c52c-4263-4ba2-b06b-61130b1aab3b)

![image](https://github.com/tscircuit/cli/assets/1910070/d6facd4d-0887-4871-8aa1-e525c519c50d)


## Features Coming Soon

- [`tsci format`](https://github.com/tscircuit/cli/issues/1)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"start": "bun cli.ts",
"dev": "TSCI_DEV_SERVER_DB=$(pwd)/.tscircuit/devdb concurrently 'cd dev-server-api && bun run build && bun start' 'cd dev-server-frontend && bun start' 'bun run dev-with-test-project'",
"clear": "rm -rf .tscircuit ./dev-server-api/.edgespec",
"start:dev-server": "bun build:dev-server && bun cli.ts dev -y --cwd ./tests/assets/example-project",
"start:dev-server": "bun build:dev-server && bun cli.ts dev -y --cwd ./example-project",
"build:dev-server": "cd dev-server-api && bun run build && cd ../dev-server-frontend && bun run build",
"build:dev-server:api": "cd dev-server-api && bun run build",
"build:cli": "bun build-cli.ts",
"build": "bun build:dev-server && npm run build:cli",
"dev-with-test-project": "bun cli.ts dev --cwd ./tests/assets/example-project",
"dev-with-test-project": "bun cli.ts dev --cwd ./example-project",
"test:init": "bun cli.ts init --dir ./tmp/test --name test",
"update-deps": "bun add @tscircuit/builder@latest @tscircuit/react-fiber@latest && cd dev-server-frontend && bun run update-deps && cd ../tests/assets/example-project && bun run update-deps"
"update-deps": "bun add @tscircuit/builder@latest @tscircuit/react-fiber@latest && cd dev-server-frontend && bun run update-deps && cd ../example-project && bun run update-deps"
},
"bin": {
"tsci": "./dist/cli.js"
Expand Down
3 changes: 1 addition & 2 deletions tests/open.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { test, expect } from "bun:test"
import { $ } from "bun"

test("tsci open", async () => {
const result =
await $`bun cli.ts open -y --cwd ./tests/assets/example-project`.text()
const result = await $`bun cli.ts open -y --cwd ./example-project`.text()
expect(result).toContain("http")
expect(result).toContain("example-project")
})
2 changes: 1 addition & 1 deletion tests/soupify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { $ } from "bun"

test("soupify", async () => {
const result =
await $`bun cli.ts soupify -y --file ./tests/assets/example-project/examples/basic-bug.tsx`.text()
await $`bun cli.ts soupify -y --file ./example-project/examples/basic-bug.tsx`.text()

expect(result).toContain("10kohm")
})

0 comments on commit 8e974bb

Please sign in to comment.