Skip to content

Commit 882d567

Browse files
docs: add projects (#216)
* docs: add projects * docs(projects): add vue-router * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent f69a142 commit 882d567

File tree

21 files changed

+388
-83
lines changed

21 files changed

+388
-83
lines changed

.github/workflows/auto-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: [main]
88
paths:
99
- 'packages/docs/**'
10+
- 'packages/projects/**'
1011
- '!packages/docs/**/*.spec.ts'
1112

1213
# Allows you to run this workflow manually from the Actions tab
@@ -38,6 +39,8 @@ jobs:
3839
run: pnpm i --no-frozen-lockfile
3940
- name: Build site
4041
run: pnpm build
42+
- name: Build projects
43+
run: pnpm build:projects
4144
- name: Setup Pages
4245
uses: actions/configure-pages@v2
4346
- name: Build with Jekyll

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
],
2727
"scripts": {
2828
"dev": "pnpm -F docs dev",
29+
"dev:projects": "pnpm -F projects dev",
2930
"build": "pnpm -F docs build",
31+
"build:projects": "pnpm -F projects build",
3032
"build:lib": "pnpm -F @opentiny/fluent-editor build",
3133
"lint": "eslint . --cache",
3234
"lint:fix": "eslint . --fix",

packages/projects/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

packages/projects/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).

packages/projects/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

packages/projects/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "projects",
3+
"type": "module",
4+
"version": "0.0.0",
5+
"private": true,
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@opentiny/fluent-editor": "workspace:^",
13+
"vue": "^3.5.13",
14+
"vue-router": "4"
15+
},
16+
"devDependencies": {
17+
"@vitejs/plugin-vue": "^5.2.1",
18+
"@vue/tsconfig": "^0.7.0",
19+
"typescript": "~5.6.2",
20+
"vite": "^6.0.5",
21+
"vue-tsc": "^2.2.0"
22+
}
23+
}

packages/projects/public/vite.svg

Lines changed: 1 addition & 0 deletions
Loading

packages/projects/src/App.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<RouterView />
3+
</template>
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)