chore(tooling): replace turbo with moon, add proto toolchain
This commit is contained in:
parent
8768f6dd8f
commit
6c81db47c0
|
|
@ -1,6 +1,9 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
.turbo/
|
dist/
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
docs/
|
docs/
|
||||||
|
|
||||||
|
# moon runtime cache
|
||||||
|
.moon/cache/
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
$schema: 'https://moonrepo.dev/schemas/toolchains.json'
|
||||||
|
|
||||||
|
# javascript must be enabled alongside bun
|
||||||
|
javascript: {}
|
||||||
|
|
||||||
|
bun:
|
||||||
|
version: '1.3.11'
|
||||||
|
# Auto-install deps when lockfile/manifest changes
|
||||||
|
installDependencies: true
|
||||||
|
|
||||||
|
# Rust toolchain — no crates yet, but enabling it now means
|
||||||
|
# moon will automatically understand Cargo.toml files and
|
||||||
|
# track Cargo.lock for hashing when they appear.
|
||||||
|
rust: {}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
$schema: 'https://moonrepo.dev/schemas/workspace.json'
|
||||||
|
|
||||||
|
# Discover all projects under apps/ automatically.
|
||||||
|
# When Rust crates land, add a 'crates/*' glob here.
|
||||||
|
projects:
|
||||||
|
- 'apps/*'
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
# proto pins tool versions workspace-wide.
|
||||||
|
# Every developer and CI machine gets the exact same versions automatically.
|
||||||
|
moon = "2.3.3"
|
||||||
|
bun = "1.3.11"
|
||||||
20
README.md
20
README.md
|
|
@ -26,6 +26,26 @@
|
||||||
|
|
||||||
You can still find the previous version at [opencut-app/opencut-classic](https://github.com/opencut-app/opencut-classic), which is the one to reach for today. [opencut.app](https://opencut.app) still runs the classic version; the rewrite will live at [new.opencut.app](https://new.opencut.app) until it's ready to take over.
|
You can still find the previous version at [opencut-app/opencut-classic](https://github.com/opencut-app/opencut-classic), which is the one to reach for today. [opencut.app](https://opencut.app) still runs the classic version; the rewrite will live at [new.opencut.app](https://new.opencut.app) until it's ready to take over.
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
Install [proto](https://moonrepo.dev/proto) if you haven't already:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
bash <(curl -fsSL https://moonrepo.dev/install/proto.sh)
|
||||||
|
```
|
||||||
|
|
||||||
|
From the repo root:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
proto use # installs bun + moon at the versions pinned in .prototools
|
||||||
|
bun install
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
moon run web:dev # localhost:5173
|
||||||
|
moon run api:dev # localhost:8787
|
||||||
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
We're not set up to take outside contributions yet while the architecture is being designed. If you want to follow along, ask questions, or just hang out, [join the Discord](https://discord.gg/zmR9N35cjK) or [open an issue](https://github.com/opencut-app/opencut/issues).
|
We're not set up to take outside contributions yet while the architecture is being designed. If you want to follow along, ask questions, or just hang out, [join the Discord](https://discord.gg/zmR9N35cjK) or [open an issue](https://github.com/opencut-app/opencut/issues).
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
$schema: 'https://moonrepo.dev/schemas/project.json'
|
||||||
|
|
||||||
|
language: 'typescript'
|
||||||
|
layer: 'application'
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
dev:
|
||||||
|
command: 'bun run dev'
|
||||||
|
options:
|
||||||
|
runInCI: false # dev server — skipped in CI, never cached
|
||||||
|
|
||||||
|
build:
|
||||||
|
command: 'bun run build'
|
||||||
|
inputs:
|
||||||
|
- 'src/**/*'
|
||||||
|
- 'wrangler.jsonc'
|
||||||
|
- 'package.json'
|
||||||
|
outputs:
|
||||||
|
- 'dist'
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
command: 'bun run deploy'
|
||||||
|
deps:
|
||||||
|
- '~:build'
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
$schema: 'https://moonrepo.dev/schemas/project.json'
|
||||||
|
|
||||||
|
language: 'typescript'
|
||||||
|
layer: 'application'
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
dev:
|
||||||
|
command: 'bun run dev'
|
||||||
|
options:
|
||||||
|
runInCI: false # dev server — skipped in CI, never cached
|
||||||
|
|
||||||
|
build:
|
||||||
|
command: 'bun run build'
|
||||||
|
inputs:
|
||||||
|
- 'src/**/*'
|
||||||
|
- 'public/**/*'
|
||||||
|
- 'vite.config.ts'
|
||||||
|
- 'tsconfig.json'
|
||||||
|
- 'package.json'
|
||||||
|
outputs:
|
||||||
|
- 'dist'
|
||||||
|
|
||||||
|
test:
|
||||||
|
command: 'bun run test'
|
||||||
|
inputs:
|
||||||
|
- 'src/**/*'
|
||||||
|
- 'tsconfig.json'
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
command: 'bun run deploy'
|
||||||
|
deps:
|
||||||
|
- '~:build'
|
||||||
21
package.json
21
package.json
|
|
@ -1,19 +1,14 @@
|
||||||
{
|
{
|
||||||
"name": "opencut",
|
"name": "opencut",
|
||||||
"private": true,
|
"private": true,
|
||||||
"workspaces": ["apps/*", "architecture"],
|
"workspaces": ["apps/*"],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "turbo dev",
|
"dev": "moon run web:dev api:dev",
|
||||||
"dev:web": "turbo dev --filter=@opencut/web",
|
"dev:web": "moon run web:dev",
|
||||||
"dev:architecture": "turbo dev --filter=@opencut/architecture",
|
"dev:api": "moon run api:dev",
|
||||||
"build": "turbo build",
|
"build": "moon run :build",
|
||||||
"deploy": "turbo deploy"
|
"test": "moon run :test",
|
||||||
|
"deploy": "moon run :deploy"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"packageManager": "bun@1.3.11"
|
||||||
"turbo": "latest"
|
|
||||||
},
|
|
||||||
"packageManager": "bun@1.3.11",
|
|
||||||
"dependencies": {
|
|
||||||
"opencut": "."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
turbo.json
16
turbo.json
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://turbo.build/schema.json",
|
|
||||||
"tasks": {
|
|
||||||
"build": {
|
|
||||||
"dependsOn": ["^build"],
|
|
||||||
"outputs": [".output/**", "dist/**"]
|
|
||||||
},
|
|
||||||
"dev": {
|
|
||||||
"cache": false,
|
|
||||||
"persistent": true
|
|
||||||
},
|
|
||||||
"deploy": {
|
|
||||||
"dependsOn": ["build"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue