Permalink
Browse files

[fix] path.existsSync was moved to fs.existsSync

  • Loading branch information...
1 parent 6f19156 commit 13c55f3f5cdea550d84d3fac6b6b9ec18c36b90a @blakmatrix blakmatrix committed Jul 7, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 lib/core.js
  2. +2 −2 perkins
View
@@ -23,7 +23,7 @@ module.exports = (function() {
dir = path.resolve('.');
}
cli.msg(meta.name + ' (v' + meta.version + '): ' + 'I am Starting the server and watching '+dir+', Sir');
- if (path.existsSync(dir)) {
+ if (fs.existsSync(dir)) {
server.preview(dir);
filename = './' + dir + '/stylesheets/app.less';
cli.msg('Server at http://localhost:'+perkins.port);
@@ -58,11 +58,11 @@ module.exports = (function() {
}
},
setup : function(dir){
- if (path.existsSync(dir)) {
+ if (fs.existsSync(dir)) {
cli.error('Sorry, Sir but '+dir+' already exists...');
}
else {
- if (path.existsSync(rootDir +'/src')) {
+ if (fs.existsSync(rootDir +'/src')) {
copypath = rootDir;
}else{
copypath = path.normalize(rootDir+'/../lib/node_modules/perkins');
View
@@ -22,7 +22,7 @@ perkins
.command('preview [path]')
.description('This option create a Perkins Preview HTTP Server')
.action(function(dir){
- if (path.existsSync(dir)) {
+ if (fs.existsSync(dir)) {
server.preview(dir);
cli.msg('Your preview server for '+dir+' is ready, Sir. on http://localhost:'+perkins.port);
cli.info('You want to stop the preview? press Ctrl+C');
@@ -42,7 +42,7 @@ perkins
.command('watch <path>')
.description('Watch changes on app.less and output them to out/stylesheets/style.css')
.action(function(dir) {
- if (path.existsSync(dir)) {
+ if (fs.existsSync(dir)) {
cli.info('Start watching');
core.watch(dir);
}

0 comments on commit 13c55f3

Please sign in to comment.