Skip to content

Commit 959af48

Browse files
committed
chore: repo cleanup, update deps
1 parent 03a5275 commit 959af48

File tree

108 files changed

+2569
-20147
lines changed

Some content is hidden

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

108 files changed

+2569
-20147
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# LINGODOTDEV_API_KEY=
12
NODE_TLS_REJECT_UNAUTHORIZED=0

.env.sst

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.

.gitignore

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ lib-cov/
1616
.next/
1717
.nitro/
1818
.cache/
19-
dist/
19+
dist
20+
i18n.cache
2021

2122
# misc
22-
.DS_Store
23-
.fleet
24-
.idea
23+
.DS_Store/
24+
.fleet/
25+
.idea/
2526
temp
2627
tmp
2728
logs
@@ -39,17 +40,20 @@ yarn-error.log*
3940
.pnpm-debug.log*
4041

4142
# local env files
42-
.env.*.ignored
43+
.env.local
44+
.env.*.local
4345

4446
# turbo
45-
.turbo
47+
.turbo/
4648

4749
# cloud services
48-
.vercel
49-
.netlify
50+
.vercel/
51+
.netlify/
5052

5153
# sst
52-
.sst
54+
.sst/
5355

54-
# pnpm have a bug with tsx that creates the `tsx-0` folder everywhere
55-
tsx-0
56+
# https://github.com/pnpm/pnpm/issues/7330
57+
tsx-0/
58+
v8-compile-cache*/
59+
node-compile-cache/

.vscode/settings.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,15 @@
4848
"typescript.tsdk": "node_modules/typescript/lib",
4949

5050
"i18n-ally.keystyle": "flat",
51-
"i18n-ally.enabledFrameworks": ["vue-sfc", "vue"],
51+
"i18n-ally.enabledFrameworks": [
52+
"vue-sfc",
53+
"vue",
54+
"general"
55+
],
5256
"i18n-ally.localesPaths": [
53-
"packages/locales/dist"
57+
"locals/locales/dist/frontend",
58+
"locals/locales/dist/backend",
59+
"locals/locales/dist"
5460
],
5561

5662
"errorLens.followCursor": "allLines"

README.md

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
* [Develop](#develop)
2424
* [Notes](#notes)
2525
* [`import` ordering](#import-ordering)
26-
* [Dev with SSL](#dev-with-ssl)
2726
* [Remote Caching](#remote-caching)
2827
* [Useful Links](#useful-links)
2928

@@ -46,7 +45,7 @@ Traditional i18n often involves navigating complex file formats (like JSON or YA
4645

4746
⏩ This template is powered by [Turborepo](https://turbo.build/repo).
4847

49-
👌 The repo is always [**TypeScript**](https://www.typescriptlang.org/)-native where possible.
48+
💯 JS is always [**TypeScript**](https://www.typescriptlang.org/) where possible.
5049

5150
### Apps and Libraries
5251

@@ -58,29 +57,16 @@ Traditional i18n often involves navigating complex file formats (like JSON or YA
5857

5958
* Unplugin wrapper to integrate with any project easily!
6059

61-
<!--
62-
#### [`frontend`](./apps/frontend/README.md): a [Nuxt](https://nuxt.com/) app, compatible with v4 structure.
63-
* By default, the frontend `/api/*` routes is proxied to the `backendUrl`.
64-
* The `rpcApi` plugin will call the `/api/*` proxy if they're on the same domain but different ports (e.g: 127.0.0.1)
65-
* > this mimics a production environment where the static frontend and the backend lives on the same domain at /api, which is the most efficient configuration for Cloudfront + Lambda Function Url
66-
* If the `frontend` and `backend` are on different domains then the backend will be called directly without proxy.
67-
* This could be configured in frontend's [`app.config.ts`](./apps/frontend/app/app.config.ts)
68-
#### [`backend`](./apps/backend/README.md): a [Hono🔥](https://hono.dev/) app.
69-
-->
70-
7160
### Local packages
7261

73-
+ [`@local/locales`](./locals/locales/README.md): a shared locales/i18n library powered by [spreadsheet-i18n](./libs/spreadsheet-i18n/README.md) itself!.
74-
+ `@local/common`: a shared library that can contain constants, functions, types.
75-
<!--
76-
+ `@local/common-vue`: a shared library that can contain components, constants, functions, types for vue-based apps.
77-
-->
62+
+ [`@local/locales`](./locals/locales/README.md): a shared central locales/i18n data library powered by [**spreadsheet-i18n**](https://github.com/NamesMT/spreadsheet-i18n--mono).
63+
+ 🌐✨🤖 **AUTOMATIC** localization with AI, powered by [**lingo.dev**](https://lingo.dev/), just `pnpm run i18n`.
64+
+ 🔄️ Hot-reload and automatic-reload supported, changes are reflected in apps (`frontend`, `backend`) instantly.
7865
+ `tsconfig`: `tsconfig.json`s used throughout the monorepo.
7966

8067
### Utilities
8168

8269
This Turborepo has some additional tools already setup for you:
83-
+ 👌 TypeScript
8470
+ 🧐 ESLint + stylistic formatting rules ([antfu](https://github.com/antfu/eslint-config))
8571
+ 📚 A few more goodies like:
8672
+ [lint-staged](https://github.com/lint-staged/lint-staged) pre-commit hook
@@ -97,19 +83,14 @@ To build all apps and packages, run the following command:
9783
To develop all apps and packages, run the following command:
9884
`pnpm run dev`
9985

100-
To define local development environment variables of each app, either use `git update-index --skip-worktree .env.local` and use it directly, or create a copy of or rename `.env.local` to `.env.local.ignored`.
101-
- AI Agent will help you creating the `.env.local.ignored` files if you use the AI initialization prompt.
86+
For local development environment variables / secrets, create a copy of `.env.dev` to `.env.dev.local`.
10287

10388
### Notes
10489

10590
#### `import` ordering
10691

10792
Imports should not be separated by empty lines, and should be sorted automatically by eslint.
10893

109-
#### Dev with SSL
110-
111-
The project comes with a `localcert` SSL at `locals/common/dev` to enable HTTPS for local development, generated with [mkcert](https://github.com/FiloSottile/mkcert), you can install mkcert, generate your own certificate and replace it, or install the `localcert.crt` to your trusted CA to remove the untrusted SSL warning.
112-
11394
### Remote Caching
11495

11596
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

apps/backend/.env

Lines changed: 0 additions & 10 deletions
This file was deleted.

apps/backend/.env.local

Lines changed: 0 additions & 11 deletions
This file was deleted.

apps/backend/README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

apps/backend/build.config.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)