Skip to content

Commit

Permalink
Refactor project to Monorepo and TypeScript (opentiny#90)
Browse files Browse the repository at this point in the history
* fix(tiny-vue): TinyVue工程momorepo改造[WI2029]

Match-id-2e9669527b4f9d10ba441ea7a204dc1627ab0420

* fix(tiny-vue): TinyVue工程momorepo改造[WI2029]

Match-id-a3c037ae0147e6ef27df417b09fff18d548a5fa7

* fix(tiny-vue): 修改license[WI2029]

Match-id-646d905fcfedf0b9ceb147d9ce288916e3c78c45

* fix(tiny-vue): 修改package.json[WI2029]

Match-id-8e0d6161964178ca68ee111f3bb0c60e27d9f3e0

* fix: fix conflict

---------

Co-authored-by: OpenTiny <[email protected]>
  • Loading branch information
kagol and h-ivy authored Mar 28, 2023
1 parent 4d34fe3 commit df4a5d1
Show file tree
Hide file tree
Showing 9,201 changed files with 281,890 additions and 161,699 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 10 additions & 0 deletions .depcheckrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ignores:
# Unused dependencies

# Unused devDependencies

# Missing dependencies


ignore-patterns:
- "node_modules"
6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
dist
runtime
runtime
dist-vue2/
dist-vue3/
node_modules
examples/docs/public/assets/map/js
94 changes: 0 additions & 94 deletions .eslintrc

This file was deleted.

42 changes: 42 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* eslint-env node */

/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: '@antfu',
rules: {
'vue/component-tags-order': ['error', {
order: [['script', 'template'], 'style'],
}],
'vue/order-in-components': 'off',
'vue/component-name-in-template-casing': 'off',
'vue/custom-event-name-casing': 'off',
'vue/quote-props': 'off',
'vue/attributes-order': 'off',
'vue/prop-name-casing': 'off',
'vue/html-self-closing': 'off',
'vue/prefer-separate-static-class': 'off',
'vue/comma-dangle': 'off',
'vue/prefer-template': 'off',
'curly': 'off',
'sort-imports': 'off',
'prefer-template': 'off',
'arrow-parens': 'off',
'operator-linebreak': 'off',
'antfu/if-newline': 'off',
'import/order': 'off',
'import/no-duplicates': 'off',
'quote-props': 'off',
'prefer-const': 'off',
'@typescript-eslint/comma-dangle': 'off',
// '@typescript-eslint/indent': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/brace-style': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
},
}
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text=auto eol=lf
*.ts linguist-detectable=false
*.css linguist-detectable=false
*.scss linguist-detectable=false
*.js linguist-detectable=true
*.vue linguist-detectable=true
33 changes: 21 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
.DS_Store
node_modules
dist/
dist2/
dist2.7/
dist3/
allDist/
packages/**/runtime/
packages/**/runtime
coverage/

/packages/base.js
/packages/chart.js
/packages/core.js
/packages/index.js
/packages/pc.js
/packages/mobile.js
/packages/vue-icon-saas/src
/packages/vue-icon-saas/index.ts
/packages/vue/index.ts
/packages/vue/pc.ts
/packages/vue/mobile.ts
/packages/vue/app.ts
/packages/vue-icon/src/index.ts

/examples/**/playwright-report
/examples/docs/.vuepress/.cache/
/examples/docs/.vuepress/.temp/
/examples/docs/.vitepress/cache
vite.config.ts.timestamp*
vitest.config.ts.timestamp*

# local env
.env.local
Expand All @@ -20,12 +31,11 @@ coverage/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-lock.yaml

# Editor directories and files
.idea
.history
.vscode
.cloudbuild
*.suo
*.ntvs*
*.njsproj
Expand All @@ -34,8 +44,7 @@ yarn-error.log*
*.log
*.stackdump

yarn.lock
package-lock.json

tgzs
*.tgz


16 changes: 16 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": [
"development"
],
"hints": {
"compat-api/html": [
"default",
{
"ignore": [
"script[type=module]"
]
}
],
"axe/language": "off"
}
}
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
shell-emulator=true
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
11 changes: 8 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Except myapp folder:
dist/
public/
dist
dist-vue2
dist-vue3
node_modules
internal/template
internal/runtime
examples/docs/public/static
pnpm-lock.yaml
26 changes: 22 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
semi: false
singleQuote: true
printWidth: 160
trailingComma: none
{
"semi": false,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "none",
"quoteProps": "preserve",
"endOfLine": "auto",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"jsxSingleQuote": false,
"useTabs": false,
"tabWidth": 2,
"proseWrap": "preserve",
"overrides": [
{
"files": ".prettierrc",
"options": {
"parser": "json"
}
}
]
}
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"vue.volar",
"vue.vscode-typescript-vue-plugin",
"davidanson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"ms-playwright.playwright"
],
"unwantedRecommendations": [
"esbenp.prettier-vscode",
"octref.vetur"
]
}
72 changes: 72 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"editor.quickSuggestions": {
"strings": true
},
"markdownlint.config": {
"no-inline-html": true,
"first-line-heading": true
},
"typescript.tsdk": "node_modules/typescript/lib",
"prettier.enable": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"better-comments.highlightPlainText": true,
"better-comments.tags": [
{
"tag": "#v",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//",
"color": "#474747",
"strikethrough": true,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
}
]
}
Loading

0 comments on commit df4a5d1

Please sign in to comment.