Skip to content

Commit

Permalink
chore: 初始化 v2
Browse files Browse the repository at this point in the history
  • Loading branch information
shanyuhai123 committed Mar 21, 2021
1 parent 89045e4 commit 0d53fa0
Show file tree
Hide file tree
Showing 53 changed files with 27,084 additions and 1,248 deletions.
14 changes: 11 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
es2020: true,
node: true,
jest: true
},
extends: [
'standard'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12
ecmaVersion: 11,
sourceType: 'module'
},
plugins: [
'@typescript-eslint'
],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error'
}
}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@ dist
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
.vscode-test

# dist
/lib
packages/vuepress-plugin-auto-sidebar/lib
.temp
70 changes: 0 additions & 70 deletions index.js

This file was deleted.

4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node'
}
7 changes: 7 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"npmClient": "yarn",
"packages": [
"packages/*"
],
"version": "0.0.0"
}
10 changes: 0 additions & 10 deletions lib/options.js

This file was deleted.

180 changes: 0 additions & 180 deletions lib/utils.js

This file was deleted.

35 changes: 13 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
{
"name": "vuepress-plugin-auto-sidebar",
"version": "1.5.0",
"description": "A vuepress plugin for generate sidebar",
"keywords": [
"vuepress",
"auto-sidebar",
"sidebar"
],
"main": "index.js",
"private": true,
"version": "1.0.0",
"author": "shanyuhai123",
"license": "MIT",
"directories": {
"lib": "lib"
},
"scripts": {
"test": "jest --watchAll --verbose",
"lint": "eslint --ext .js ./ --fix"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shanyuhai123/vuepress-plugin-auto-sidebar.git"
Expand All @@ -26,14 +12,19 @@
},
"homepage": "https://github.com/shanyuhai123/vuepress-plugin-auto-sidebar#readme",
"devDependencies": {
"eslint": "^7.15.0",
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"eslint": "^7.22.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"jest": "^25.1.0"
},
"dependencies": {
"colors": "^1.4.0"
"eslint-plugin-promise": "^4.3.1",
"jest": "^26.6.3",
"lerna": "^4.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.3",
"typescript": "3.8.3",
"vuepress-types": "^0.9.4"
}
}
11 changes: 11 additions & 0 deletions packages/vuepress-docs-gh-pages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# `vuepress-docs-gh-pages`

> TODO: description
## Usage

```
const vuepressDocsGhPages = require('vuepress-docs-gh-pages');
// TODO: DEMONSTRATE API
```
Loading

0 comments on commit 0d53fa0

Please sign in to comment.