Skip to content

Commit 57fcc43

Browse files
committed
feat(init): initial commit
1 parent a8dd5e3 commit 57fcc43

Some content is hidden

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

65 files changed

+12472
-2
lines changed

.branchlintrc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"branchNameLinter": {
3+
"prefixes": [
4+
"feature",
5+
"hotfix",
6+
"release",
7+
"renovate",
8+
"beta",
9+
"next"
10+
],
11+
"suggestions": {
12+
"features": "feature",
13+
"feat": "feature",
14+
"fix": "hotfix",
15+
"releases": "release"
16+
},
17+
"banned": [
18+
"wip"
19+
],
20+
"skip": [
21+
"skip-ci"
22+
],
23+
"disallowed": [
24+
"main",
25+
"master",
26+
"next",
27+
"staging"
28+
],
29+
"seperator": "/",
30+
"msgBranchBanned": "Branches with the name \"%s\" are not allowed.",
31+
"msgBranchDisallowed": "Pushing to \"%s\" is not allowed, use git-flow.",
32+
"msgPrefixNotAllowed": "Branch prefix \"%s\" is not allowed.",
33+
"msgPrefixSuggestion": "Instead of \"%s\" try \"%s\".",
34+
"msgSeperatorRequired": "Branch \"%s\" must contain a seperator \"%s\"."
35+
}
36+
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
insert_final_newline = false
14+
trim_trailing_whitespace = false
15+

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
.history
15+
16+
# Editor directories and files
17+
.vscode/*
18+
!.vscode/extensions.json
19+
.idea
20+
.DS_Store
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln
25+
*.sw?
26+
27+
# docs
28+
docs/.vitepress/dist
29+
docs/.vitepress/cache

.husky/commit-msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
export NVM_DIR="$HOME/.nvm"
4+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
5+
6+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
export NVM_DIR="$HOME/.nvm"
4+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
5+
6+
npx --no-install lint-staged

.husky/pre-push

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
export NVM_DIR="$HOME/.nvm"
4+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
5+
6+
npx branch-name-lint .branchlintrc

.lintstagedrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.(js|vue)": [
3+
"npm run lint:es"
4+
]
5+
}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.15.0

.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
trailingComma: 'none',
5+
singleQuote: true,
6+
semi: true,
7+
printWidth: 120
8+
};

.releaserc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"branches": [
3+
{
4+
"name": "main",
5+
"channel": "latest",
6+
"prerelease": false
7+
},
8+
{
9+
"name": "beta",
10+
"prerelease": true
11+
},
12+
{
13+
"name": "next",
14+
"prerelease": true
15+
}
16+
],
17+
"plugins": [
18+
"@semantic-release/commit-analyzer",
19+
"@semantic-release/release-notes-generator",
20+
[
21+
"@semantic-release/changelog",
22+
{
23+
"changelogFile": "CHANGELOG.md",
24+
"changelogTitle": "# Project Changelog"
25+
}
26+
],
27+
[
28+
"@semantic-release/npm"
29+
],
30+
[
31+
"@semantic-release/git",
32+
{
33+
"assets": [
34+
"CHANGELOG.md",
35+
"CHANGELOG_PROJECT.md",
36+
"package.json",
37+
"package-lock.json",
38+
"npm-shrinkwrap.json"
39+
]
40+
}
41+
],
42+
[
43+
"@semantic-release/github"
44+
]
45+
]
46+
}

0 commit comments

Comments
 (0)