Skip to content

Commit e70538a

Browse files
committed
Merge branch 'master' into width-100
2 parents 014b5b8 + 9868375 commit e70538a

25 files changed

+5918
-5707
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Next (not yet released)
55
* Made license comment important in build files (fixes #46)
66
* Code cleanup (pull #70)
77
* Cleanup of whitespace (pull #74)
8+
* Standardization of CLI interface (pull #81)
9+
* Switched display-property-grouping to allow padding, margin-left, and margin-right for display: inline (fixes #3)
10+
* Changed messaging for float rule (fixes #26)
11+
* border:none with width/height is okay (fixes #45)
12+
* Updated web worker to accept JSON-encoded input
13+
* Allow turning on/off rules in web interface and CLIs (fixes #77)
814

915
June 18, 2011 - v0.2.0
1016

build.xml

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

3+
<!-- version number -->
4+
<property name="csslint.version" value="0.2.0" />
5+
36
<!-- the directories containing the source files -->
47
<property name="src.dir" value="./src" />
58
<property name="npm.dir" value="./npm" />
@@ -21,6 +24,13 @@
2124

2225
<loadfile property="license.text" srcfile="LICENSE" />
2326

27+
<!-- get a timestamp -->
28+
<tstamp>
29+
<format property="RIGHT_NOW"
30+
pattern="d-MMMM-yyyy hh:mm:ss"
31+
locale="en,US"/>
32+
</tstamp>
33+
2434
<!-- clean -->
2535
<target name="clean">
2636
<delete dir="${build.dir}" />
@@ -32,6 +42,7 @@
3242
<header trimleading="yes">/*!
3343
${license.text}
3444
*/
45+
/* Build time: ${RIGHT_NOW} */
3546
var CSSLint = (function(){
3647
</header>
3748
<fileset dir="${lib.dir}" includes="*.js" />
@@ -52,6 +63,7 @@
5263
<header trimleading="yes">/*!
5364
${license.text}
5465
*/
66+
/* Build time: ${RIGHT_NOW} */
5567
</header>
5668
<fileset dir="${lib.dir}" includes="*.js" />
5769
<filelist dir="${src.dir}/core" files="CSSLint.js" />
@@ -69,6 +81,7 @@
6981
<header trimleading="yes">/*!
7082
${license.text}
7183
*/
84+
/* Build time: ${RIGHT_NOW} */
7285
</header>
7386
<fileset dir="${lib.dir}" includes="*.js" />
7487
<filelist dir="${src.dir}/core" files="CSSLint.js" />
@@ -82,7 +95,10 @@
8295
<mkdir dir="${build.npm.dir}"/>
8396
<mkdir dir="${build.npm.dir}/lib"/>
8497
<copy file="${npm.dir}/package.json" todir="${build.npm.dir}"/>
85-
<copy file="${src.dir}/node/cli.js" todir="${build.npm.dir}"/>
98+
<concat destfile="${build.npm.dir}/cli.js" fixlastline="true">
99+
<header trimleading="yes">#!/usr/bin/env node</header>
100+
<filelist dir="${src.dir}/cli" files="util.js,node.js" />
101+
</concat>
86102
<copy file="${build.dir}/${node.build.file}" todir="${build.npm.dir}/lib"/>
87103

88104
</target>
@@ -94,16 +110,20 @@
94110
</concat>
95111
</target>
96112

97-
98113
<!-- build for rhino CLI integration -->
99114
<target name="build.rhino" depends="build.core">
100115
<concat destfile="${build.dir}/${rhino.build.file}" fixlastline="true">
101116
<filelist dir="${build.dir}" files="${core.build.file}" />
102-
<filelist dir="${src.dir}/rhino" files="cli.js" />
117+
<filelist dir="${src.dir}/cli" files="util.js,rhino.js" />
103118
</concat>
104-
</target>
105-
119+
</target>
106120

121+
<!-- Update version number in files -->
122+
<target name="release" depends="all">
123+
<replaceregexp match="@VERSION@" replace="${csslint.version}" flags="g" byline="true">
124+
<fileset dir="${build.dir}" includes="**/*.js"/>
125+
</replaceregexp>
126+
</target>
107127

108128
<!-- Build all files -->
109129
<target name="all" depends="clean,build.core,build.worker,build.node,build.tests,build.rhino"/>

0 commit comments

Comments
 (0)