node package manager

easy-release

Easy Release

easy-release is a web release tool.

Features

  • minify js and css
  • add hash to filename

Prerequisites

Node 7.0 +

Usage

npm install -g easy-release

Create release.json in your project's root directory:

{
    "outputDir": "release",
    "copy": [
        "public/**/*"
    ]
    "staticFiles": [
        "public/**/*"
    ],
    "templateExtension": "html"
}

And then run er.

Required Options

You have to set the required options.

outputDir

Accept: string

Set the release output directory.

staticFiles

Set the static files.

templateExtension

Accept: string

Your template extension.

copy

Accept: [string|object]

What sources you want to release. Use glob syntax.

If you want to rename some files like path/to/source/file to other, you can use object which key is source path and value is dest path.

Example:

{
    "copy": [
        "public/**/*",
        {
            "bin/main.js": "bin.js"
        }
    ]
}

Other Options

exclude

Accept: [string]

What sources you don't want to release. Use glob syntax.

hashExclude

Accept: [string]

What source you don't want to add hash to the filename. Notice that favicon.ico will always be excluded. Use glob syntax.

Thanks

gulp-rev-all

License

MIT