Skip to content

Commit

Permalink
Merge pull request #76 from idobata/greenkeeper/initial
Browse files Browse the repository at this point in the history
Update dependencies to enable Greenkeeper 🌴
  • Loading branch information
ursm authored May 15, 2017
2 parents ad58dbf + d93e399 commit 64d6ed9
Show file tree
Hide file tree
Showing 6 changed files with 1,270 additions and 26 deletions.
37 changes: 20 additions & 17 deletions Brocfile.js
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]);
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# idobata-hooks

[![Greenkeeper badge](https://badges.greenkeeper.io/idobata/idobata-hooks.svg)](https://greenkeeper.io/)

[![Build Status](https://travis-ci.org/idobata/idobata-hooks.svg?branch=master)](https://travis-ci.org/idobata/idobata-hooks)
[![Dependency Status](https://gemnasium.com/idobata/idobata-hooks.svg)](https://gemnasium.com/idobata/idobata-hooks)
[![Code Climate](https://codeclimate.com/github/idobata/idobata-hooks.png)](https://codeclimate.com/github/idobata/idobata-hooks)
Expand Down
2 changes: 1 addition & 1 deletion app/templates/idobata-hooks/github/help.hbs
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>
2 changes: 2 additions & 0 deletions circle.yml
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:
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
},
"homepage": "https://github.com/idobata/idobata-hooks",
"devDependencies": {
"broccoli": "^0.13.3",
"broccoli-cli": "0.0.1",
"broccoli-concat": "0.0.13",
"broccoli-merge-trees": "^0.2.1",
"broccoli-rename-files": "0.0.2",
"broccoli-render-template": "0.0.3",
"broccoli-static-compiler": "^0.2.1",
"broccoli-template": "^0.1.1",
"broccoli": "^1.1.1",
"broccoli-cli": "^1.0.0",
"broccoli-concat": "^3.2.2",
"broccoli-filter": "^1.2.4",
"broccoli-funnel": "^1.2.0",
"broccoli-merge-trees": "^2.0.0",
"hamljs": "^0.6.2"
}
}
Loading

0 comments on commit 64d6ed9

Please sign in to comment.