grunt-update-reference
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -11,3 +11,3 @@ 'use strict'; | ||
newer:0, | ||
log:"simple"//"none","all" | ||
log:"all"//"none","all" | ||
}, | ||
@@ -14,0 +14,0 @@ dist: { |
@@ -47,3 +47,3 @@ | ||
newFileName.forEach( function ( oneFile ) { | ||
var regx = new RegExp( "(?!\\n|\\r\\n*)(.+)" + "(" + oneFile + "[^\"|\'|\\|\\n|\\r\\n)]*)(?=\"|\'|\\))(.*)", "g" ); | ||
var regx = new RegExp( "(?!\\n|\\r\\n*)(.+[\'|\" |\\(].+)" + "(" + oneFile + "[^\"|\'|\\|\\n|\\r\\n| ]*)(?=\"|\'|\\))(.*)", "g" ); | ||
@@ -50,0 +50,0 @@ contents = contents.replace( regx, function () { |
{ | ||
"name": "grunt-update-reference", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -58,4 +58,6 @@ # grunt-update-reference | ||
It is recommended to set `newer` task's `cache` folder to version controlled, to prevent conflict(repeatedly update reference) when project has muti contributors. | ||
It is recommended to set `newer` task's `cache` folder to version controlled, to prevent conflict (repeatedly update reference) when project has muti contributors. | ||
In this case, **grunt-newer ^1.1.2 is required**. If `grunt-newer` has been installed in project before, PLEASE consider it's version. | ||
so it's best to add [newer.option.cache](https://github.com/tschaub/grunt-newer#options-for-the-newer-task) to `initConfig`: | ||
@@ -62,0 +64,0 @@ |
166
test/base.js
@@ -14,164 +14,6 @@ /** | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
}(); | ||
/** | ||
* @name 平台签到功能 | ||
* @author x | ||
* @time 2015-3-24 | ||
* @Depends | ||
* base.css | ||
* @example | ||
* new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ * new SC.Sign({ | ||
* }?t=1459326558061); | ||
*/ | ||
+function () { | ||
//reference css file; | ||
var css = "./base.css?t=1459326558061", | ||
xcss = "./xcss/base.css?t=1459326558061"; | ||
var css = "./base.css?t=1459332270821", | ||
xcss = "./xcss/base.css?t=1459332270821"; | ||
foo.base.cssText = "top:1px;float:left;opacity:.5"; | ||
return elem.style.cssText.toLowerCase() || undefined; | ||
}(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
119
36311
230