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 98da690 commit 3e5e914
Show file tree
Hide file tree
Showing 26 changed files with 3,752 additions and 38 deletions.
11 changes: 9 additions & 2 deletions packages/nightingale-html-formatter/.pob.json
@@ -1,10 +1,17 @@
{
"envs": [
"node6",
"node7",
"webpack-modern-browsers",
"webpack"
"webpack",
"webpack-node7"
],
"react": false,
"testing": true,
"documentation": false
"documentation": false,
"entries": [
"index"
],
"flow": false,
"doclets": false
}
2 changes: 2 additions & 0 deletions packages/nightingale-html-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-html-formatter/README.md
Expand Up @@ -2,8 +2,11 @@

Nightingale HTML 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 nightingaleHtmlFormatter from 'nightingale-html-formatter';
[npm-url]: https://npmjs.org/package/nightingale-html-formatter
[daviddm-image]: https://david-dm.org/nightingalejs/nightingale-html-formatter.svg?style=flat-square
[daviddm-url]: https://david-dm.org/nightingalejs/nightingale-html-formatter
[build-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-html-formatter/master.svg?style=flat-square
[build-status-url]: https://circleci.com/gh/nightingalejs/nightingale-html-formatter
[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-html-formatter/badge?style=flat-square
[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-html-formatter
[circleci-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-html-formatter/master.svg?style=flat-square
[circleci-status-url]: https://circleci.com/gh/nightingalejs/nightingale-html-formatter
[travisci-status-image]: https://img.shields.io/travis/nightingalejs/nightingale-html-formatter/master.svg?style=flat-square
[travisci-status-url]: https://travis-ci.org/nightingalejs/nightingale-html-formatter
[coverage-image]: https://img.shields.io/codecov/c/github/nightingalejs/nightingale-html-formatter/master.svg?style=flat-square
[coverage-url]: https://codecov.io/gh/nightingalejs/nightingale-html-formatter
[docs-coverage-url]: https://nightingalejs.github.io/nightingale-html-formatter/coverage/lcov-report/
11 changes: 6 additions & 5 deletions packages/nightingale-html-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-html-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-html-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-html-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-html-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-html-formatter/lib-node6/index.js.map

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

26 changes: 26 additions & 0 deletions packages/nightingale-html-formatter/lib-node7-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.

26 changes: 26 additions & 0 deletions packages/nightingale-html-formatter/lib-node7/index.js

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

1 change: 1 addition & 0 deletions packages/nightingale-html-formatter/lib-node7/index.js.map

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.

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.

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

18 changes: 18 additions & 0 deletions packages/nightingale-html-formatter/lib-webpack-node7-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.

18 changes: 18 additions & 0 deletions packages/nightingale-html-formatter/lib-webpack-node7/index.js

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

0 comments on commit 3e5e914

Please sign in to comment.