Skip to content

Commit

Permalink
chore(eden): 组件库基建
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Dec 31, 2023
1 parent 088458d commit aceb667
Show file tree
Hide file tree
Showing 25 changed files with 1,516 additions and 156 deletions.
617 changes: 474 additions & 143 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions lib/eden-design/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"env": {
"browser": true,
"es2021": true
},
"root": true,
"parser": "vue-eslint-parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-essential",
"@vue/eslint-config-typescript",
"prettier"
],
"plugins": ["vue", "import", "sort-exports", "@typescript-eslint"],
"rules": {
"vue/no-multiple-template-root": "off",
"vue/multi-word-component-names": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["error", { "code": 120 }],
"linebreak-style": ["error", "unix"],
"semi": ["warn", "always"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"sort-exports/sort-exports": ["error", { "sortDir": "asc" }],
"sort-imports": [
"error",
{
"ignoreCase": false,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["all", "single", "multiple", "none"]
}
]
}
}
83 changes: 83 additions & 0 deletions lib/eden-design/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# OS X temporary files
.DS_Store

# IntelliJ IDEA project files; if you want to commit IntelliJ settings, this recipe may be helpful:
# https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
.idea/
*.iml

# Rush temporary files
common/deploy/
common/temp/
common/autoinstallers/*/.npmrc
**/.rush/temp/

# Heft temporary files
.heft
pnpm-lock.yaml
dist
**/config/json/
# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
6 changes: 6 additions & 0 deletions lib/eden-design/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": false,
"arrowParens": "avoid",
"trailingComma": "es5",
"useTabs": false
}
1 change: 1 addition & 0 deletions lib/eden-design/docs/public/eden-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions lib/eden-design/index.html
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>Eden Components</title>
</head>
<body>
<div id="app" class="flex w-full gap-[32px]"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit aceb667

Please sign in to comment.