Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Add ie.styl tech #56

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions lib/techs/ie.styl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
var Q = require('qq'),
PATH = require('../path'),
INHERIT = require('inherit'),
Tech = require('./styl').Tech;

exports.Tech = INHERIT(Tech, {

getSuffixes: function() {
var n = this.getTechName();
return ['styl', n];
},

getBuildResults: function(prefixes, outputDir, outputName) {
var _this = this;
return Q.when(this.filterPrefixes(prefixes, this.getSuffixes()), function(paths) {
var getChunks = Q.shallow(paths.map(function(path) {
return _this.getBuildResultChunk(PATH.relative(outputDir, path));
})),
getFirst = '';

return Q.join(getFirst, getChunks, function(first, res) {
res.unshift(first);
return res;
});
});
},

storeBuildResults: function(prefix, res) {
return this.storeBuildResult(this.getPath(prefix), this.getTechName(), res);
}


});