Skip to content

Commit

Permalink
feat: pob upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Mar 10, 2018
1 parent c3622a6 commit c98c563
Show file tree
Hide file tree
Showing 31 changed files with 1,601 additions and 891 deletions.
9 changes: 8 additions & 1 deletion packages/nightingale-debug/.pob.json
@@ -1,12 +1,19 @@
{
"envs": [
"node6",
"node7",
"older-node",
"webpack-modern-browsers",
"webpack",
"webpack-node7",
"browsers"
],
"react": false,
"documentation": false,
"testing": true
"testing": true,
"entries": [
"index"
],
"flow": false,
"doclets": false
}
2 changes: 2 additions & 0 deletions packages/nightingale-debug/.travis.yml
@@ -1,8 +1,10 @@
language: node_js
node_js:
- node
- "6"
- "4"

cache:
yarn: true
directories:
- node_modules
15 changes: 8 additions & 7 deletions packages/nightingale-debug/README.md
@@ -1,9 +1,9 @@
# nightingale-debug [![NPM version][npm-image]][npm-url]

Nightingale console debug
Nightingale debug

[![Circle ci Status][build-status-image]][build-status-url]
[![Travis ci Status][travisci-status-image]][travisci-status-url]
[![Build Status][circleci-status-image]][circleci-status-url]
[![Travis Status][travisci-status-image]][travisci-status-url]
[![Dependency ci Status][dependencyci-image]][dependencyci-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![Coverage percentage][coverage-image]][coverage-url]
Expand Down Expand Up @@ -60,13 +60,14 @@ localStorage.debug = '*,-app:*'; // debug everything except app and all its chil

[npm-image]: https://img.shields.io/npm/v/nightingale-debug.svg?style=flat-square
[npm-url]: https://npmjs.org/package/nightingale-debug
[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-debug/badge?style=flat-square
[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-debug
[daviddm-image]: https://david-dm.org/nightingalejs/nightingale-debug.svg?style=flat-square
[daviddm-url]: https://david-dm.org/nightingalejs/nightingale-debug
[build-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-debug/master.svg?style=flat-square
[build-status-url]: https://circleci.com/gh/nightingalejs/nightingale-debug
[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-debug/badge?style=flat-square
[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-debug
[circleci-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-debug/master.svg?style=flat-square
[circleci-status-url]: https://circleci.com/gh/nightingalejs/nightingale-debug
[travisci-status-image]: https://img.shields.io/travis/nightingalejs/nightingale-debug/master.svg?style=flat-square
[travisci-status-url]: https://travis-ci.org/nightingalejs/nightingale-debug
[coverage-image]: https://img.shields.io/codecov/c/github/nightingalejs/nightingale-debug/master.svg?style=flat-square
[coverage-url]: https://codecov.io/gh/nightingalejs/nightingale-debug
[docs-coverage-url]: https://nightingalejs.github.io/nightingale-debug/coverage/lcov-report/
11 changes: 6 additions & 5 deletions packages/nightingale-debug/circle.yml
@@ -1,6 +1,6 @@
machine:
node:
version: 6.9.1
version: 7.6.0

general:
branches:
Expand All @@ -9,18 +9,19 @@ general:

dependencies:
cache_directories:
- ~/.cache/yarn
- node_modules
override:
- npm prune && npm install --no-progress
- yarn

test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
override:
- npm run preversion
- npm run test
- yarn run preversion
- yarn run test
- XUNIT_FILE=$CIRCLE_TEST_REPORTS/junit/xunit.xml node_modules/.bin/mocha --harmony --recursive --reporter xunit-file -u tdd test/node6
- npm run generate:test-coverage
- yarn run generate:test-coverage
post:
- bash <(curl -s https://codecov.io/bash)
- cp -R coverage $CIRCLE_ARTIFACTS/
2 changes: 1 addition & 1 deletion packages/nightingale-debug/git-hooks/post-checkout
@@ -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 packages/nightingale-debug/git-hooks/post-merge
@@ -1,5 +1,5 @@
#!/bin/bash

if [[ `git diff HEAD@{1} --stat -- package.json` != "" ]]; then
npm install ; npm prune
yarn
fi
6 changes: 4 additions & 2 deletions packages/nightingale-debug/index.js
@@ -1,4 +1,6 @@
var production = process.env.NODE_ENV === 'production';
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') + '/');
return module.exports = require('./lib-older-node' + (production ? '' : '-dev') + '/');
return module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/index');
return module.exports = require('./lib-older-node' + (production ? '' : '-dev') + '/index');
44 changes: 15 additions & 29 deletions packages/nightingale-debug/lib-browsers-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 packages/nightingale-debug/lib-browsers-dev/index.js.map

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

0 comments on commit c98c563

Please sign in to comment.