1.1.0 • Published 10 years ago
amaze-tool v1.1.0
A tool for completing common web-site tasks.
Usage
- Install nodejs and graphicsmagick or imagemagick.
- In console
npm install -g amaze-tool - Use
amazefrom terminal:
amaze command -s ./source -d destination ...other args
Run specific command for all files in current directory. Define files or directory, as well as pass specific arguments.
amaze image-min -s ./*.* -d ./ -o 2
Optimize images in source directory and place in target directory.
--optimizationLevel, or-o0..7, by default 2.--progressivefor jpegs, by default false.--interlacedfor gifs, by default false.--multipassfor svgs, by default false.
amaze image-resize -s ./*.* -d ./
Resize images in source directory and place them to target directory.
--width, or-w, optional--height, or-h, optional--upscale, defaultfalse--crop, defaultfalse--gravity, defaultCenter--quality, 0..1, default1--format, redefine format of output file--filterto use when resize: Point, Box, Triangle, Hermite, Hanning, Hamming, Blackman, Gaussian, Quadratic, Cubic, Catrom, Mitchell, Lanczos, Bessel, Sinc--sharpen, default false--samplingFactor, chroma subsamplin--background
amaze js-min
Minify js files.
amaze css-min -s ./*.css -d ./
Minify css files.
amaze css-concat -s ./*.css -d ./out.css
Merge css into a single file, resolving @imports, urls etc.
amaze concat -s ./. -d ./out
Concat files.