amaze-tool

1.1.0 • Public • Published

A tool for completing common web-site tasks.

Usage

  1. Install nodejs and graphicsmagick or imagemagick.
  2. In console npm install -g amaze-tool
  3. 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, default false
  • --crop, default false
  • --gravity, default Center
  • --quality, 0..1, default 1
  • --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.

/amaze-tool/

    Package Sidebar

    Install

    npm i amaze-tool

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • dfcreative