├── .gitignore
├── LICENSE
├── README.md
├── bin
├── Node LICENSE.txt
└── package.json
├── build.cmd
├── lessc-watch.cmd
├── lessc.cmd
└── tools
├── 7-zip
├── 7za.exe
└── license.txt
└── httpget.js
/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/node_modules
2 | /bin/node.exe
3 | release.zip
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 Duncan Smart
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
22 |
23 | ## Other Licenses ##
24 |
25 | * Node: bin/Node LICENSE.txt
26 | * less.js: bin/node_modules/less/LICENSE
27 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LESS.js for Windows
2 |
3 | A standalone version of the [LESS](http://lesscss.org/) command-line compiler that will run on Windows with no other dependencies.
4 |
5 | Consists of a standalone version of [Node.js](http://nodejs.org/) and the required less.js files/dependencies.
6 |
7 | ## Install
8 |
9 | **[Download and extract the release ZIP](https://github.com/duncansmart/less.js-windows/releases)** and invoke `lessc.cmd` as detailed below.
10 |
11 | ## Usage
12 |
13 | Basic usage:
14 |
15 | lessc path\source.less path\output.css
16 |
17 | Compress CSS:
18 |
19 | lessc --clean-css path\source.less path\output.css
20 |
21 | For full usage:
22 |
23 | lessc -h
24 |
25 |
26 | ## History
27 |
28 | Previously the project used the Windows Script Host `cscript.exe` as its runtime. Over time this was proving to be diffcult to support as it was essentially using the browser-based version of less.js and stubbing out objects like `window` and `document` to mimic the browser environment. This version is still available in the [windows-script-host](https://github.com/duncansmart/less.js-windows/tree/windows-script-host) branch.
29 |
--------------------------------------------------------------------------------
/bin/Node LICENSE.txt:
--------------------------------------------------------------------------------
1 | Node's license follows:
2 |
3 | ====
4 |
5 | Copyright Joyent, Inc. and other Node contributors. All rights reserved.
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to
8 | deal in the Software without restriction, including without limitation the
9 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 | sell copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 | IN THE SOFTWARE.
23 |
24 | ====
25 |
26 | This license applies to all parts of Node that are not externally
27 | maintained libraries. The externally maintained libraries used by Node are:
28 |
29 | - V8, located at deps/v8. V8's license follows:
30 | """
31 | This license applies to all parts of V8 that are not externally
32 | maintained libraries. The externally maintained libraries used by V8
33 | are:
34 |
35 | - PCRE test suite, located in
36 | test/mjsunit/third_party/regexp-pcre.js. This is based on the
37 | test suite from PCRE-7.3, which is copyrighted by the University
38 | of Cambridge and Google, Inc. The copyright notice and license
39 | are embedded in regexp-pcre.js.
40 |
41 | - Layout tests, located in test/mjsunit/third_party. These are
42 | based on layout tests from webkit.org which are copyrighted by
43 | Apple Computer, Inc. and released under a 3-clause BSD license.
44 |
45 | - Strongtalk assembler, the basis of the files assembler-arm-inl.h,
46 | assembler-arm.cc, assembler-arm.h, assembler-ia32-inl.h,
47 | assembler-ia32.cc, assembler-ia32.h, assembler-x64-inl.h,
48 | assembler-x64.cc, assembler-x64.h, assembler-mips-inl.h,
49 | assembler-mips.cc, assembler-mips.h, assembler.cc and assembler.h.
50 | This code is copyrighted by Sun Microsystems Inc. and released
51 | under a 3-clause BSD license.
52 |
53 | - Valgrind client API header, located at third_party/valgrind/valgrind.h
54 | This is release under the BSD license.
55 |
56 | These libraries have their own licenses; we recommend you read them,
57 | as their terms may differ from the terms below.
58 |
59 | Copyright 2006-2012, the V8 project authors. All rights reserved.
60 | Redistribution and use in source and binary forms, with or without
61 | modification, are permitted provided that the following conditions are
62 | met:
63 |
64 | * Redistributions of source code must retain the above copyright
65 | notice, this list of conditions and the following disclaimer.
66 | * Redistributions in binary form must reproduce the above
67 | copyright notice, this list of conditions and the following
68 | disclaimer in the documentation and/or other materials provided
69 | with the distribution.
70 | * Neither the name of Google Inc. nor the names of its
71 | contributors may be used to endorse or promote products derived
72 | from this software without specific prior written permission.
73 |
74 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
75 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
76 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
77 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
78 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
79 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
80 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
81 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
82 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
83 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
84 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
85 | """
86 |
87 | - C-Ares, an asynchronous DNS client, located at deps/cares. C-Ares license
88 | follows:
89 | """
90 | /* Copyright 1998 by the Massachusetts Institute of Technology.
91 | *
92 | * Permission to use, copy, modify, and distribute this
93 | * software and its documentation for any purpose and without
94 | * fee is hereby granted, provided that the above copyright
95 | * notice appear in all copies and that both that copyright
96 | * notice and this permission notice appear in supporting
97 | * documentation, and that the name of M.I.T. not be used in
98 | * advertising or publicity pertaining to distribution of the
99 | * software without specific, written prior permission.
100 | * M.I.T. makes no representations about the suitability of
101 | * this software for any purpose. It is provided "as is"
102 | * without express or implied warranty.
103 | """
104 |
105 | - OpenSSL located at deps/openssl. OpenSSL is cryptographic software written
106 | by Eric Young (eay@cryptsoft.com) to provide SSL/TLS encryption. OpenSSL's
107 | license follows:
108 | """
109 | /* ====================================================================
110 | * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
111 | *
112 | * Redistribution and use in source and binary forms, with or without
113 | * modification, are permitted provided that the following conditions
114 | * are met:
115 | *
116 | * 1. Redistributions of source code must retain the above copyright
117 | * notice, this list of conditions and the following disclaimer.
118 | *
119 | * 2. Redistributions in binary form must reproduce the above copyright
120 | * notice, this list of conditions and the following disclaimer in
121 | * the documentation and/or other materials provided with the
122 | * distribution.
123 | *
124 | * 3. All advertising materials mentioning features or use of this
125 | * software must display the following acknowledgment:
126 | * "This product includes software developed by the OpenSSL Project
127 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
128 | *
129 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
130 | * endorse or promote products derived from this software without
131 | * prior written permission. For written permission, please contact
132 | * openssl-core@openssl.org.
133 | *
134 | * 5. Products derived from this software may not be called "OpenSSL"
135 | * nor may "OpenSSL" appear in their names without prior written
136 | * permission of the OpenSSL Project.
137 | *
138 | * 6. Redistributions of any form whatsoever must retain the following
139 | * acknowledgment:
140 | * "This product includes software developed by the OpenSSL Project
141 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
142 | *
143 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
144 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
145 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
146 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
147 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
148 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
149 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
150 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
151 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
152 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
153 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
154 | * OF THE POSSIBILITY OF SUCH DAMAGE.
155 | * ====================================================================
156 | *
157 | * This product includes cryptographic software written by Eric Young
158 | * (eay@cryptsoft.com). This product includes software written by Tim
159 | * Hudson (tjh@cryptsoft.com).
160 | *
161 | */
162 | """
163 |
164 | - HTTP Parser, located at deps/http_parser. HTTP Parser's license follows:
165 | """
166 | http_parser.c is based on src/http/ngx_http_parse.c from NGINX copyright
167 | Igor Sysoev.
168 |
169 | Additional changes are licensed under the same terms as NGINX and
170 | copyright Joyent, Inc. and other Node contributors. All rights reserved.
171 |
172 | Permission is hereby granted, free of charge, to any person obtaining a copy
173 | of this software and associated documentation files (the "Software"), to
174 | deal in the Software without restriction, including without limitation the
175 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
176 | sell copies of the Software, and to permit persons to whom the Software is
177 | furnished to do so, subject to the following conditions:
178 |
179 | The above copyright notice and this permission notice shall be included in
180 | all copies or substantial portions of the Software.
181 |
182 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
183 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
184 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
185 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
186 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
187 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
188 | IN THE SOFTWARE.
189 | """
190 |
191 | - Closure Linter is located at tools/closure_linter. Closure's license
192 | follows:
193 | """
194 | # Copyright (c) 2007, Google Inc.
195 | # All rights reserved.
196 | #
197 | # Redistribution and use in source and binary forms, with or without
198 | # modification, are permitted provided that the following conditions are
199 | # met:
200 | #
201 | # * Redistributions of source code must retain the above copyright
202 | # notice, this list of conditions and the following disclaimer.
203 | # * Redistributions in binary form must reproduce the above
204 | # copyright notice, this list of conditions and the following disclaimer
205 | # in the documentation and/or other materials provided with the
206 | # distribution.
207 | # * Neither the name of Google Inc. nor the names of its
208 | # contributors may be used to endorse or promote products derived from
209 | # this software without specific prior written permission.
210 | #
211 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
212 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
213 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
214 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
215 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
216 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
217 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
218 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
219 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
220 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
221 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
222 | """
223 |
224 | - tools/cpplint.py is a C++ linter. Its license follows:
225 | """
226 | # Copyright (c) 2009 Google Inc. All rights reserved.
227 | #
228 | # Redistribution and use in source and binary forms, with or without
229 | # modification, are permitted provided that the following conditions are
230 | # met:
231 | #
232 | # * Redistributions of source code must retain the above copyright
233 | # notice, this list of conditions and the following disclaimer.
234 | # * Redistributions in binary form must reproduce the above
235 | # copyright notice, this list of conditions and the following disclaimer
236 | # in the documentation and/or other materials provided with the
237 | # distribution.
238 | # * Neither the name of Google Inc. nor the names of its
239 | # contributors may be used to endorse or promote products derived from
240 | # this software without specific prior written permission.
241 | #
242 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
243 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
244 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
245 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
246 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
247 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
248 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
249 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
250 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
251 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
252 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
253 | """
254 |
255 | - lib/punycode.js is copyright 2011 Mathias Bynens
256 | and released under the MIT license.
257 | """
258 | * Punycode.js
259 | * Copyright 2011 Mathias Bynens
260 | * Available under MIT license
261 | """
262 |
263 | - tools/gyp. GYP is a meta-build system. GYP's license follows:
264 | """
265 | Copyright (c) 2009 Google Inc. All rights reserved.
266 |
267 | Redistribution and use in source and binary forms, with or without
268 | modification, are permitted provided that the following conditions are
269 | met:
270 |
271 | * Redistributions of source code must retain the above copyright
272 | notice, this list of conditions and the following disclaimer.
273 | * Redistributions in binary form must reproduce the above
274 | copyright notice, this list of conditions and the following disclaimer
275 | in the documentation and/or other materials provided with the
276 | distribution.
277 | * Neither the name of Google Inc. nor the names of its
278 | contributors may be used to endorse or promote products derived from
279 | this software without specific prior written permission.
280 |
281 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
282 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
283 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
284 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
285 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
286 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
287 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
288 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
289 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
290 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
291 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
292 | """
293 |
294 | - Zlib at deps/zlib. zlib's license follows:
295 | """
296 | /* zlib.h -- interface of the 'zlib' general purpose compression library
297 | version 1.2.4, March 14th, 2010
298 |
299 | Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
300 |
301 | This software is provided 'as-is', without any express or implied
302 | warranty. In no event will the authors be held liable for any damages
303 | arising from the use of this software.
304 |
305 | Permission is granted to anyone to use this software for any purpose,
306 | including commercial applications, and to alter it and redistribute it
307 | freely, subject to the following restrictions:
308 |
309 | 1. The origin of this software must not be misrepresented; you must not
310 | claim that you wrote the original software. If you use this software
311 | in a product, an acknowledgment in the product documentation would be
312 | appreciated but is not required.
313 | 2. Altered source versions must be plainly marked as such, and must not be
314 | misrepresented as being the original software.
315 | 3. This notice may not be removed or altered from any source distribution.
316 |
317 | Jean-loup Gailly
318 | Mark Adler
319 |
320 | */
321 | """
322 |
323 | - npm is a package manager program located at deps/npm.
324 | npm's license follows:
325 | """
326 | Copyright 2009-2012, Isaac Z. Schlueter (the "Original Author")
327 | All rights reserved.
328 |
329 | MIT +no-false-attribs License
330 |
331 | Permission is hereby granted, free of charge, to any person
332 | obtaining a copy of this software and associated documentation
333 | files (the "Software"), to deal in the Software without
334 | restriction, including without limitation the rights to use,
335 | copy, modify, merge, publish, distribute, sublicense, and/or sell
336 | copies of the Software, and to permit persons to whom the
337 | Software is furnished to do so, subject to the following
338 | conditions:
339 |
340 | The above copyright notice and this permission notice shall be
341 | included in all copies or substantial portions of the Software.
342 |
343 | Distributions of all or part of the Software intended to be used
344 | by the recipients as they would use the unmodified Software,
345 | containing modifications that substantially alter, remove, or
346 | disable functionality of the Software, outside of the documented
347 | configuration mechanisms provided by the Software, shall be
348 | modified such that the Original Author's bug reporting email
349 | addresses and urls are either replaced with the contact information
350 | of the parties responsible for the changes, or removed entirely.
351 |
352 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
353 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
354 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
355 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
356 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
357 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
358 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
359 | OTHER DEALINGS IN THE SOFTWARE.
360 |
361 |
362 | Except where noted, this license applies to any and all software
363 | programs and associated documentation files created by the
364 | Original Author, when distributed with the Software.
365 |
366 | "Node.js" and "node" trademark Joyent, Inc. npm is not officially
367 | part of the Node.js project, and is neither owned by nor
368 | officially affiliated with Joyent, Inc.
369 |
370 | Packages published in the npm registry are not part of npm
371 | itself, are the sole property of their respective maintainers,
372 | and are not covered by this license.
373 |
374 | "npm Logo" created by Mathias Pettersson and Brian Hammond,
375 | used with permission.
376 |
377 | "Gubblebum Blocky" font
378 | Copyright (c) 2007 by Tjarda Koster, http://jelloween.deviantart.com
379 | included for use in the npm website and documentation,
380 | used with permission.
381 |
382 | This program uses "node-uuid", Copyright (c) 2010 Robert Kieffer,
383 | according to the terms of the MIT license.
384 |
385 | This program uses "request", Copyright (c) 2011 Mikeal Rogers,
386 | according to the terms of the Apache license.
387 |
388 | This program uses "mkdirp", Copyright (c) 2010 James Halliday,
389 | according to the terms of the MIT/X11 license.
390 | """
391 |
392 | - tools/doc/node_modules/marked. Marked is a Markdown parser. Marked's
393 | license follows:
394 | """
395 | Copyright (c) 2011-2012, Christopher Jeffrey (https://github.com/chjj/)
396 |
397 | Permission is hereby granted, free of charge, to any person obtaining a copy
398 | of this software and associated documentation files (the "Software"), to deal
399 | in the Software without restriction, including without limitation the rights
400 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
401 | copies of the Software, and to permit persons to whom the Software is
402 | furnished to do so, subject to the following conditions:
403 |
404 | The above copyright notice and this permission notice shall be included in
405 | all copies or substantial portions of the Software.
406 |
407 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
408 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
409 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
410 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
411 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
412 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
413 | THE SOFTWARE.
414 | """
415 |
416 | - test/gc/node_modules/weak. Node-weak is a node.js addon that provides garbage
417 | collector notifications. Node-weak's license follows:
418 | """
419 | Copyright (c) 2011, Ben Noordhuis
420 |
421 | Permission to use, copy, modify, and/or distribute this software for any
422 | purpose with or without fee is hereby granted, provided that the above
423 | copyright notice and this permission notice appear in all copies.
424 |
425 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
426 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
427 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
428 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
429 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
430 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
431 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
432 | """
433 |
434 | - src/ngx-queue.h. ngx-queue.h is taken from the nginx source tree. nginx's
435 | license follows:
436 | """
437 | Copyright (C) 2002-2012 Igor Sysoev
438 | Copyright (C) 2011,2012 Nginx, Inc.
439 |
440 | Redistribution and use in source and binary forms, with or without
441 | modification, are permitted provided that the following conditions
442 | are met:
443 | 1. Redistributions of source code must retain the above copyright
444 | notice, this list of conditions and the following disclaimer.
445 | 2. Redistributions in binary form must reproduce the above copyright
446 | notice, this list of conditions and the following disclaimer in the
447 | documentation and/or other materials provided with the distribution.
448 |
449 | THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
450 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
451 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
452 | ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
453 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
454 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
455 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
456 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
457 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
458 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
459 | SUCH DAMAGE.
460 | """
461 |
462 | - wrk is located at tools/wrk. wrk's license follows:
463 | """
464 |
465 | Apache License
466 | Version 2.0, January 2004
467 | http://www.apache.org/licenses/
468 |
469 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
470 |
471 | 1. Definitions.
472 |
473 | "License" shall mean the terms and conditions for use, reproduction,
474 | and distribution as defined by Sections 1 through 9 of this document.
475 |
476 | "Licensor" shall mean the copyright owner or entity authorized by
477 | the copyright owner that is granting the License.
478 |
479 | "Legal Entity" shall mean the union of the acting entity and all
480 | other entities that control, are controlled by, or are under common
481 | control with that entity. For the purposes of this definition,
482 | "control" means (i) the power, direct or indirect, to cause the
483 | direction or management of such entity, whether by contract or
484 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
485 | outstanding shares, or (iii) beneficial ownership of such entity.
486 |
487 | "You" (or "Your") shall mean an individual or Legal Entity
488 | exercising permissions granted by this License.
489 |
490 | "Source" form shall mean the preferred form for making modifications,
491 | including but not limited to software source code, documentation
492 | source, and configuration files.
493 |
494 | "Object" form shall mean any form resulting from mechanical
495 | transformation or translation of a Source form, including but
496 | not limited to compiled object code, generated documentation,
497 | and conversions to other media types.
498 |
499 | "Work" shall mean the work of authorship, whether in Source or
500 | Object form, made available under the License, as indicated by a
501 | copyright notice that is included in or attached to the work
502 | (an example is provided in the Appendix below).
503 |
504 | "Derivative Works" shall mean any work, whether in Source or Object
505 | form, that is based on (or derived from) the Work and for which the
506 | editorial revisions, annotations, elaborations, or other modifications
507 | represent, as a whole, an original work of authorship. For the purposes
508 | of this License, Derivative Works shall not include works that remain
509 | separable from, or merely link (or bind by name) to the interfaces of,
510 | the Work and Derivative Works thereof.
511 |
512 | "Contribution" shall mean any work of authorship, including
513 | the original version of the Work and any modifications or additions
514 | to that Work or Derivative Works thereof, that is intentionally
515 | submitted to Licensor for inclusion in the Work by the copyright owner
516 | or by an individual or Legal Entity authorized to submit on behalf of
517 | the copyright owner. For the purposes of this definition, "submitted"
518 | means any form of electronic, verbal, or written communication sent
519 | to the Licensor or its representatives, including but not limited to
520 | communication on electronic mailing lists, source code control systems,
521 | and issue tracking systems that are managed by, or on behalf of, the
522 | Licensor for the purpose of discussing and improving the Work, but
523 | excluding communication that is conspicuously marked or otherwise
524 | designated in writing by the copyright owner as "Not a Contribution."
525 |
526 | "Contributor" shall mean Licensor and any individual or Legal Entity
527 | on behalf of whom a Contribution has been received by Licensor and
528 | subsequently incorporated within the Work.
529 |
530 | 2. Grant of Copyright License. Subject to the terms and conditions of
531 | this License, each Contributor hereby grants to You a perpetual,
532 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
533 | copyright license to reproduce, prepare Derivative Works of,
534 | publicly display, publicly perform, sublicense, and distribute the
535 | Work and such Derivative Works in Source or Object form.
536 |
537 | 3. Grant of Patent License. Subject to the terms and conditions of
538 | this License, each Contributor hereby grants to You a perpetual,
539 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
540 | (except as stated in this section) patent license to make, have made,
541 | use, offer to sell, sell, import, and otherwise transfer the Work,
542 | where such license applies only to those patent claims licensable
543 | by such Contributor that are necessarily infringed by their
544 | Contribution(s) alone or by combination of their Contribution(s)
545 | with the Work to which such Contribution(s) was submitted. If You
546 | institute patent litigation against any entity (including a
547 | cross-claim or counterclaim in a lawsuit) alleging that the Work
548 | or a Contribution incorporated within the Work constitutes direct
549 | or contributory patent infringement, then any patent licenses
550 | granted to You under this License for that Work shall terminate
551 | as of the date such litigation is filed.
552 |
553 | 4. Redistribution. You may reproduce and distribute copies of the
554 | Work or Derivative Works thereof in any medium, with or without
555 | modifications, and in Source or Object form, provided that You
556 | meet the following conditions:
557 |
558 | (a) You must give any other recipients of the Work or
559 | Derivative Works a copy of this License; and
560 |
561 | (b) You must cause any modified files to carry prominent notices
562 | stating that You changed the files; and
563 |
564 | (c) You must retain, in the Source form of any Derivative Works
565 | that You distribute, all copyright, patent, trademark, and
566 | attribution notices from the Source form of the Work,
567 | excluding those notices that do not pertain to any part of
568 | the Derivative Works; and
569 |
570 | (d) If the Work includes a "NOTICE" text file as part of its
571 | distribution, then any Derivative Works that You distribute must
572 | include a readable copy of the attribution notices contained
573 | within such NOTICE file, excluding those notices that do not
574 | pertain to any part of the Derivative Works, in at least one
575 | of the following places: within a NOTICE text file distributed
576 | as part of the Derivative Works; within the Source form or
577 | documentation, if provided along with the Derivative Works; or,
578 | within a display generated by the Derivative Works, if and
579 | wherever such third-party notices normally appear. The contents
580 | of the NOTICE file are for informational purposes only and
581 | do not modify the License. You may add Your own attribution
582 | notices within Derivative Works that You distribute, alongside
583 | or as an addendum to the NOTICE text from the Work, provided
584 | that such additional attribution notices cannot be construed
585 | as modifying the License.
586 |
587 | You may add Your own copyright statement to Your modifications and
588 | may provide additional or different license terms and conditions
589 | for use, reproduction, or distribution of Your modifications, or
590 | for any such Derivative Works as a whole, provided Your use,
591 | reproduction, and distribution of the Work otherwise complies with
592 | the conditions stated in this License.
593 |
594 | 5. Submission of Contributions. Unless You explicitly state otherwise,
595 | any Contribution intentionally submitted for inclusion in the Work
596 | by You to the Licensor shall be under the terms and conditions of
597 | this License, without any additional terms or conditions.
598 | Notwithstanding the above, nothing herein shall supersede or modify
599 | the terms of any separate license agreement you may have executed
600 | with Licensor regarding such Contributions.
601 |
602 | 6. Trademarks. This License does not grant permission to use the trade
603 | names, trademarks, service marks, or product names of the Licensor,
604 | except as required for reasonable and customary use in describing the
605 | origin of the Work and reproducing the content of the NOTICE file.
606 |
607 | 7. Disclaimer of Warranty. Unless required by applicable law or
608 | agreed to in writing, Licensor provides the Work (and each
609 | Contributor provides its Contributions) on an "AS IS" BASIS,
610 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
611 | implied, including, without limitation, any warranties or conditions
612 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
613 | PARTICULAR PURPOSE. You are solely responsible for determining the
614 | appropriateness of using or redistributing the Work and assume any
615 | risks associated with Your exercise of permissions under this License.
616 |
617 | 8. Limitation of Liability. In no event and under no legal theory,
618 | whether in tort (including negligence), contract, or otherwise,
619 | unless required by applicable law (such as deliberate and grossly
620 | negligent acts) or agreed to in writing, shall any Contributor be
621 | liable to You for damages, including any direct, indirect, special,
622 | incidental, or consequential damages of any character arising as a
623 | result of this License or out of the use or inability to use the
624 | Work (including but not limited to damages for loss of goodwill,
625 | work stoppage, computer failure or malfunction, or any and all
626 | other commercial damages or losses), even if such Contributor
627 | has been advised of the possibility of such damages.
628 |
629 | 9. Accepting Warranty or Additional Liability. While redistributing
630 | the Work or Derivative Works thereof, You may choose to offer,
631 | and charge a fee for, acceptance of support, warranty, indemnity,
632 | or other liability obligations and/or rights consistent with this
633 | License. However, in accepting such obligations, You may act only
634 | on Your own behalf and on Your sole responsibility, not on behalf
635 | of any other Contributor, and only if You agree to indemnify,
636 | defend, and hold each Contributor harmless for any liability
637 | incurred by, or claims asserted against, such Contributor by reason
638 | of your accepting any such warranty or additional liability.
639 |
640 | END OF TERMS AND CONDITIONS
641 | """
642 |
--------------------------------------------------------------------------------
/bin/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lessjs-windows",
3 | "version": "0.0.1",
4 | "dependencies" : {
5 | "less" : ">=0.1",
6 | "less-plugin-clean-css": ">=0.1"
7 | },
8 | "engine": {
9 | "node": ">=0.6"
10 | }
11 | }
--------------------------------------------------------------------------------
/build.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | pushd "%~dp0\bin"
3 |
4 | :: Update node.exe
5 | if not exist node.exe (
6 | echo Downloading latest node.exe
7 | cscript //nologo "%~dp0\tools\httpget.js" http://nodejs.org/dist/latest/node.exe node.exe
8 | )
9 |
10 | :: Install/Update less (assumes npm is installed globally)
11 | echo Install/update less ...
12 | call npm update --quiet
13 |
14 | :: Due to the way node_modules work, the directory depth can get very deep and go beyond MAX_PATH (260 chars).
15 | :: Therefore grab all node_modues directories and move them up to base node_modules. Node's require() will then
16 | :: traverse up and find them at the higher level. Should be fine as long as there are no versioning conflicts.
17 | :FLATTEN_NODE_MODULES
18 | echo Flatenning node_modules
19 |
20 | where flatten-packages >nul
21 | if ERRORLEVEL 1 call npm install -g flatten-packages
22 |
23 | call flatten-packages
24 |
25 | :: clean varous junk directories from node_modules
26 | :CLEAN_NODE_MODULES
27 | pushd node_modules
28 | echo Cleaning node_modules
29 | for /d /r %%D in (*) do (
30 | rem echo %%D
31 | if "%%~nD"=="build" rd /s /q "%%D"
32 | if "%%~nD"=="example" rd /s /q "%%D"
33 | if "%%~nD"=="tests" rd /s /q "%%D"
34 | if "%%~nD"=="test" rd /s /q "%%D"
35 | if "%%~nD"=="tst" rd /s /q "%%D"
36 | if "%%~nD"=="tmp" rd /s /q "%%D"
37 | if "%%~nD"=="man" rd /s /q "%%D"
38 | )
39 | :: various less stuff we don't need to redistribute
40 | rd /s /q "less\.grunt" 2>nul
41 | rd /s /q "less\.idea" 2>nul
42 | rd /s /q "less\benchmark" 2>nul
43 | rd /s /q "less\dist" 2>nul
44 | rd /s /q "less\projectFilesBackup" 2>nul
45 |
46 |
47 | :PACKAGE
48 | pushd "%~dp0"
49 | ::parse version from 'lessc --version' output "lessc 1.5.0 (LESS Compiler) [JavaScript]"
50 | for /f "tokens=2" %%V in ('bin\node bin\node_modules\less\bin\lessc --version') do set LESSVER=%%V
51 |
52 | set RELEASE_ZIP="%~dp0less.js-windows-v%LESSVER%.zip"
53 | echo Creating %RELEASE_ZIP%
54 | if exist %RELEASE_ZIP% del %RELEASE_ZIP%
55 | "%~dp0tools\7-zip\7za.exe" a %RELEASE_ZIP% bin\* -i!lessc.cmd -i!lessc-watch.cmd -i!LICENSE -i!README.md >nul
56 |
57 | popd
58 | popd
59 | popd
60 |
--------------------------------------------------------------------------------
/lessc-watch.cmd:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | CLS
3 | :: Less watcher
4 | :: Author: Alex Skrypnyk (alex.designworks@gmail.com)
5 | :: Modified: 24/09/2012
6 | :: Version 1.0
7 | :: lessc must be installed
8 | :: [Original blog post](http://blog.dotsmart.net/2010/11/26/running-the-less-js-command-line-compiler-on-windows/).
9 | SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
10 | echo Starting watching %1. Output will be writtem to %2.
11 | echo Use Ctrl-C to stop watching.
12 | for /L %%n in (1,0,10) do (
13 | call "%~dp0lessc.cmd" %*
14 | timeout /T 1 /NOBREAK>nul
15 | )
16 | ENDLOCAL
--------------------------------------------------------------------------------
/lessc.cmd:
--------------------------------------------------------------------------------
1 | @"%~dp0bin\node.exe" "%~dp0bin\node_modules\less\bin\lessc" %*
2 |
--------------------------------------------------------------------------------
/tools/7-zip/7za.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duncansmart/less.js-windows/fab2060cbd54a9126e88a92f4c25b493a92cf9bf/tools/7-zip/7za.exe
--------------------------------------------------------------------------------
/tools/7-zip/license.txt:
--------------------------------------------------------------------------------
1 | 7-Zip Command line version
2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~
3 | License for use and distribution
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 |
6 | 7-Zip Copyright (C) 1999-2010 Igor Pavlov.
7 |
8 | 7za.exe is distributed under the GNU LGPL license
9 |
10 | Notes:
11 | You can use 7-Zip on any computer, including a computer in a commercial
12 | organization. You don't need to register or pay for 7-Zip.
13 |
14 |
15 | GNU LGPL information
16 | --------------------
17 |
18 | This library is free software; you can redistribute it and/or
19 | modify it under the terms of the GNU Lesser General Public
20 | License as published by the Free Software Foundation; either
21 | version 2.1 of the License, or (at your option) any later version.
22 |
23 | This library is distributed in the hope that it will be useful,
24 | but WITHOUT ANY WARRANTY; without even the implied warranty of
25 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 | Lesser General Public License for more details.
27 |
28 | You can receive a copy of the GNU Lesser General Public License from
29 | http://www.gnu.org/
30 |
--------------------------------------------------------------------------------
/tools/httpget.js:
--------------------------------------------------------------------------------
1 | // httpget.js: download a file (Windows Script Host)
2 | // usage: cscript httpget.js
3 | // https://gist.github.com/duncansmart/5821523
4 |
5 | (function() {
6 | if (WScript.Arguments.Length != 2) {
7 | WScript.Echo("Usage: httpget.js ")
8 | WScript.Quit(1)
9 | }
10 |
11 | var url = WScript.Arguments(0)
12 | var filepath = WScript.Arguments(1)
13 |
14 | var xhr = new ActiveXObject("MSXML2.XMLHTTP")
15 |
16 | xhr.open("GET", url, false)
17 | xhr.send()
18 |
19 | if (xhr.Status == 200) {
20 |
21 | var fso = new ActiveXObject("Scripting.FileSystemObject")
22 | if (fso.FileExists(filepath))
23 | fso.DeleteFile(filepath)
24 |
25 | var stream = new ActiveXObject("ADODB.Stream")
26 | stream.Open()
27 | stream.Type = 1 //adTypeBinary
28 | stream.Write(xhr.ResponseBody)
29 | stream.Position = 0
30 | stream.SaveToFile(filepath)
31 | stream.Close()
32 | }
33 | else {
34 | WScript.Echo("Error: HTTP " + xhr.status + " "+ xhr.statusText)
35 | }
36 | })();
37 |
--------------------------------------------------------------------------------