Skip to content

Commit 84e683b

Browse files
committed
feat: add cosui
1 parent d37c0d5 commit 84e683b

1,848 files changed

Lines changed: 177938 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# https://github.com/jokeyrhyme/standard-editorconfig
4+
5+
# top-most EditorConfig file
6+
root = true
7+
8+
# defaults
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_size = 4
15+
indent_style = space
16+
17+
[*.md]
18+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: [
5+
'@typescript-eslint'
6+
],
7+
parserOptions: {
8+
project: [
9+
'tsconfig.json',
10+
'packages/cosmic/tsconfig.json',
11+
'packages/cosmic-card/tsconfig.json',
12+
'packages/cosmic-dqa/tsconfig.json',
13+
'packages/cosmic-dynamic-ui/tsconfig.json',
14+
'packages/cosmic-chat/tsconfig.json',
15+
'packages/cosmic-shop/tsconfig.json'
16+
]
17+
},
18+
extends: [
19+
'@ecomfe/eslint-config',
20+
'@ecomfe/eslint-config/typescript'
21+
// '@ecomfe/eslint-config/san',
22+
// 'plugin:san/recommended'
23+
],
24+
rules: {
25+
'comma-dangle': ['error', 'never']
26+
}
27+
};

.gitignore

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
dist
5+
tmp
6+
output
7+
lib
8+
9+
# dependencies
10+
node_modules
11+
12+
# IDE - VSCode
13+
.cursor/*
14+
.vscode/*
15+
!.vscode/settings.json
16+
!.vscode/tasks.json
17+
!.vscode/launch.json
18+
!.vscode/extensions.json
19+
20+
.cursor
21+
22+
# misc
23+
coverage
24+
npm-debug.log
25+
yarn-error.log
26+
.pnpm-debug.log
27+
28+
# System Files
29+
.DS_Store
30+
Thumbs.db
31+
32+
.env
33+
.env.mobile
34+
.env.pc
35+
.env.mobile.hoth
36+
.env.pc.hoth
37+
38+
# e2e
39+
playwright-report
40+
browsers
41+
test-results
42+
e2e-coverage
43+
44+
# Tests
45+
/.nyc_output
46+
47+
# IDEs and editors
48+
/.idea
49+
.project
50+
.classpath
51+
.c9/
52+
*.launch
53+
.settings/
54+
*.sublime-workspace
55+
56+
.data
57+
.data/*
58+
/files
59+
/ormconfig.json
60+
/packages/server/db
61+
62+
# ignore documents generated by e2e testing
63+
/**/e2e-cache.json
64+
/**/.*.ts
65+
66+
### Vim ###
67+
# Swap
68+
[._]*.s[a-v][a-z]
69+
[._]*.sw[a-p]
70+
[._]s[a-rt-v][a-z]
71+
[._]ss[a-gi-z]
72+
[._]sw[a-p]
73+
# Session
74+
Session.vim
75+
Sessionx.vim
76+
# Temporary
77+
.netrwhist
78+
*~
79+
# Persistent undo
80+
[._]*.un~
81+
types

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
sh .git/hooks/commit-msg "$@"

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.npmrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
registry=https://registry.npmjs.org
2+
# https://pnpm.io/zh/cli/run#%E4%B8%8E-npm-run-%E7%9A%84%E5%B7%AE%E5%BC%82
3+
enable-pre-post-scripts=true
4+
strict-peer-dependencies=false
5+
ignore-workspace-root-check=true
6+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1

.stylelintrc

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"extends": "stylelint-config-recommended-less",
3+
"plugins": [
4+
"stylelint-order"
5+
],
6+
"ignoreFiles": [
7+
"**/token/**/*"
8+
],
9+
"rules": {
10+
"color-hex-length": "short",
11+
"color-hex-case": "lower",
12+
"comment-empty-line-before": [
13+
"always",
14+
{
15+
"ignore": [
16+
"stylelint-commands"
17+
],
18+
"except": [
19+
"first-nested"
20+
]
21+
}
22+
],
23+
"selector-max-empty-lines": 1,
24+
"no-descending-specificity": null,
25+
"selector-pseudo-class-no-unknown": null,
26+
"font-family-no-missing-generic-family-keyword": null,
27+
"value-list-comma-space-after": "always-single-line",
28+
"order/properties-order": [
29+
"position",
30+
"top",
31+
"right",
32+
"bottom",
33+
"left",
34+
"z-index",
35+
"display",
36+
"justify-content",
37+
"align-items",
38+
"float",
39+
"clear",
40+
"overflow",
41+
"overflow-x",
42+
"overflow-y",
43+
"margin",
44+
"margin-top",
45+
"margin-right",
46+
"margin-bottom",
47+
"margin-left",
48+
"border",
49+
"border-style",
50+
"border-width",
51+
"border-color",
52+
"border-top",
53+
"border-top-style",
54+
"border-top-width",
55+
"border-top-color",
56+
"border-right",
57+
"border-right-style",
58+
"border-right-width",
59+
"border-right-color",
60+
"border-bottom",
61+
"border-bottom-style",
62+
"border-bottom-width",
63+
"border-bottom-color",
64+
"border-left",
65+
"border-left-style",
66+
"border-left-width",
67+
"border-left-color",
68+
"border-radius",
69+
"padding",
70+
"padding-top",
71+
"padding-right",
72+
"padding-bottom",
73+
"padding-left",
74+
"width",
75+
"min-width",
76+
"max-width",
77+
"height",
78+
"min-height",
79+
"max-height",
80+
"font-size",
81+
"font-family",
82+
"font-weight",
83+
"text-align",
84+
"text-justify",
85+
"text-indent",
86+
"text-overflow",
87+
"text-decoration",
88+
"white-space",
89+
"color",
90+
"background",
91+
"background-position",
92+
"background-repeat",
93+
"background-size",
94+
"background-color",
95+
"background-clip",
96+
"opacity",
97+
"filter",
98+
"list-style",
99+
"outline",
100+
"visibility",
101+
"box-shadow",
102+
"text-shadow",
103+
"resize",
104+
"transition"
105+
]
106+
}
107+
}

0 commit comments

Comments
 (0)