Skip to content

Commit ff17048

Browse files
author
Nicholas C. Zakas
committed
Fixed CRLF issue for Node.js
1 parent 83ed025 commit ff17048

File tree

15 files changed

+35
-27
lines changed

15 files changed

+35
-27
lines changed

build.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<project name="csslint" default="all">
22

33
<!-- version number -->
4-
<property name="csslint.version" value="0.3.0" />
4+
<property name="csslint.version" value="0.3.1" />
55

66
<!-- the directories containing the source files -->
77
<property name="src.dir" value="./src" />
@@ -98,11 +98,15 @@
9898
<mkdir dir="${build.npm.dir}/lib"/>
9999
<copy file="${npm.dir}/package.json" todir="${build.npm.dir}"/>
100100
<concat destfile="${build.npm.dir}/cli.js" fixlastline="true">
101-
<header trimleading="yes">#!/usr/bin/env node</header>
101+
<header trimleading="yes">#!/usr/bin/env node
102+
/* Build time: ${RIGHT_NOW} */
103+
</header>
102104
<filelist dir="${src.dir}/cli" files="util.js,node.js" />
103105
</concat>
104106
<copy file="${build.dir}/${node.build.file}" todir="${build.npm.dir}/lib"/>
105107

108+
<!-- CRLF will cause Node version to break -->
109+
<fixcrlf srcdir="${build.dir}" includes="**/*" eol="lf" />
106110
</target>
107111

108112
<!-- build the tests into a single file -->

build/csslint-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 25-June-2011 07:20:29 */
24+
/* Build time: 26-June-2011 10:55:08 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.

build/csslint-rhino.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 25-June-2011 07:20:29 */
24+
/* Build time: 26-June-2011 10:55:08 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib

build/csslint-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 25-June-2011 07:20:29 */
24+
/* Build time: 26-June-2011 10:55:08 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.

build/csslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 25-June-2011 07:20:29 */
24+
/* Build time: 26-June-2011 10:55:08 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib

build/npm/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/usr/bin/env node//print for rhino and nodejs
1+
#!/usr/bin/env node
2+
/* Build time: 26-June-2011 10:55:08 */
3+
//print for rhino and nodejs
24
if(typeof print == "undefined") {
35
var print = console.log;
46
}

build/npm/lib/csslint-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 25-June-2011 07:20:29 */
24+
/* Build time: 26-June-2011 10:55:08 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.

build/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
"type":"git",
2828
"url":"http://github.com/stubbornella/csslint.git"
2929
}
30-
}
30+
}

release/csslint-node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 25-June-2011 07:20:29 */
24+
/* Build time: 26-June-2011 10:55:08 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -4756,7 +4756,7 @@ Tokens :Tokens
47564756
*/
47574757

47584758
var YUITest = {
4759-
version: "0.3.0"
4759+
version: "0.3.1"
47604760
};
47614761

47624762

@@ -9317,7 +9317,7 @@ var CSSLint = (function(){
93179317
var rules = [],
93189318
api = new parserlib.util.EventTarget();
93199319

9320-
api.version = "0.3.0";
9320+
api.version = "0.3.1";
93219321

93229322
//-------------------------------------------------------------------------
93239323
// Rule Management

release/csslint-rhino.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 25-June-2011 07:20:29 */
24+
/* Build time: 26-June-2011 10:55:08 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib
@@ -4757,7 +4757,7 @@ Tokens :Tokens
47574757
*/
47584758

47594759
var YUITest = {
4760-
version: "0.3.0"
4760+
version: "0.3.1"
47614761
};
47624762

47634763

@@ -9318,7 +9318,7 @@ var CSSLint = (function(){
93189318
var rules = [],
93199319
api = new parserlib.util.EventTarget();
93209320

9321-
api.version = "0.3.0";
9321+
api.version = "0.3.1";
93229322

93239323
//-------------------------------------------------------------------------
93249324
// Rule Management

0 commit comments

Comments
 (0)