Skip to content

Commit f11b6bc

Browse files
authored
Merge pull request #161 from posthtml/milestone-0.2.13
chore(package): update post-load-plugins to version 0.0.8
2 parents ce121e6 + 8030887 commit f11b6bc

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

cli.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var path = require('path')
44
var fs = require('fs')
55
var posthtml = require('posthtml')
66
var globby = require('globby')
7-
var pathExists = require('path-exists')
87
var argv = require('yargs')
98
.usage('Usage: $0 [-o output-file/directory|-r] [-i input-file/directory] [--config|-c path/to/file/config]')
109
.example('posthtml -o output.html -i input.html', 'Default example')
@@ -80,7 +79,7 @@ function createFolder(outputPath) {
8079
outputPath = path.dirname(outputPath)
8180
}
8281

83-
if (pathExists.sync(outputPath) === false) {
82+
if (fs.existsSync(outputPath) === false) {
8483
fs.mkdirSync(outputPath)
8584
}
8685
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
],
3939
"dependencies": {
4040
"globby": "^6.1.0",
41-
"path-exists": "^3.0.0",
42-
"post-load-plugins": "0.0.7",
41+
"post-load-plugins": "0.0.9",
4342
"posthtml": "^0.9.2",
4443
"yargs": "^6.6.0"
4544
},
4645
"devDependencies": {
46+
"path-exists": "^3.0.0",
4747
"ava": "*",
4848
"ava-codemods": "^0.3.0",
4949
"babel-eslint": "^7.1.1",

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ $ posthtml -i inputFolder/*.html -r
162162
[testen-image]: https://img.shields.io/badge/testen-passing-brightgreen.svg?style=flat-square
163163

164164
[travis-url]: https://travis-ci.org/posthtml/posthtml-cli
165-
[travis-image]: http://img.shields.io/travis/posthtml/posthtml-cli.svg?style=flat-square&label=unix
165+
[travis-image]: http://img.shields.io/travis/posthtml/posthtml-cli/master.svg?style=flat-square&label=unix
166166

167167
[appveyor]: https://ci.appveyor.com/project/GitScrum/posthtml-cli
168-
[appveyor-img]: https://img.shields.io/appveyor/ci/GitScrum/posthtml-cli.svg?style=flat-square&label=windows
168+
[appveyor-img]: https://img.shields.io/appveyor/ci/GitScrum/posthtml-cli/master.svg?style=flat-square&label=windows
169169

170170
[coveralls-url]: https://coveralls.io/r/posthtml/posthtml-cli
171171
[coveralls-image]: http://img.shields.io/coveralls/posthtml/posthtml-cli.svg?style=flat-square

0 commit comments

Comments
 (0)