----------------------------------------------------------------------------- ESC (ECMAScript Cruncher) * Version : 1.13 * Date : 2005-02-06 21:19:57 [+0100] * License : GNU GPL (http://www.gnu.org/copyleft/gpl.txt) * Copyright (C) 2001-2005 Thomas Loo
--------------------------------------------------------------------------- ESC is an ECMAScript(*) pre-processor enabling an unlimited number of external scripts to be compressed/crunched into tight, bandwidth-optimized packages. ESC supports compressing of external sources only. Trying to process scripts inlined in HTML, ASP, PHP or equivalent pages are NOT recommended with this version of ESC. This feature might be added in a future version. Type "cscript ESC.wsf -help" for usage instructions.
ESC is built using components from the Soya Scripting API 1.0.0-b10, a uni-host/cross-browser ECMAScript compliant class-library distributed freely under the terms of the BSD License. The Soya Scripting API, 'lib-soya' and the Soya SDK can be found at http://www.saltstorm.net/ --------------------------------------------------------------------------- * ECMAScript is the international standard for javascript. -----------------------------------------------------------------------------
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
------------------------------------------------------------------------------ Usage: cscript ESC.wsf -l [0-4] -ow output.js foo.js bar.js C:\scripts\baz... ----------------------------------------------------------------------------- -a [-about] : Description page -c [-copyright] : Copyright/license notice -e [-example] : Examples of usage -h [-help] : This help-screen ----------------------------------------------------------------------------- -l [-level] [01(2)34] : [optional] Set crunch-level (4 sets -$ on) -s [-silent] : [optional] Run silent, nada stdout -v [-verbose] : [optional] Run in verbose mode -$ : [optional] Activate variable-substitution engine ----------------------------------------------------------------------------- -oa : Target filename for appending -ow : Target filename for writing -ow STDOUT : Write stream to STDOUT ----------------------------------------------------------------------------- : [required] file(s) and/or directories containing scripts to crunch... (paths containing spaces must be quoted)
----------------------------------------------------------------------------- Examples of usage.
Crunch 'original1.js','original2.js' and 'original3.js' at level 2 (default) and save the output as 'crunched.js'. Any previous file named 'crunched.js' will be overwritten. X:\cscript ESC.wsf -ow crunched.js original1.js original2.js original3.js ---------------------------------------------------------------------------
Grab all scriptfiles (.js) in directory 'C:\script-directory' and crunch them at level 1 (comment and empty line removal only) and append the result to 'crunched.js'. If 'crunched.js' doesn't exist, it will be created. X:\cscript ESC.wsf -l 1 -oa crunched.js C:\script-directory ---------------------------------------------------------------------------
Subject 'original1.js' and 'original2.js' for variable substitution, but perform no comment or whitespace removal. Redirect output to STDOUT instead of writing to file. X:\cscript ESC.wsf -l 0 -$ -ow STDOUT original1.js original2.js ---------------------------------------------------------------------------
Crunch 'original.js' using variable substitution and remove any occurance of whitespace (where permitted...) and save it as 'crunched.js' (equals -l 3 -$) X:\cscript ESC.wsf -l 4 -ow crunched.js original.js ---------------------------------------------------------------------------
Try 'ESC.wsf -help' for information about available run-time directives. -----------------------------------------------------------------------------
ESC must be run from a DOS command prompt under cscript.exe. Do you want to switch host and have ESC bring up a helpscreen ?
ESC needs JScript 5.5 or higher to score... You need to update your version of JScript to run ESC. Read the 'Requirements' section in the manual for information how to obtain and install the latest version of Microsofts 'Windows Script' package.
abstract break continue const class catch case debugger default double delete do enum extends else function finally float false for get instanceof implements import int in if long null new protected private package public return switch static super set typeof throw true this try undefined void var while with getter setter __defineGetter__ __defineSetter__ end elif cc_on _win32 _win16 _mac _alpha _x86 _mc680x0 _PowerPC _jscript _jscript_build _jscript_version Array Boolean Date Enumerator Error Function Math Number Object RegExp String VBArray
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn