-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from idobata/greenkeeper/initial
Update dependencies to enable Greenkeeper 🌴
- Loading branch information
Showing
6 changed files
with
1,270 additions
and
26 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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
var concat = require('broccoli-concat'); | ||
var mergeTrees = require('broccoli-merge-trees'); | ||
var pickFiles = require('broccoli-static-compiler'); | ||
var renameFiles = require('broccoli-rename-files'); | ||
var renderTemplates = require('broccoli-render-template'); | ||
const Filter = require('broccoli-filter'); | ||
const Funnel = require('broccoli-funnel'); | ||
const concat = require('broccoli-concat'); | ||
const haml = require('hamljs'); | ||
const mergeTrees = require('broccoli-merge-trees'); | ||
|
||
var styles = concat('lib/hooks', { | ||
class RenderHaml extends Filter { | ||
processString(content) { | ||
return haml.render(content).trimLeft(); | ||
} | ||
|
||
getDestFilePath(relativePath) { | ||
return `templates/idobata-hooks/${relativePath.replace(/\.html\.haml$/, '.hbs')}`; | ||
} | ||
} | ||
|
||
const styles = concat('lib/hooks', { | ||
inputFiles: ['*/style.sass'], | ||
outputFile: '/styles/_idobata-hooks.sass' | ||
}); | ||
|
||
var templates = pickFiles('lib/hooks', { | ||
srcDir: '/', | ||
files: ['*/help.html.haml'], | ||
destDir: 'templates/idobata-hooks' | ||
const templates = new Funnel('lib/hooks', { | ||
include: ['*/help.html.haml'] | ||
}); | ||
|
||
templates = renderTemplates(templates); | ||
templates = renameFiles(templates, { | ||
transformFilename: function(filename, basename, extname) { | ||
return basename.replace('.html', '.hbs'); | ||
} | ||
}); | ||
const helps = new RenderHaml(templates); | ||
|
||
module.exports = mergeTrees([styles, templates]); | ||
module.exports = mergeTrees([styles, helps]); |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<dl> | ||
<dt>Usage</dt> | ||
<dd>You can add webhook URL to your repository. | ||
<br/>See <a href='https://help.github.com/articles/about-webhooks/' target='_blank'><i class='fa fa-external-link'></i> About Webhooks | GitHub Help</a> for more details.</dd></dl> | ||
<br/>See <a href='https://help.github.com/articles/about-webhooks/' target='_blank'><i class='fa fa-external-link'></i> About Webhooks | GitHub Help</a> for more details.</dd></dl> |
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,6 +1,8 @@ | ||
machine: | ||
ruby: | ||
version: 2.3.1 | ||
node: | ||
version: 6 | ||
|
||
notify: | ||
webhooks: | ||
|
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
Oops, something went wrong.