-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
8,486 additions
and
1,732 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm test |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm test |
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 |
---|---|---|
@@ -1,23 +1,8 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
'use strict' | ||
|
||
module.exports = function(robot, scripts) { | ||
const scriptsPath = path.resolve(__dirname, 'src'); | ||
return fs.exists(scriptsPath, function(exists) { | ||
if (exists) { | ||
return (() => { | ||
const result = []; | ||
for (let script of Array.from(fs.readdirSync(scriptsPath))) { | ||
if ((scripts != null) && !Array.from(scripts).includes('*')) { | ||
if (Array.from(scripts).includes(script)) { result.push(robot.loadFile(scriptsPath, script)); } else { | ||
result.push(undefined); | ||
} | ||
} else { | ||
result.push(robot.loadFile(scriptsPath, script)); | ||
} | ||
} | ||
return result; | ||
})(); | ||
} | ||
}); | ||
}; | ||
const path = require('path') | ||
|
||
module.exports = (robot) => { | ||
const scriptsPath = path.resolve(__dirname, 'src') | ||
robot.loadFile(scriptsPath, 'youtube.js') | ||
} |
Oops, something went wrong.