diff --git a/lib/dest/index.js b/lib/dest/index.js index 049ac969..a25d316f 100644 --- a/lib/dest/index.js +++ b/lib/dest/index.js @@ -4,8 +4,8 @@ var through2 = require('through2'); var sourcemaps = require('gulp-sourcemaps'); var duplexify = require('duplexify'); var sink = require('../sink'); -var prepareWrite = require('../prepareWrite'); -var writeContents = require('./writeContents'); +var prepareWrite = require('../prepare-write'); +var writeContents = require('./write-contents'); function dest(outFolder, opt) { if (!opt) { diff --git a/lib/dest/writeContents/index.js b/lib/dest/write-contents/index.js similarity index 86% rename from lib/dest/writeContents/index.js rename to lib/dest/write-contents/index.js index 1382d956..bc4fe720 100644 --- a/lib/dest/writeContents/index.js +++ b/lib/dest/write-contents/index.js @@ -1,9 +1,9 @@ 'use strict'; -var writeDir = require('./writeDir'); -var writeStream = require('./writeStream'); -var writeBuffer = require('./writeBuffer'); -var writeSymbolicLink = require('./writeSymbolicLink'); +var writeDir = require('./write-dir'); +var writeStream = require('./write-stream'); +var writeBuffer = require('./write-buffer'); +var writeSymbolicLink = require('./write-symbolic-link'); function writeContents(writePath, file, callback) { // If directory then mkdirp it diff --git a/lib/dest/writeContents/writeBuffer.js b/lib/dest/write-contents/write-buffer.js similarity index 91% rename from lib/dest/writeContents/writeBuffer.js rename to lib/dest/write-contents/write-buffer.js index f23a4aa0..6f4bf256 100644 --- a/lib/dest/writeContents/writeBuffer.js +++ b/lib/dest/write-contents/write-buffer.js @@ -1,6 +1,6 @@ 'use strict'; -var fo = require('../../fileOperations'); +var fo = require('../../file-operations'); function writeBuffer(writePath, file, written) { var opt = { diff --git a/lib/dest/writeContents/writeDir.js b/lib/dest/write-contents/write-dir.js similarity index 95% rename from lib/dest/writeContents/writeDir.js rename to lib/dest/write-contents/write-dir.js index ef7622c9..70b187f7 100644 --- a/lib/dest/writeContents/writeDir.js +++ b/lib/dest/write-contents/write-dir.js @@ -3,7 +3,7 @@ var fs = require('graceful-fs'); var mkdirp = require('mkdirp'); -var fo = require('../../fileOperations'); +var fo = require('../../file-operations'); function writeDir(writePath, file, written) { var mkdirpOpts = { diff --git a/lib/dest/writeContents/writeStream.js b/lib/dest/write-contents/write-stream.js similarity index 92% rename from lib/dest/writeContents/writeStream.js rename to lib/dest/write-contents/write-stream.js index e9af5f1d..fb411552 100644 --- a/lib/dest/writeContents/writeStream.js +++ b/lib/dest/write-contents/write-stream.js @@ -2,8 +2,8 @@ var fs = require('graceful-fs'); -var fo = require('../../fileOperations'); -var streamFile = require('../../src/getContents/streamFile'); +var fo = require('../../file-operations'); +var streamFile = require('../../src/get-contents/stream-file'); function writeStream(writePath, file, written) { var opt = { diff --git a/lib/dest/writeContents/writeSymbolicLink.js b/lib/dest/write-contents/write-symbolic-link.js similarity index 100% rename from lib/dest/writeContents/writeSymbolicLink.js rename to lib/dest/write-contents/write-symbolic-link.js diff --git a/lib/fileOperations.js b/lib/file-operations.js similarity index 100% rename from lib/fileOperations.js rename to lib/file-operations.js diff --git a/lib/filterSince.js b/lib/filter-since.js similarity index 100% rename from lib/filterSince.js rename to lib/filter-since.js diff --git a/lib/prepareWrite.js b/lib/prepare-write.js similarity index 100% rename from lib/prepareWrite.js rename to lib/prepare-write.js diff --git a/lib/src/getContents/bufferFile.js b/lib/src/get-contents/buffer-file.js similarity index 100% rename from lib/src/getContents/bufferFile.js rename to lib/src/get-contents/buffer-file.js diff --git a/lib/src/getContents/index.js b/lib/src/get-contents/index.js similarity index 78% rename from lib/src/getContents/index.js rename to lib/src/get-contents/index.js index c1c8c159..e08043a9 100644 --- a/lib/src/getContents/index.js +++ b/lib/src/get-contents/index.js @@ -1,10 +1,10 @@ 'use strict'; var through2 = require('through2'); -var readDir = require('./readDir'); -var readSymbolicLink = require('./readSymbolicLink'); -var bufferFile = require('./bufferFile'); -var streamFile = require('./streamFile'); +var readDir = require('./read-dir'); +var readSymbolicLink = require('./read-symbolic-link'); +var bufferFile = require('./buffer-file'); +var streamFile = require('./stream-file'); function getContents(opt) { return through2.obj(opt, function(file, enc, cb) { diff --git a/lib/src/getContents/readDir.js b/lib/src/get-contents/read-dir.js similarity index 100% rename from lib/src/getContents/readDir.js rename to lib/src/get-contents/read-dir.js diff --git a/lib/src/getContents/readSymbolicLink.js b/lib/src/get-contents/read-symbolic-link.js similarity index 100% rename from lib/src/getContents/readSymbolicLink.js rename to lib/src/get-contents/read-symbolic-link.js diff --git a/lib/src/getContents/streamFile.js b/lib/src/get-contents/stream-file.js similarity index 100% rename from lib/src/getContents/streamFile.js rename to lib/src/get-contents/stream-file.js diff --git a/lib/src/index.js b/lib/src/index.js index 06cbe754..9da0c265 100644 --- a/lib/src/index.js +++ b/lib/src/index.js @@ -6,11 +6,11 @@ var gs = require('glob-stream'); var duplexify = require('duplexify'); var merge = require('merge-stream'); var sourcemaps = require('gulp-sourcemaps'); -var filterSince = require('../filterSince'); +var filterSince = require('../filter-since'); var isValidGlob = require('is-valid-glob'); -var getContents = require('./getContents'); -var wrapWithVinylFile = require('./wrapWithVinylFile'); +var getContents = require('./get-contents'); +var wrapWithVinylFile = require('./wrap-with-vinyl-file'); function src(glob, opt) { var options = assign({ diff --git a/lib/src/wrapWithVinylFile.js b/lib/src/wrap-with-vinyl-file.js similarity index 100% rename from lib/src/wrapWithVinylFile.js rename to lib/src/wrap-with-vinyl-file.js diff --git a/lib/symlink/index.js b/lib/symlink/index.js index 6c01a6b6..93b6b9aa 100644 --- a/lib/symlink/index.js +++ b/lib/symlink/index.js @@ -2,7 +2,7 @@ var through2 = require('through2'); var fs = require('graceful-fs'); -var prepareWrite = require('../prepareWrite'); +var prepareWrite = require('../prepare-write'); function symlink(outFolder, opt) { function linkFile(file, enc, cb) { diff --git a/test/destModes.js b/test/dest-modes.js similarity index 100% rename from test/destModes.js rename to test/dest-modes.js diff --git a/test/destTimes.js b/test/dest-times.js similarity index 100% rename from test/destTimes.js rename to test/dest-times.js diff --git a/test/fileOperations.js b/test/file-operations.js similarity index 99% rename from test/fileOperations.js rename to test/file-operations.js index 568263cf..39a59d83 100644 --- a/test/fileOperations.js +++ b/test/file-operations.js @@ -10,7 +10,7 @@ var File = require('vinyl'); var buffer = require('buffer'); var defaultResolution = require('default-resolution'); -var fo = require('../lib/fileOperations'); +var fo = require('../lib/file-operations'); var closeFd = fo.closeFd; var isOwner = fo.isOwner; diff --git a/test/notOwned.js b/test/not-owned.js similarity index 100% rename from test/notOwned.js rename to test/not-owned.js