A tool for completing common web-site tasks.
Usage
- Install nodejs and graphicsmagick or imagemagick.
- In console
npm install -g amaze-tool
- Use
amaze
from 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-o
0..7, by default 2.--progressive
for jpegs, by default false.--interlaced
for gifs, by default false.--multipass
for 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--filter
to 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.