Skip to content

Commit

Permalink
finish first update step 🎉🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
shalldie committed Feb 20, 2020
1 parent cbb4f2f commit 213284b
Show file tree
Hide file tree
Showing 63 changed files with 22,493 additions and 2,238 deletions.
22 changes: 0 additions & 22 deletions .babelrc

This file was deleted.

2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 1%
last 2 versions
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
build
__tests__
/scripts
*.d.ts
*.html
32 changes: 32 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
indent: [
'error',
4,
{
SwitchCase: 1
}
],
'prefer-const': ['error', { destructuring: 'all' }],
'@typescript-eslint/no-explicit-any': 'off',
'vue/html-indent': ['error', 4],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/camelcase': 'off'
}
};
76 changes: 18 additions & 58 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,62 +1,22 @@
# Logs
logs
*.log
.DS_Store
node_modules
/temp
# /dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.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 (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# 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

.DS_Store

package-lock.json
# Editor directories and files
.idea
# .vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
17 changes: 0 additions & 17 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npm.taobao.org
10 changes: 0 additions & 10 deletions .postcssrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 4,
"endOfLine": "auto",
"printWidth": 120
}
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"prettier.disableLanguages": [
"html"
]
}
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vue-git-comment

[![npm](https://img.shields.io/npm/v/vue-git-comment.svg)](https://www.npmjs.com/package/vue-git-comment) ![Github file size](https://img.shields.io/github/size/shalldie/vue-git-comment/dist/vue-git-comment.js.svg)
[![npm][npm_version_image]][npm_version_url] ![Github file size](https://img.shields.io/github/size/shalldie/vue-git-comment/dist/vue-git-comment.js.svg)

Fork from [GitHub](https://github.com/shalldie/vue-git-comment)

Expand All @@ -17,7 +17,7 @@ link:
```html
<script src="lib/vue.js"></script>

<link href="dist/vue-git-comment.css" rel="stylesheet">
<link href="dist/vue-git-comment.css" rel="stylesheet" />
<script src="dist/vue-git-comment.js"></script>
```

Expand Down Expand Up @@ -124,3 +124,17 @@ gitalk 我也特地去了解了一哈,也是非常优秀的一个项目。但
毕竟这个项目刚做好,这么优秀的项目,就让我一个人用好了 0_o

## Enjoy it! >\_<#@!

[npm_version_image]: https://img.shields.io/npm/v/vue-git-comment.svg
[npm_version_url]: https://www.npmjs.com/package/vue-git-comment

[cdnjs-version-image]: https://img.shields.io/cdnjs/v/gitalk.svg?style=flat-square
[cdnjs-version-url]: https://cdnjs.com/libraries/gitalk
[david-dm-image]: https://david-dm.org/gitalk/gitalk.svg?style=flat-square
[david-dm-url]: https://david-dm.org/gitalk/gitalk
[travis-image]: https://img.shields.io/travis/gitalk/gitalk/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/gitalk/gitalk
[coveralls-image]: https://img.shields.io/coveralls/gitalk/gitalk/master.svg?style=flat-square
[coveralls-url]: https://coveralls.io/github/gitalk/gitalk
[gzip-size]: http://img.badgesize.io/https://unpkg.com/gitalk/dist/gitalk.min.js?compression=gzip&style=flat-square
[gzip-url]: https://unpkg.com/gitalk/dist/gitalk.min.js
11 changes: 11 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
// [
// '@vue/cli-plugin-babel/preset',
// {
// useBuiltIns: false
// }
// ]
]
};
41 changes: 0 additions & 41 deletions build/build.js

This file was deleted.

54 changes: 0 additions & 54 deletions build/check-versions.js

This file was deleted.

Loading

0 comments on commit 213284b

Please sign in to comment.