File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ var path = require('path')
44var fs = require ( 'fs' )
55var posthtml = require ( 'posthtml' )
66var globby = require ( 'globby' )
7- var pathExists = require ( 'path-exists' )
87var 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}
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments