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

Commit

Permalink
feat: pob upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Feb 28, 2017
1 parent 2ca1cea commit 00a7c7d
Show file tree
Hide file tree
Showing 20 changed files with 3,437 additions and 55 deletions.
11 changes: 9 additions & 2 deletions .pob.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"envs": [
"node6"
"node6",
"node7",
"webpack-node7"
],
"react": false,
"documentation": false,
"testing": false
"testing": false,
"entries": [
"index"
],
"flow": false,
"doclets": false
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Slack handler for nightingale

[![Dependency ci Status][dependencyci-image]][dependencyci-url]
[![Dependency Status][daviddm-image]][daviddm-url]

## Install
Expand Down Expand Up @@ -33,3 +34,5 @@ configure([
[npm-url]: https://npmjs.org/package/nightingale-slack
[daviddm-image]: https://david-dm.org/nightingalejs/nightingale-slack.svg?style=flat-square
[daviddm-url]: https://david-dm.org/nightingalejs/nightingale-slack
[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-slack/badge?style=flat-square
[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-slack
2 changes: 1 addition & 1 deletion git-hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

if [[ `git diff HEAD@{1} --stat -- package.json` != "" ]]; then
npm install ; npm prune
yarn
fi
2 changes: 1 addition & 1 deletion git-hooks/post-merge
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

if [[ `git diff HEAD@{1} --stat -- package.json` != "" ]]; then
npm install ; npm prune
yarn
fi
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
var production = process.env.NODE_ENV === 'production';
module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/');
if (process.version.startsWith && process.version.startsWith('v7.'))
return module.exports = require('./lib-node7' + (production ? '' : '-dev') + '/index');
if (process.version.startsWith && process.version.startsWith('v6.'))
return module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/index');
throw new Error('Platform not supported: ' + process.version + '.');
46 changes: 12 additions & 34 deletions lib-node6-dev/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib-node6-dev/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib-node6/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib-node6/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 00a7c7d

Please sign in to comment.