Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
224 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<html><head> | ||
<!-- build:css out/file.css --> | ||
<link rel="stylesheet" href="in/file1.css"> | ||
<link rel="stylesheet" href="in/file2.css"> | ||
<!-- endbuild --> | ||
</head></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<html><head> | ||
<!-- build:css out/file.css --> | ||
<link rel="stylesheet" href="file1.css"> | ||
<link rel="stylesheet" href="file2.css"> | ||
<!-- endbuild --> | ||
</head></html> |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html><body> | ||
<!-- build:js out/file.js --> | ||
<script src="foo-process.js"></script> | ||
<script src="foo-template.js"></script> | ||
<script src="foo.js"></script> | ||
<!-- endbuild --> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<html><body> | ||
<!-- build:js out/file.js --> | ||
<script data-test="my-attr" src="in/file1.js"></script> | ||
<script data-test="my-attr" src="in/file2.js"></script> | ||
<!-- endbuild --> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var ReadlineStub = require('./readline'); | ||
var _ = require("lodash"); | ||
var inquirer = _.clone( require('inquirer') ); | ||
|
||
var readline = new ReadlineStub(); | ||
inquirer.ui.Prompt.prototype.rl = readline; | ||
|
||
module.exports = { | ||
prompt: function (config, cb) { | ||
inquirer.prompt.apply(inquirer, arguments); | ||
}, | ||
|
||
readline: readline | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
var EventEmitter = require("events").EventEmitter; | ||
var sinon = require("sinon"); | ||
var util = require("util"); | ||
var _ = require("lodash"); | ||
|
||
var stub = { | ||
write : sinon.stub().returns(stub), | ||
moveCursor : sinon.stub().returns(stub), | ||
setPrompt : sinon.stub().returns(stub), | ||
close : sinon.stub().returns(stub), | ||
pause : sinon.stub().returns(stub), | ||
resume : sinon.stub().returns(stub), | ||
_getCursorPos : sinon.stub().returns(stub), | ||
output : { | ||
end : sinon.stub().returns(stub), | ||
mute : sinon.stub().returns(stub), | ||
unmute : sinon.stub().returns(stub), | ||
write : sinon.stub().returns(stub) | ||
} | ||
}; | ||
|
||
var ReadlineStub = function() { | ||
EventEmitter.apply( this, arguments ); | ||
}; | ||
|
||
util.inherits( ReadlineStub, EventEmitter ); | ||
_.assign( ReadlineStub.prototype, stub ); | ||
|
||
|
||
module.exports = ReadlineStub; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters