----------------------------------------------------------------------------- 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.
추상 break continue const class catch case debugger default double delete do enum 확장 else 함수 마지막으로 float false for get instanceof 구현 import int in if long null new protected private package public return switch static super set typeof throw true this 시도 undefine void var while with getter setter __defineGetter__ __defineSetter__ end elif cc_on _win32 _win16 _mac _alpha _x86 _mc680x0 _PowerPC _jscript _jscript_build _jscript_version 배열 부울 날짜 열거자 오류 함수 수학 숫자 객체 RegExp 문자열 VBArray
패키지>
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.