Skip to content

Commit

Permalink
chore: add circleci, badge, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
BuptStEve committed Jan 29, 2019
1 parent 0559a36 commit 9a3e57f
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:latest

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
# - run: yarn test && npx codecov

# deploy
- add_ssh_keys:
fingerprints:
- "f4:67:c7:78:7e:41:42:dd:ef:24:63:eb:67:66:14:c0"

- run: yarn deploy
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<h1 align="center">vuepress-plugin-demo-code</h1>

<p align="center">
<a href="https://circleci.com/gh/BuptStEve/vuepress-plugin-demo-code/tree/master"><img src="https://img.shields.io/circleci/project/github/BuptStEve/vuepress-plugin-demo-code/master.svg" alt="Build Status"></a>
<a href="https://www.npmjs.com/package/vuepress-plugin-demo-code"><img src="https://img.shields.io/npm/v/vuepress-plugin-demo-code.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vuepress-plugin-demo-code"><img src="https://img.shields.io/npm/l/vuepress-plugin-demo-code.svg" alt="License"></a>
</p>

> demo-code plugin for vuepress.
借助这个插件,你可以通过下述的语法在展示 demo 的同时,将这段代码展示出来。
Expand Down
6 changes: 6 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<h1 align="center">vuepress-plugin-demo-code</h1>

<p align="center">
<a href="https://circleci.com/gh/BuptStEve/vuepress-plugin-demo-code/tree/master"><img src="https://img.shields.io/circleci/project/github/BuptStEve/vuepress-plugin-demo-code/master.svg" alt="Build Status"></a>
<a href="https://www.npmjs.com/package/vuepress-plugin-demo-code"><img src="https://img.shields.io/npm/v/vuepress-plugin-demo-code.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/vuepress-plugin-demo-code"><img src="https://img.shields.io/npm/l/vuepress-plugin-demo-code.svg" alt="License"></a>
</p>

> demo-code plugin for vuepress.
借助这个插件,你可以通过下述的语法在展示 demo 的同时,将这段代码展示出来。
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"tdd": "cross-env NODE_ENV=test jest --watch",
"test": "cross-env NODE_ENV=test jest",
"lint": "eslint --fix src/ test/",
"deploy": "yarn docs:build && gh-pages -m \"[ci skip]\" -d docs/.vuepress/dist",
"deploy": "yarn docs:build && gh-pages -u \"BuptStEve <[email protected]>\" -m \"[ci skip]\" -d docs/.vuepress/dist",
"pub": "npm publish"
},
"husky": {
Expand Down Expand Up @@ -38,28 +38,27 @@
]
},
"dependencies": {
"@vuepress/shared-utils": "^1.0.0-alpha.32",
"markdown-it-container": "^2.0.0",
"prismjs": "^1.15.0"
},
"devDependencies": {
"@commitlint/cli": "^7.3.2",
"@commitlint/cli": "^7.4.0",
"@commitlint/config-conventional": "^7.3.1",
"babel-eslint": "^10.0.1",
"codecov": "^3.1.0",
"cross-env": "^5.2.0",
"eslint": "^5.12.1",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.15.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"gh-pages": "^2.0.1",
"husky": "^1.3.1",
"jest": "^24.0.0",
"lint-staged": "^8.1.0",
"lint-staged": "^8.1.1",
"rimraf": "^2.6.3",
"vuepress": "^1.0.0-alpha.32"
"vuepress": "^1.0.0-alpha.34"
},
"keywords": [
"vue",
Expand Down

0 comments on commit 9a3e57f

Please sign in to comment.