Skip to content

Commit

Permalink
Update naming convention from web to mvp (including cdk and dev script)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccali11 committed Dec 11, 2023
1 parent ec22725 commit 9a96176
Show file tree
Hide file tree
Showing 79 changed files with 525 additions and 649 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/web/package.json → apps/mvp/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@casimir/web",
"name": "@casimir/mvp",
"description": "Casimir web app",
"private": true,
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/web/vite.config.ts → apps/mvp/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import nodePolyfills from "rollup-plugin-polyfill-node"
import nodeResolve from "@rollup/plugin-node-resolve"

export default defineConfig({
server: { port: 3001 },
server: { port: 3003 },
plugins: [
vue(),
nodePolyfills(),
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/cdk/src/providers/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class WebStack extends cdk.Stack {

new s3Deployment.BucketDeployment(this, config.getFullStackResourceName(this.name, "bucket-deployment"), {
destinationBucket: bucket,
sources: [s3Deployment.Source.asset("../../apps/app/dist")],
sources: [s3Deployment.Source.asset("../../apps/mvp/dist")],
distribution,
distributionPaths: ["/*"]
})
Expand Down
1,156 changes: 512 additions & 644 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/cdk/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void async function () {
await run("npm run build --workspace @casimir/redirect")
await run("npm run build --workspace @casimir/www")
await run("npm run build --workspace @casimir/users")
await run("npm run build --workspace @casimir/app")
await run("npm run build --workspace @casimir/mvp")

await run("npm run bootstrap --workspace @casimir/cdk")
await run("npm run synth --workspace @casimir/cdk")
Expand Down
2 changes: 1 addition & 1 deletion scripts/cdk/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void async function () {
await run("npm run build --workspace @casimir/redirect")
await run("npm run build --workspace @casimir/www")
await run("npm run build --workspace @casimir/users")
await run("npm run build --workspace @casimir/app")
await run("npm run build --workspace @casimir/mvp")

console.log("🚀 Testing CDK app")
await run("npm run test --workspace @casimir/cdk")
Expand Down
8 changes: 8 additions & 0 deletions scripts/root/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ async function root() {
port: 4000,
}
}
},
mvp: {
contracts: false,
port: 3003
}
}

Expand Down Expand Up @@ -137,6 +141,10 @@ async function root() {
run(`npm run dev --workspace @casimir/${app}`)
}

if (process.env.RUN_MVP === "true" && app === "app") {
run("npm run dev --workspace @casimir/mvp")
}

if (process.env.MOCK_SERVICES === "true" && app === "app") {
process.on("SIGINT", () => {
console.log("🧹 Cleaning up users service")
Expand Down

0 comments on commit 9a96176

Please sign in to comment.