-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #591 from dzcode-io/rspack
chore: re-writing `./web` using RSPack and tailwind
- Loading branch information
Showing
187 changed files
with
4,794 additions
and
18,886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:16 | ||
FROM node:20 | ||
# Create app directory | ||
WORKDIR /usr/src/repo | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// can be ran locally from ./api: | ||
// SSH_ADDRESS_STG="[email protected]" SSH_PATH="path/to/private/ssh/key" yarn deploy:stg | ||
|
||
import { execSync } from "child_process"; | ||
import { copySync, existsSync } from "fs-extra"; | ||
import { join } from "path"; | ||
|
@@ -82,8 +85,6 @@ logs = execSync( | |
console.log("✅ New code uploaded."); | ||
|
||
console.log("\n⚙️ Starting up the app"); | ||
logs = execSync( | ||
sshPrefix + '"sudo docker-compose -f ' + appPath + '/docker-compose.yml up -d --build"', | ||
); | ||
logs = execSync(sshPrefix + '"cd ' + appPath + ' && docker compose up -d --build"'); | ||
console.log(String(logs)); | ||
console.log("✅ Deployment successful."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,8 +64,8 @@ | |
}, | ||
"scripts": { | ||
"build": "lerna run build:alone [email protected]/api --include-dependencies --stream", | ||
"build:alone": "tsc", | ||
"build:alone:watch": "tsc --watch --preserveWatchOutput", | ||
"build:alone": "tspc", | ||
"build:alone:watch": "tspc --watch --preserveWatchOutput", | ||
"build:watch": "lerna run build:alone:watch [email protected]/api --include-dependencies --parallel", | ||
"clean": "lerna run clean:alone [email protected]/api --include-dependencies --stream", | ||
"clean:alone": "rimraf dist coverage fetch_cache oracle-cloud/build", | ||
|
@@ -80,7 +80,7 @@ | |
"lint:fix:alone": "yarn lint:eslint --fix . && yarn lint:prettier --write .", | ||
"lint:prettier": "prettier --config ../packages/tooling/.prettierrc --ignore-path ../packages/tooling/.prettierignore --loglevel warn", | ||
"lint:ts-prune": "ts-node ../packages/tooling/setup-ts-prune.ts && ts-prune --error", | ||
"lint:tsc": "tsc --noEmit", | ||
"lint:tsc": "tspc --noEmit", | ||
"start": "node dist/app/index.js", | ||
"start:dev": "ts-node ../packages/tooling/nodemon.ts @dzcode.io/api && nodemon dist/app/index.js", | ||
"test": "yarn build && yarn test:alone", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.