Skip to content

Commit 6ab60b9

Browse files
committed
update references to libs/ everywhere
1 parent 9b4a6e0 commit 6ab60b9

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The web console has no special privileges as an API consumer. Logging in sets a
4747

4848
## Directory structure
4949

50-
The app is in [`app`](app). You can see the route structure in [`app/routes.tsx`](app/routes.tsx). In [`libs`](libs) we have a [`ui`](libs/ui) dir where the low-level components live and an [`api`](libs/api) dir where we keep the generated API client and a React Query wrapper for it. These directories are aliased in [`tsconfig.json`](tsconfig.json) for easy import from the main app as `@oxide/ui` and `@oxide/api`, respectively.
50+
The app is in [`app`](app). You can see the route structure in [`app/routes.tsx`](app/routes.tsx). Also in [`app`](app) we have a [`ui`](app/ui) dir where the low-level components live and an [`api`](app/api) dir where we keep the generated API client and a React Query wrapper for it. These directories are aliased in [`tsconfig.json`](tsconfig.json) for easy import from the main app as `@oxide/ui` and `@oxide/api`, respectively.
5151

5252
## Development
5353

docs/update-pinned-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The API generation script assumes you have `omicron` and `oxide.ts` cloned under
77
## Instructions
88

99
1. Update [`OMICRON_VERSION`](/OMICRON_VERSION) with new Omicron commit hash
10-
1. Update the generated API client by running `npm run gen-api`. This will automatically check out the omicron commit specified as `API_VERSION`. If you forget this step, a safety test in `libs/api` will fail.
10+
1. Update the generated API client by running `npm run gen-api`. This will automatically check out the omicron commit specified as `API_VERSION`. If you forget this step, a safety test in `app/api` will fail.
1111
1. Fix any type errors introduced by changes to the generated code
1212
1. Commit and push to a branch
1313

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"gen-api": "./tools/generate_api_client.sh",
2626
"ladle": "IS_LADLE=1 ladle serve",
2727
"build:ladle": "IS_LADLE=1 ladle build",
28-
"unused-exports": "ts-unused-exports tsconfig.json --ignoreFiles=\\.stories --excludePathsFromReport=\"libs/api/index.ts;libs/ui/index.ts\"",
2928
"postinstall": "patch-package",
3029
"prepare": "husky"
3130
},

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
fontFamily: false,
2525
fontSize: false,
2626
},
27-
content: ['./libs/**/*.{ts,tsx,mdx}', './app/**/*.{ts,tsx}'],
27+
content: ['./app/**/*.{ts,tsx}'],
2828
theme: {
2929
extend: {
3030
screens: {

tools/generate_api_client.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -o xtrace
1414
# console and have run `npm install` inside oxide.ts/generator
1515

1616
OMICRON_SHA=$(head -n 1 OMICRON_VERSION)
17-
GEN_DIR="$PWD/libs/api/__generated__"
17+
GEN_DIR="$PWD/app/api/__generated__"
1818

1919
# this will be less horrific when the package is published? or maybe not
2020
npm run --silent --prefix ../oxide.ts gen-from $OMICRON_SHA $GEN_DIR

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default defineConfig(({ mode }) => ({
145145
test: {
146146
environment: 'jsdom',
147147
setupFiles: ['test/unit/setup.ts'],
148-
includeSource: ['app/**/*.ts', 'libs/**/*.ts'],
148+
includeSource: ['app/**/*.ts'],
149149
},
150150
}))
151151

0 commit comments

Comments
 (0)