Skip to content

Commit

Permalink
build: use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Oct 3, 2019
1 parent a6b373c commit b2f4d20
Show file tree
Hide file tree
Showing 9 changed files with 23,415 additions and 12,945 deletions.
10 changes: 5 additions & 5 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: install dependences
command: yarn
command: npm ci
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- run:
name: test
command: yarn test
command: npm test
- run:
name: Release
command: yarn semantic-release
command: npx semantic-release
23,402 changes: 23,402 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"jump.js": "^1.0.2",
"loadjs": "^3.5.4",
"marked": "^0.6.1",
"marked": "^0.7.0",
"medium-zoom": "^1.0.2",
"prismjs": "^1.15.0",
"throttle-debounce": "^2.1.0",
Expand All @@ -35,7 +35,7 @@
"@semantic-release/git": "^7.0.5",
"babel-preset-minimal": "^0.1.1",
"babel-preset-power-assert": "^3.0.0",
"bili": "^3.4.2",
"bili": "^4.8.1",
"commitizen": "^3.0.5",
"cz-conventional-changelog": "^2.1.0",
"docute-google-analytics": "^1.1.0",
Expand Down Expand Up @@ -102,7 +102,7 @@
},
"lint-staged": {
"*.{js,css,md,vue}": [
"yarn lint --fix",
"xo --fix",
"git add"
]
},
Expand Down
4 changes: 1 addition & 3 deletions src/components/Gist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ export default {
this.html = gist.div
}
const script = document.createElement('script')
script.src = `https://gist.github.com/egoist/${
this.id
}.json?callback=gist_callback_${this.id}`
script.src = `https://gist.github.com/egoist/${this.id}.json?callback=gist_callback_${this.id}`
document.head.appendChild(script)
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/utils/parseCodeOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ export default opts => {
opts = fn()
} catch (error) {
console.error(
`You're using invalid options for code fences, it must be JSON or JS object!\n${
error.message
}`
`You're using invalid options for code fences, it must be JSON or JS object!\n${error.message}`
)
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ export default {
})
],
name: 'PageContent',
template: `<div class="page-content">${
this.$store.state.page.content
}</div>`
template: `<div class="page-content">${this.$store.state.page.content}</div>`
}
hooks.process('extendMarkdownComponent', component)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guide/use-with-bundlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You don't have to use a bundler in order to use Docute, however if you want, you
First you need to install Docute as a dependency in your project:

```bash
yarn add docute --dev
npm install docute
```

Then see below for the usage with your bundler of choice.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/use-with-bundlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You don't have to use a bundler in order to use Docute, however if you want, you
First you need to install Docute as a dependency in your project:

```bash
yarn add docute --dev
npm install docute
```

Then see below for the usage with your bundler of choice.
Expand Down
Loading

0 comments on commit b2f4d20

Please sign in to comment.