Comparing version 1.1.2 to 1.1.3
# Change Log | ||
### 1.1.0 | ||
* added support for comma separated glob patterns | ||
* added support for comma separated glob patterns | ||
``` | ||
@@ -6,0 +6,0 @@ import nodeRev from 'node-rev' |
{ | ||
"name": "node-rev", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "cli and node api version of gulp/grunt-rev, uses rev-path, rev-hash to generate a json of assets", | ||
@@ -5,0 +5,0 @@ "keywords": "rev, rev-path, rev-hash, assets, manifest", |
@@ -8,3 +8,3 @@ # cli for generating asset manifests. based on gulp-rev, and uses the rev- modules for the hashing algo. | ||
### why? | ||
`gulp-rev` and `grunt-rev` are great, but what if you want to just use package.json scripts for your dev and build? | ||
`gulp-rev` and `grunt-rev` are great, but what if you want to just use package.json scripts for your dev and build process? | ||
@@ -23,2 +23,10 @@ ### node api | ||
this will result in the rev'd files being placed dist directory at the root of your project, and the asset menifest json file being placed in dist/css-assets.json. | ||
example: | ||
``` | ||
{"test.css":"test-934823cbc6.css"} | ||
``` | ||
### cli | ||
@@ -29,1 +37,9 @@ The cli is installed as node-rev in the .bin directory of your projects node_modules folder | ||
``` | ||
sample package.json configuration: | ||
``` | ||
"scripts": { | ||
"css-manifest": "nodeRev 'build/account/public/style/**/*.css' --hash -o 'build/account/public/style/' --file 'build/account/css-assets.json'" | ||
} | ||
``` |
80773
42