Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json #126

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ VUE_APP_KEYCLOAK_CLIENTID="entity-web"
VUE_APP_SENTRY_DSN=
VUE_APP_SENTRY_TRACE_SAMPLE_RATE="1.0"

#google analytics
NUXT_GTAG_ID=""
NUXT_GTAG_DEBUG=""
NUXT_GTM_ID=""

#vaults hotjar
VUE_APP_HOTJAR_ID=

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install dependencies
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
run_install: true

- name: Linting
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Install dependencies
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
run_install: true

- name: Run unit tests
Expand All @@ -69,6 +69,8 @@ jobs:
cypress-test:
needs: setup-job
runs-on: ubuntu-20.04
env:
CYPRESS: true

strategy:
matrix:
Expand All @@ -84,7 +86,7 @@ jobs:
- name: Install dependencies
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
run_install: true

- name: Set basic env
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
- name: Install dependencies
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
run_install: true

- name: Build check
Expand Down
5 changes: 5 additions & 0 deletions devops/vaults.env
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ VUE_APP_KEYCLOAK_AUTH_URL="op://keycloak/$APP_ENV/base/KEYCLOAK_AUTH_BASE_URL"
VUE_APP_KEYCLOAK_REALM="op://keycloak/$APP_ENV/base/KEYCLOAK_REALMNAME"
VUE_APP_KEYCLOAK_CLIENTID="op://keycloak/$APP_ENV/entity-web/UI_KEYCLOAK_RESOURCE_NAME"

#google analytics
NUXT_GTAG_ID="op://google-analytics/$APP_ENV/developer/GTAG"
NUXT_GTAG_DEBUG="op://google-analytics/$APP_ENV/developer/GTAG_DEBUG"
NUXT_GTM_ID="op://google-analytics/$APP_ENV/developer/GTM"

# vaults sentry
VUE_APP_SENTRY_DSN="op://sentry/$APP_ENV/btr-web/SENTRY_DSN"
22 changes: 21 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ export default defineNuxtConfig({
imports: {
dirs: ['enums', 'interfaces', 'stores']
},
modules: ['@nuxt/ui', '@nuxtjs/i18n', '@pinia/nuxt', '@nuxtjs/tailwindcss'],
modules: [
'@nuxt/ui',
'@nuxtjs/i18n',
'@pinia/nuxt',
'@nuxtjs/tailwindcss',
// Only load GTM and GTag modules if not in test environment
...(process.env.CYPRESS ? [] : [
'@zadigetvoltaire/nuxt-gtm',
'nuxt-gtag'
])
],
typescript: {
tsConfig: {
compilerOptions: {
Expand All @@ -44,6 +54,16 @@ export default defineNuxtConfig({
{ code: 'en', file: 'en.json' }
]
},
gtm: {
enabled: !!process.env.NUXT_GTM_ID?.trim(),
id: process.env.NUXT_GTM_ID?.trim() as string,
debug: true,
defer: true
},
gtag: {
enabled: !!process.env.NUXT_GTAG_ID?.trim(),
id: process.env.NUXT_GTAG_ID?.trim()
},
runtimeConfig: {
public: {
// Keys within public, will be also exposed to the client-side
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bcros-business-dashboard",
"private": true,
"type": "module",
"version": "1.0.8",
"version": "1.0.9",
"scripts": {
"build": "nuxt generate",
"build:local": "nuxt build",
Expand Down Expand Up @@ -51,10 +51,12 @@
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/tailwindcss": "^6.12.0",
"@vue/test-utils": "^2.4.6",
"@zadigetvoltaire/nuxt-gtm": "^0.0.13",
"cypress": "^13.10.0",
"cypress-axe": "^1.5.0",
"happy-dom": "^14.12.0",
"jsdom": "^24.1.0",
"nuxt-gtag": "3.0.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0",
"vitest-environment-nuxt": "^1.0.0",
Expand Down
Loading