Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Dec 28, 2017
1 parent 2b1623c commit 4e4fe84
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 392 deletions.
7 changes: 3 additions & 4 deletions index.js
@@ -1,15 +1,14 @@
var through = require('through2');
var gutil = require('gulp-util');
var applySourceMap = require('vinyl-sourcemaps-apply');
var path = require('path');
var replaceExt = require('replace-ext');
var PluginError = require('plugin-error');
var merge = require('merge');

var PluginError = gutil.PluginError;

module.exports = function (opt) {
function replaceExtension(path) {
path = path.replace(/\.coffee\.md$/, '.litcoffee');
return gutil.replaceExtension(path, '.js');
return replaceExt(path, '.js');
}

function transform(file, enc, cb) {
Expand Down

0 comments on commit 4e4fe84

Please sign in to comment.