Skip to content

Commit

Permalink
Use cshtml extension
Browse files Browse the repository at this point in the history
  • Loading branch information
nic-pentia committed Nov 16, 2017
1 parent 2c948d7 commit fb9de8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const AssetRevving = require('@pentia/asset-revving');
const gutil = require('gulp-util');
const path = require('path');
const through = require('through2');
const fileextension = 'cshtml';

module.exports = opts => {
return through.obj( function (file, enc, callback) {
Expand All @@ -25,12 +26,12 @@ module.exports = opts => {

let newFile = new gutil.File({
base: file.base,
path: path.join(file.base, path.basename(file.path, path.extname(file.path)) + '.html'),
path: path.join(file.base, path.basename(file.path, path.extname(file.path)) + '.' + fileextension),
contents: new Buffer(product.contents)
});

stream.push(newFile);

callback(null, file);
});
};
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@pentia/gulp-asset-revving",
"version": "1.2.0",
"version": "2.0.0",
"description": "Gulp wrapper for asset-revving",
"main": "index.js",
"dependencies": {
"gulp-util": "^3.0.8",
"through2": "^2.0.3",
"@pentia/asset-revving": "1.2.0"
"@pentia/asset-revving": "2.0.0"
},
"devDependencies": {},
"scripts": {
Expand Down

0 comments on commit fb9de8d

Please sign in to comment.