Skip to content

add dotfiles #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
['build', 'ci', 'chore', 'deps', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
],
},
};
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
end_of_line = unset
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass

# windows 用户可以使用下面的设置支持在 cross-env 设置环境变量时使用命令
# script-shell = "C:\\windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
# 例如:cross-env HASH=$(git show --no-patch --format=%h) node echo.js
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.13.0
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"endOfLine": "auto",
"printWidth": 100,
"overrides": [
{
"files": "*.md",
"options": {
"tabWidth": 2
}
}
]
}
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
cache:
- npm
install:
- npm
script:
- npm test
15 changes: 15 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"recommendations": [
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"dsznajder.es7-react-js-snippets",
"mrmlnc.vscode-scss"
],
"unwantedRecommendations": [
"hookyqr.beautify",
"ms-vscode.vscode-typescript-tslint-plugin",
"dbaeumer.jshint"
]
}
58 changes: 58 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
// stylelint 扩展自身的校验就够了
"css.validate": false,
"less.validate": false,
"scss.validate": false,
// 使用本地安装的 TypeScript 替代 VSCode 内置的来提供智能提示
"typescript.tsdk": "./node_modules/typescript/lib",
// 指定哪些文件不参与搜索
"search.exclude": {
"**/node_modules": true,
"dist": true,
"yarn.lock": true
},
// 指定哪些文件不被 VSCode 监听,预防启动 VSCode 时扫描的文件太多,导致 CPU 占用过高
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/dist/**": true
},
// 配置 VScode 使用 prettier 的 formatter
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [2020] [HaoChengYu,LiuZiYuan]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 项目简介:
<p>&nbsp;&nbsp;&nbsp;&nbsp;本项目中的记录了一些学习笔记共分为三大部分及一些补充,Java\前端\简单常用的算法\数据结构。希望可以帮到一些同学。
<p>&nbsp;&nbsp;&nbsp;&nbsp;:rocket: 本项目中的记录了一些学习笔记共分为三大部分及一些补充,Java\前端\简单常用的算法\数据结构。希望可以帮到一些同学。:heart:
</p>
<p>
Java部分:分别有
Expand Down
145 changes: 81 additions & 64 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,65 +1,82 @@
module.exports = {
base: '/Java-JavaScript-Learn-Note/',
title: 'K-D-Union',
description: 'Welcome to K-D-Union\'\s World',
cache: false,
head: [
['link', {
rel: 'icon',
href: '/icon.jpg'
}]
],
// 其它配置
themeConfig: {
search: true,
searchMaxSuggestions: 10,
sidebar: 'auto',
repo: 'https://github.com/K-D-Union/Java-JavaScript-Learn-Note.git',
repoLabel: 'Github',
lastUpdated: '最近更新时间',
smoothScroll: true,
nav: [{
text: '首页',
link: '/'
},
{
text: 'Java基础',
link: '/JavaIndex/'
},
{
text: 'Java框架',
items: [{
text: 'Spring',
link: '/Spring/'
}, {
text: 'SpringMVC',
link: '/SpringMVC/'
}, {
text: 'SpringBoot',
link: '/SpringBoot/'
}, {
text: 'SpringCloud',
link: '/SpringCloud/'
}]
},
{
text: 'Java源码',
link: '/JavaSoundCode/'
},
{
text: '前端框架',
items: [{
text: 'Vue',
link: '/Vue/'
}, {
text: 'TypeScript',
link: '/TypeScript/'
}, {
text: 'React',
link: '/React/'
}]
},
],
},
plugins: ['@vuepress/active-header-links', '@vuepress/back-to-top', '@vuepress/nprogress'],
}
base: "/Java-JavaScript-Learn-Note/",
title: "K-D-Union",
description: "Welcome to K-D-Union's World",
cache: false,
head: [
[
"link",
{
rel: "icon",
href: "/icon.jpg"
}
]
],
// 其它配置
themeConfig: {
search: true,
searchMaxSuggestions: 10,
sidebar: "auto",
repo: "https://github.com/K-D-Union/Java-JavaScript-Learn-Note.git",
repoLabel: "Github",
lastUpdated: "最近更新时间",
smoothScroll: true,
nav: [
{
text: "首页",
link: "/"
},
{
text: "Java基础",
link: "/JavaIndex/"
},
{
text: "Java框架",
items: [
{
text: "Spring",
link: "/Spring/"
},
{
text: "SpringMVC",
link: "/SpringMVC/"
},
{
text: "SpringBoot",
link: "/SpringBoot/"
},
{
text: "SpringCloud",
link: "/SpringCloud/"
}
]
},
{
text: "Java源码",
link: "/JavaSoundCode/"
},
{
text: "前端框架",
items: [
{
text: "Vue",
link: "/Vue/"
},
{
text: "TypeScript",
link: "/TypeScript/"
},
{
text: "React",
link: "/React/"
}
]
}
]
},
plugins: [
"@vuepress/active-header-links",
"@vuepress/back-to-top",
"@vuepress/nprogress"
]
};
Loading