This repository has been archived by the owner on Jun 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
488 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Port of YUI CSS Compressor from Java to NodeJS | ||
* Author: Franck Marcia - https://github.com/fmarcia | ||
* | ||
* Based on parts of: | ||
* YUI Compressor | ||
* Author: Julien Lecomte - http://www.julienlecomte.net/ | ||
* Author: Isaac Schlueter - http://foohack.com/ | ||
* Author: Stoyan Stefanov - http://phpied.com/ | ||
* Copyright (c) 2009 Yahoo! Inc. All rights reserved. | ||
* The copyrights embodied in the content of this file are licensed | ||
* by Yahoo! Inc. under the BSD (revised) open source license. | ||
*/ | ||
|
||
|
||
module.exports = require('./uglifycss-lib'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name" : "uglifycss", | ||
"author" : { | ||
"name" : "Franck Marcia", | ||
"email" : "franck.marcia@gmail.com", | ||
"url" : "https://github.com/fmarcia" | ||
}, | ||
"version" : "0.9", | ||
"main" : "./index.js", | ||
"bin" : { | ||
"uglifycss" : "./uglifycss" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:fmarcia/UglifyCSS.git" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#! /usr/bin/env node | ||
|
||
/* | ||
* UglifyCSS | ||
* Port of YUI CSS Compressor from Java to NodeJS | ||
* Author: Franck Marcia - https://github.com/fmarcia | ||
* | ||
* Based on parts of: | ||
* YUI Compressor | ||
* Author: Julien Lecomte - http://www.julienlecomte.net/ | ||
* Author: Isaac Schlueter - http://foohack.com/ | ||
* Author: Stoyan Stefanov - http://phpied.com/ | ||
* Copyright (c) 2009 Yahoo! Inc. All rights reserved. | ||
* The copyrights embodied in the content of this file are licensed | ||
* by Yahoo! Inc. under the BSD (revised) open source license. | ||
*/ | ||
|
||
|
||
var sys = require('sys'), | ||
uglifycss = require('uglifycss'), | ||
options = { | ||
maxLineLen: 0, | ||
expandVars: false, | ||
cuteComments: true | ||
}, | ||
content = | ||
'/*!\n' + | ||
' * UglifyCSS test\n' + | ||
' */\n' + | ||
'.class {\n' + | ||
' font-family : Helvetica Neue, Arial, Helvetica, \'Liberation Sans\', FreeSans, sans-serif;\n' + | ||
' color : #000000;\n' + | ||
' margin: 0 0 0 0;\n' + | ||
' font-size : 12px;\n' + | ||
' font-weight :bold;\n' + | ||
' padding : 5px;\n' + | ||
' position : absolute;\n' + | ||
' z-index : 100000;\n' + | ||
'}\n'; | ||
|
||
|
||
sys.print(uglifycss.processString(content, options) + '\n'); | ||
//uglifycss.processFiles(filenames, options) + '\n'); |
Oops, something went wrong.