mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
feature(ischanged) ischanged.isFileChanged -> ischanged
This commit is contained in:
parent
da7c012fbe
commit
f49d040ae9
2 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
Times = main.require(CHANGES_NAME) || {};
|
||||
|
||||
exports.isFileChanged = function(name, callback) {
|
||||
module.exports = function(name, callback) {
|
||||
var readTime = Times[name];
|
||||
|
||||
Util.checkArgs(arguments, ['name', 'callback']);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
Util = main.util,
|
||||
Minify = main.require('minify'),
|
||||
fs = require('fs'),
|
||||
IsChanged = main.ischanged,
|
||||
ischanged = require('./ischanged'),
|
||||
|
||||
COULD_NOT_MINIFY = 'Could not minify without minify module\n' +
|
||||
'npm i minify';
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
} else {
|
||||
minifyName = Minify.getName(name),
|
||||
|
||||
isChanged = exec.with(IsChanged.isFileChanged, name),
|
||||
isChanged = exec.with(ischanged, name),
|
||||
isExist = exec.with(fs.lstat, minifyName);
|
||||
|
||||
exec.parallel([isChanged, isExist], function(error, changed, exists) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue