Skip to content

Commit

Permalink
fix(ci): fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gearonix committed Oct 13, 2023
1 parent 752d301 commit f2d65a3
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ jobs:
branch: storybook-build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Initializing Playwright
run: npx playwright install

- name: Testing storybook in production
run: yarn nx run web-ui:storybook:test:production
1 change: 1 addition & 0 deletions apps/docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default defineConfig({
description: 'Online code editor built on Preact, Nest and Nx',
lastUpdated: true,
cleanUrls: true,
ignoreDeadLinks: true,

head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]],

Expand Down
4 changes: 3 additions & 1 deletion apps/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { h } from 'vue'
import Theme from 'vitepress/theme'
import './style.css'

localStorage.setItem('vitepress-theme-appearance', 'dark')
if (typeof localStorage !== 'undefined') {
localStorage.setItem('vitepress-theme-appearance', 'dark')
}

export default {
extends: Theme,
Expand Down
9 changes: 7 additions & 2 deletions apps/docs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
"build": {
"executor": "nx:run-commands",
"options": {
"command": "vitepress build",
"commands": [
"vitepress build",
"mkdir -p ../../dist/docs",
"mv .vitepress/dist ../../dist/docs"
],
"cwd": "apps/docs"
}
},
Expand All @@ -22,7 +26,8 @@
"options": {
"command": "vitepress preview",
"cwd": "apps/docs"
}
},
"dependsOn": ["build"]
}
}
}
6 changes: 3 additions & 3 deletions apps/server/service-auth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"compiler": "tsc",
"outputPath": "dist/apps/server/service-auth",
"generatePackageJson": true,
"main": "apps/server/service-auth/src/main.ts.template",
"main": "apps/server/service-auth/src/main.ts",
"tsConfig": "apps/server/service-auth/tsconfig.app.json",
"isolatedConfig": true,
"webpackConfig": "apps/server/service-auth/.config/webpack.ts.template",
"webpackConfig": "apps/server/service-auth/.config/webpack.ts",
"skipTypeCheck": true
},
"configurations": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/server/service-auth/.config/jest.ts.template",
"jestConfig": "apps/server/service-auth/.config/jest.ts",
"passWithNoTests": true
},
"configurations": {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,5 @@
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0",
"workbox-window": "^7.0.0"
},
"generators": "./generators.json"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { NodeEnv } from './node-env.enum'

export interface DatabaseConfig {
url: string
}
Expand Down
1 change: 0 additions & 1 deletion packages/api/common/src/modules/env/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ export {
KafkaConfig,
DatabaseConfig
} from './enviroment.interfaces'
export { NodeEnv } from './node-env.enum'
6 changes: 3 additions & 3 deletions tools/generators/src/microservice/files/project.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"compiler": "tsc",
"outputPath": "dist/apps/server/service-<%= name %>",
"generatePackageJson": true,
"main": "apps/server/service-<%= name %>/src/main.ts.template",
"main": "apps/server/service-<%= name %>/src/main.ts",
"tsConfig": "apps/server/service-<%= name %>/tsconfig.app.json",
"isolatedConfig": true,
"webpackConfig": "apps/server/service-<%= name %>/.config/webpack.ts.template",
"webpackConfig": "apps/server/service-<%= name %>/.config/webpack.ts",
"skipTypeCheck": true
},
"configurations": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/server/service-<%= name %>/.config/jest.ts.template",
"jestConfig": "apps/server/service-<%= name %>/.config/jest.ts",
"passWithNoTests": true
},
"configurations": {
Expand Down

0 comments on commit f2d65a3

Please sign in to comment.