Skip to content

Commit 3c52c81

Browse files
update typechecking, update docs to latest runtime etc. versions + move /docs -> /apps/docs (#1977)
* wip: move docs to apps * wip * wip * goated check script * check ci * gen astro types on check * fix knip config. * fix knip again, fix astro prod build serving * fmt * remove unused scripts from packages/ui and packages/create-deco * still use cloudflare for deployment * fix
1 parent 532f82b commit 3c52c81

File tree

102 files changed

+134
-7228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+134
-7228
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ jobs:
2222
run: bun install -g deco-cli
2323

2424
- name: Install dependencies
25-
run: |
26-
cd docs
27-
bun install
25+
run: bun install
2826

2927
- name: Deploy
30-
run: |
31-
cd docs
32-
bun run deploy
28+
run: bun run deploy
29+
working-directory: apps/docs
3330
env:
3431
DECO_DEPLOY_TOKEN: ${{ secrets.DECO_DEPLOY_TOKEN_DOCS }}

.github/workflows/test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ jobs:
2929
run: bun run lint
3030

3131
- name: Run check
32-
run: bun run check
33-
34-
- name: Run mesh check
35-
run: bun run check
36-
working-directory: apps/mesh
32+
run: bun run check:ci
3733

3834
- name: Run test
3935
run: bun run test

.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"./plugins/ban-use-effect.js",
66
"./plugins/ban-memoization.js"
77
],
8-
"ignorePatterns": ["docs/*"],
8+
"ignorePatterns": ["apps/docs/*"],
99
"rules": {
1010
"unicorn/no-useless-fallback-in-spread": "off",
1111
"no-unused-expressions": "off",

docs/.gitignore renamed to apps/docs/.gitignore

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
1-
21
# Environment files
32
.env
3+
.env.production
44
.dev.vars
55

66
# Build files
77
view-build/
8+
dist
9+
dist-ssr
10+
dist/
11+
.nitro
12+
.tanstack
813

914
# Node modules
1015
node_modules
11-
1216
node_modules/
1317

18+
# Generated types
19+
.astro/
20+
21+
# Logs
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
pnpm-debug.log*
26+
27+
# macOS-specific files
1428
.DS_Store
15-
dist
16-
dist-ssr
29+
30+
# Other
1731
*.local
1832
count.txt
19-
.env
20-
.nitro
21-
.tanstack
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import react from "@astrojs/react";
88

99
// https://astro.build/config
1010
export default defineConfig({
11-
redirects: {
12-
"/": "/en/introduction",
13-
},
11+
root: "client",
1412
server: {
1513
port: 4000,
1614
},
17-
outDir: "../server/view-build/",
15+
redirects: {},
16+
outDir: "dist/client/",
17+
srcDir: "client/src",
1818
i18n: {
1919
locales: ["en", "pt-br"],
2020
defaultLocale: "en",
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)