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 e25e479 commit 8d10bc9
Show file tree
Hide file tree
Showing 21 changed files with 3,603 additions and 33 deletions.
11 changes: 9 additions & 2 deletions packages/nightingale-ansi-formatter/.pob.json
@@ -1,8 +1,15 @@
{
"envs": [
"node6"
"node6",
"node7",
"webpack-node7"
],
"react": false,
"testing": true,
"documentation": false
"documentation": false,
"entries": [
"index"
],
"flow": false,
"doclets": false
}
2 changes: 2 additions & 0 deletions packages/nightingale-ansi-formatter/.travis.yml
@@ -1,8 +1,10 @@
language: node_js
node_js:
- node
- "6"
- "4"

cache:
yarn: true
directories:
- node_modules
18 changes: 14 additions & 4 deletions packages/nightingale-ansi-formatter/README.md
Expand Up @@ -2,8 +2,11 @@

Nightingale ANSI formatter

[![Build Status][build-status-image]][build-status-url] [![Dependency Status][daviddm-image]][daviddm-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]

## Install

Expand All @@ -21,5 +24,12 @@ import nightingaleAnsiFormatter from 'nightingale-ansi-formatter';
[npm-url]: https://npmjs.org/package/nightingale-ansi-formatter
[daviddm-image]: https://david-dm.org/nightingalejs/nightingale-ansi-formatter.svg?style=flat-square
[daviddm-url]: https://david-dm.org/nightingalejs/nightingale-ansi-formatter
[build-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-ansi-formatter/master.svg?style=flat-square
[build-status-url]: https://circleci.com/gh/nightingalejs/nightingale-ansi-formatter
[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-ansi-formatter/badge?style=flat-square
[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-ansi-formatter
[circleci-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-ansi-formatter/master.svg?style=flat-square
[circleci-status-url]: https://circleci.com/gh/nightingalejs/nightingale-ansi-formatter
[travisci-status-image]: https://img.shields.io/travis/nightingalejs/nightingale-ansi-formatter/master.svg?style=flat-square
[travisci-status-url]: https://travis-ci.org/nightingalejs/nightingale-ansi-formatter
[coverage-image]: https://img.shields.io/codecov/c/github/nightingalejs/nightingale-ansi-formatter/master.svg?style=flat-square
[coverage-url]: https://codecov.io/gh/nightingalejs/nightingale-ansi-formatter
[docs-coverage-url]: https://nightingalejs.github.io/nightingale-ansi-formatter/coverage/lcov-report/
11 changes: 6 additions & 5 deletions packages/nightingale-ansi-formatter/circle.yml
@@ -1,6 +1,6 @@
machine:
node:
version: 6.6.0
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/
@@ -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-ansi-formatter/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: 5 additions & 1 deletion packages/nightingale-ansi-formatter/index.js
@@ -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 + '.');
2 changes: 1 addition & 1 deletion packages/nightingale-ansi-formatter/lib-node6-dev/index.js

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

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-ansi-formatter/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 packages/nightingale-ansi-formatter/lib-node6/index.js.map

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

71 changes: 71 additions & 0 deletions packages/nightingale-ansi-formatter/lib-node7-dev/index.js

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

0 comments on commit 8d10bc9

Please sign in to comment.