Skip to content

Commit a5516a4

Browse files
committed
Split frontend into 2 modules.
1 parent 727cec6 commit a5516a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+460
-112
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ module.exports = {
3333
{
3434
target: "apps/backend/",
3535
from: "apps/frontend/",
36-
message: "Backend should not import from frontend. Use hotel-management-shared instead.",
36+
message: "Backend should not import from frontend. Move code to libs and import from there instead.",
3737
},
3838
{
3939
target: "apps/frontend/",
4040
from: "apps/backend/",
41-
message: "Frontend should not import from backend. Use hotel-management-shared instead.",
41+
message: "Frontend should not import from backend. Move code to libs and import from there instead.",
4242
},
4343
],
4444
},

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
!.yarn/plugins
55
.pnp.*
66

7+
# rollup
8+
.rollup.cache
9+
710
# Logs
811
logs
912
*.log
File renamed without changes.

apps/frontend/core/e2e/vue.spec.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/frontend/core/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "hotel-management-frontend-core",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "run -T vite",
8+
"build": "run -T run-p type-check build-only",
9+
"clean": "run -T rimraf ./dist",
10+
"preview": "run -T vite preview",
11+
"test:unit": "run -T vitest --environment jsdom --root src/",
12+
"test:e2e": "run -T playwright test",
13+
"build-only": "run -T vite build",
14+
"type-check": "run -T vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
15+
"lint": "run -T eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
16+
},
17+
"dependencies": {
18+
"hotel-management-frontend-rooms": "workspace:apps/frontend/rooms",
19+
"hotel-management-shared": "workspace:libs/shared"
20+
}
21+
}

0 commit comments

Comments
 (0)