mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
Added make min for minification though google's js closure compiler.
This commit is contained in:
BIN
build/compiler.jar
Normal file
BIN
build/compiler.jar
Normal file
Binary file not shown.
7
build/header.js
Normal file
7
build/header.js
Normal file
@@ -0,0 +1,7 @@
|
||||
//
|
||||
// LESS - Leaner CSS v@VERSION
|
||||
// http://lesscss.org
|
||||
//
|
||||
// Copyright (c) 2010, Alexis Sellier
|
||||
// Licensed under the MIT license.
|
||||
//
|
||||
18
makefile
18
makefile
@@ -10,18 +10,26 @@ test:
|
||||
benchmark:
|
||||
node benchmark/less-benchmark.js
|
||||
|
||||
SRC = lib/less
|
||||
|
||||
#
|
||||
# Build less.js
|
||||
#
|
||||
SRC = lib/less
|
||||
BUILD = build/less.js
|
||||
BUILD_MIN = build/less.min.js
|
||||
HEADER = build/header.js
|
||||
VERSION = `cat VERSION`
|
||||
|
||||
less:
|
||||
@@mkdir -p build
|
||||
@@cat ${SRC}/parser.js\
|
||||
${SRC}/functions.js\
|
||||
${SRC}/tree/*.js > build/less.js
|
||||
@@echo build/less.js built.
|
||||
${SRC}/tree/*.js > ${BUILD}
|
||||
@@echo ${BUILD} built.
|
||||
|
||||
min:
|
||||
min: less
|
||||
@@echo Minifying...
|
||||
@@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${BUILD_MIN}
|
||||
@@java -jar build/compiler.jar\
|
||||
--js ${BUILD} >> ${BUILD_MIN}
|
||||
|
||||
.PHONY: test benchmark
|
||||
|
||||
Reference in New Issue
Block a user