Skip to content

Commit

Permalink
feat: migrate to monorepo (cuixueshe#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 authored Jan 16, 2023
1 parent 4308947 commit 72b0a55
Show file tree
Hide file tree
Showing 82 changed files with 542 additions and 445 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,5 @@ jobs:
- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Build
- name: Build with Turbo
run: pnpm build

- name: Unit-Test
run: pnpm test-unit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ npm-debug.log*
.pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
.turbo
Empty file added apps/backend/.gitkeep
Empty file.
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.
50 changes: 50 additions & 0 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "frontend",
"type": "module",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"test": "pnpm test-unit-run",
"test-unit": "vitest",
"test-component": "cypress open --component",
"test-e2e": "cross-env NODE_ENV=developer cypress open --e2e",
"test-unit-run": "vitest --run",
"test-component-run": "cypress run --component",
"test-e2e-run": "cross-env NODE_ENV=developer cypress run --e2e"
},
"dependencies": {
"@imengyu/vue3-context-menu": "^1.1.10",
"dexie": "^3.2.2",
"fuse.js": "^6.6.2",
"ink-mde": "^0.18.1",
"naive-ui": "^2.34.3",
"pinia": "^2.0.28",
"vue": "^3.2.45",
"vue-router": "4.1.6",
"vue3-emoji-picker": "^1.1.7",
"vuedraggable": "^4.1.0"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.13",
"@iconify-json/mdi": "^1.1.41",
"@iconify/vue": "^4.0.2",
"@peculiar/webcrypto": "^1.4.1",
"@unocss/reset": "^0.48.3",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vue/test-utils": "^2.2.7",
"@vueuse/core": "^9.10.0",
"cross-env": "^7.0.3",
"cypress": "^12.3.0",
"cypress-promise": "^1.1.0",
"jsdom": "^21.0.0",
"typescript": "^4.9.4",
"unocss": "^0.48.3",
"vite": "^4.0.4",
"vitest": "^0.27.0",
"vue-tsc": "^1.0.24"
}
}
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 vite.config.ts → apps/frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="vitest" />
import path from 'path'
import path from 'node:path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
Expand Down
47 changes: 6 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,26 @@
},
"scripts": {
"bootstrap": "cross-env CYPRESS_INSTALL_BINARY=0 pnpm i",
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"test": "pnpm test-unit-run",
"test-unit": "vitest",
"test-component": "cypress open --component",
"test-e2e": "cross-env NODE_ENV=developer cypress open --e2e",
"test-unit-run": "vitest --run",
"test-component-run": "cypress run --component",
"test-e2e-run": "cross-env NODE_ENV=developer cypress run --e2e",
"dev:fe": "pnpm -F frontend dev",
"build:fe": "pnpm -F frontend build",
"build": "turbo build",
"test": "pnpm -F frontend test",
"prepare": "simple-git-hooks",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"dep:up": "taze -I major"
},
"dependencies": {
"@imengyu/vue3-context-menu": "^1.1.10",
"dexie": "^3.2.2",
"fuse.js": "^6.6.2",
"ink-mde": "^0.18.1",
"naive-ui": "^2.34.3",
"pinia": "^2.0.28",
"vue": "^3.2.45",
"vue-router": "4.1.6",
"vue3-emoji-picker": "^1.1.7",
"vuedraggable": "^4.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.34.1",
"@commitlint/cli": "^17.4.1",
"@commitlint/config-conventional": "^17.4.0",
"@iconify-json/carbon": "^1.1.13",
"@iconify-json/mdi": "^1.1.41",
"@iconify/vue": "^4.0.2",
"@peculiar/webcrypto": "^1.4.1",
"@types/node": "^18.11.18",
"@unocss/reset": "^0.48.3",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vue/test-utils": "^2.2.7",
"@vueuse/core": "^9.10.0",
"cross-env": "^7.0.3",
"cypress": "^12.3.0",
"cypress-promise": "^1.1.0",
"eslint": "^8.31.0",
"jsdom": "^21.0.0",
"lint-staged": "^13.1.0",
"path": "^0.12.7",
"simple-git-hooks": "^2.8.1",
"taze": "^0.8.5",
"typescript": "^4.9.4",
"unocss": "^0.48.3",
"vite": "^4.0.4",
"vitest": "^0.27.0",
"vue-tsc": "^1.0.24"
"turbo": "^1.7.0",
"typescript": "^4.9.4"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged",
Expand Down
Empty file added packages/.gitkeep
Empty file.
Loading

0 comments on commit 72b0a55

Please sign in to comment.