-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1649376
commit efced7e
Showing
41 changed files
with
710 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* eslint-env node */ | ||
require('@rushstack/eslint-patch/modern-module-resolution') | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/eslint-config-typescript', | ||
'@vue/eslint-config-prettier/skip-formatting' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"trailingComma": "none" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference types="vite/client" /> | ||
declare module '*.md' { | ||
// "unknown" would be more detailed depends on how you structure frontmatter | ||
const attributes: Record<string, unknown> | ||
|
||
// When "Mode.TOC" is requested | ||
const toc: { level: string; content: string }[] | ||
|
||
// When "Mode.HTML" is requested | ||
const html: string | ||
const markdown: string | ||
|
||
// When "Mode.RAW" is requested | ||
const raw: string | ||
|
||
// When "Mode.Vue" is requested | ||
import { ComponentOptions, Component } from 'vue' | ||
const VueComponent: ComponentOptions | ||
const VueComponentWith: (components: Record<string, Component>) => ComponentOptions | ||
|
||
// Modify below per your usage | ||
export { attributes, toc, html, markdown, VueComponent, VueComponentWith } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,45 @@ | ||
{ | ||
"name": "website", | ||
"version": "1.0.0", | ||
"description": "简单的 vue 3 包开发工程实例模板 vue-monorepo-template。", | ||
"private": true, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint", | ||
"map": "source-map-explorer dist/js/*.js --html dist/dependencies.html" | ||
"dev": "vite", | ||
"build": "run-p type-check build-only", | ||
"preview": "vite preview", | ||
"test:unit": "vitest", | ||
"build-only": "vite build", | ||
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false", | ||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", | ||
"format": "prettier --write src/" | ||
}, | ||
"dependencies": { | ||
"@vue-monorepo-template/simple": "1.0.0", | ||
"@vue-monorepo-template/base": "1.0.0", | ||
"@uivjs/vue-github-corners": "1.0.1", | ||
"@uivjs/vue-markdown-preview": "1.0.3", | ||
"core-js": "^3.6.5", | ||
"vue": "^3.0.0", | ||
"vue-router": "^4.0.0-0" | ||
"vue": "^3.2.47", | ||
"vue-router": "^4.1.6" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "~5.0.0", | ||
"@vue/cli-plugin-eslint": "~5.0.0", | ||
"@vue/cli-plugin-router": "~5.0.0", | ||
"@vue/cli-service": "~5.0.0", | ||
"@vue/compiler-sfc": "^3.0.0", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-vue": "^7.0.0", | ||
"raw-loader": "4.0.2", | ||
"source-map-explorer": "2.5.3" | ||
}, | ||
"keywords": [ | ||
"vue", | ||
"vue3", | ||
"simple", | ||
"component", | ||
"components", | ||
"vue-monorepo-template", | ||
"ui", | ||
"css", | ||
"uikit", | ||
"vue-ui", | ||
"framework" | ||
], | ||
"eslintConfig": { | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"plugin:vue/vue3-essential", | ||
"eslint:recommended" | ||
], | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
}, | ||
"rules": { | ||
"no-debugger": "off" | ||
} | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not dead" | ||
] | ||
"@rushstack/eslint-patch": "^1.2.0", | ||
"@types/jsdom": "^21.1.0", | ||
"@types/node": "^18.14.2", | ||
"@vitejs/plugin-vue": "^4.0.0", | ||
"@vitejs/plugin-vue-jsx": "^3.0.0", | ||
"@vue/eslint-config-prettier": "^7.1.0", | ||
"@vue/eslint-config-typescript": "^11.0.2", | ||
"@vue/test-utils": "^2.3.0", | ||
"@vue/tsconfig": "^0.1.3", | ||
"vite-plugin-markdown": "^2.2.0-2", | ||
"style-to-object": "^0.4.1", | ||
"eslint": "^8.34.0", | ||
"eslint-plugin-vue": "^9.9.0", | ||
"jsdom": "^21.1.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.8.4", | ||
"typescript": "~4.8.4", | ||
"vite": "^4.1.4", | ||
"vitest": "^0.29.1", | ||
"vue-tsc": "^1.2.0" | ||
} | ||
} |
Oops, something went wrong.