Skip to content

Commit

Permalink
1,432nd Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Apr 23, 2024
1 parent ce20719 commit 10f896b
Show file tree
Hide file tree
Showing 9 changed files with 5,571 additions and 4,379 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Prerequisites:

- Node.js v20
- PNPM v8
- PNPM v9

Get started with Vue Starter.

Expand Down
16 changes: 8 additions & 8 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "vitest --dir src --coverage --run"
},
"dependencies": {
"@unocss/reset": "^0.59.2",
"@unocss/reset": "^0.59.4",
"@vueuse/components": "^10.9.0",
"@vueuse/core": "^10.9.0",
"@x/ui": "workspace:^",
Expand All @@ -20,17 +20,17 @@
"nprogress": "^0.2.0",
"ofetch": "^1.3.4",
"valibot": "^0.30.0",
"vue": "^3.4.21",
"vue-component-type-helpers": "^2.0.13",
"vue": "^3.4.24",
"vue-component-type-helpers": "^2.0.14",
"vue-formor": "^4.1.1",
"vue-localer": "^1.4.1",
"vue-qrcode-image": "^1.2.0",
"vue-router": "^4.3.0",
"vue-router": "^4.3.2",
"vue-storer": "^0.6.0",
"vuedraggable": "^4.1.0"
},
"devDependencies": {
"@iconify/json": "^2.2.200",
"@iconify/json": "^2.2.203",
"@types/lodash": "^4.17.0",
"@types/nprogress": "^0.2.3",
"@vitejs/plugin-vue": "^5.0.4",
Expand All @@ -41,10 +41,10 @@
"sass": "^1.75.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5",
"unocss": "^0.59.2",
"vite": "^5.2.8",
"unocss": "^0.59.4",
"vite": "^5.2.10",
"vite-plugin-vue-routes": "^1.1.0",
"vitest": "^1.5.0",
"vue-tsc": "^2.0.13"
"vue-tsc": "^2.0.14"
}
}
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"preview": "vitepress preview --port 3714"
},
"devDependencies": {
"vitepress": "^1.1.0"
"vitepress": "^1.1.3"
}
}
8 changes: 6 additions & 2 deletions iac/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"private": true,
"main": "./src/index.ts",
"dependencies": {
"@pulumi/azure-native": "^2.38.0",
"@pulumi/docker": "^4.5.3",
"@pulumi/google-native": "^0.32.0",
"@pulumi/pulumi": "^3.112.0"
"@pulumi/pulumi": "^3.113.3"
},
"devDependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
}
}
35 changes: 29 additions & 6 deletions iac/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
import * as pulumi from '@pulumi/pulumi';
import * as googleNative from '@pulumi/google-native';
import * as azureNative from '@pulumi/azure-native';

// https://www.pulumi.com/registry/packages/google-native/api-docs/run/v2/service/
const service = new googleNative.run.v2.Service('vue-starter', {
serviceId: 'vue',
// Create an Azure resource group
const resourceGroup = new azureNative.resources.ResourceGroup('myResourceGroup');

// Define the container app environment
const containerAppEnv = new azureNative.app.ManagedEnvironment('myContainerAppEnv', {
resourceGroupName: resourceGroup.name,
});

// Create the Azure Container App
const containerApp = new azureNative.app.ContainerApp('myContainerApp', {
resourceGroupName: resourceGroup.name,
managedEnvironmentId: containerAppEnv.id,
configuration: {
ingress: {
// Ingress settings can be customized as needed
external: true,
targetPort: 80,
},
},
template: {
containers: [
{
image: 'us-central1-docker.pkg.dev/xxx/xxx/vue-starter',
name: 'myfrontendcontainer',
image: 'vue-starter', // Replace with your front-end container image
resources: {
cpu: 0.5,
memory: '250Mb',
},
},
],
},
});

// Export the URL of the container app
export const url = containerApp.configuration.apply((config) => config?.ingress?.fqdn);
2 changes: 1 addition & 1 deletion mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"process-envify": "^2.0.0",
"vite": "^5.2.8",
"vite": "^5.2.10",
"vite-plugin-fastify": "^1.2.5",
"vite-plugin-fastify-routes": "^1.1.1"
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"e2e": "pnpm -C e2e e2e"
},
"devDependencies": {
"@biomejs/biome": "^1.6.4",
"@biomejs/biome": "^1.7.1",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"eslint": "^9.0.0",
"eslint-plugin-vue": "^9.24.1",
"eslint": "^9.1.1",
"eslint-plugin-vue": "^9.25.0",
"prettier": "^3.2.5"
}
}
Loading

0 comments on commit 10f896b

Please sign in to comment.