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 7940963 commit 79af44c
Show file tree
Hide file tree
Showing 100 changed files with 5,253 additions and 339 deletions.
11 changes: 9 additions & 2 deletions packages/nightingale-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-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-formatter/README.md
Expand Up @@ -2,8 +2,11 @@

Nightingale 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 @@ -23,5 +26,12 @@ console.log(nightingaleFormatter);
[npm-url]: https://npmjs.org/package/nightingale-formatter
[daviddm-image]: https://david-dm.org/nightingalejs/nightingale-formatter.svg?style=flat-square
[daviddm-url]: https://david-dm.org/nightingalejs/nightingale-formatter
[build-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-formatter/master.svg?style=flat-square
[build-status-url]: https://circleci.com/gh/nightingalejs/nightingale-formatter
[dependencyci-image]: https://dependencyci.com/github/nightingalejs/nightingale-formatter/badge?style=flat-square
[dependencyci-url]: https://dependencyci.com/github/nightingalejs/nightingale-formatter
[circleci-status-image]: https://img.shields.io/circleci/project/nightingalejs/nightingale-formatter/master.svg?style=flat-square
[circleci-status-url]: https://circleci.com/gh/nightingalejs/nightingale-formatter
[travisci-status-image]: https://img.shields.io/travis/nightingalejs/nightingale-formatter/master.svg?style=flat-square
[travisci-status-url]: https://travis-ci.org/nightingalejs/nightingale-formatter
[coverage-image]: https://img.shields.io/codecov/c/github/nightingalejs/nightingale-formatter/master.svg?style=flat-square
[coverage-url]: https://codecov.io/gh/nightingalejs/nightingale-formatter
[docs-coverage-url]: https://nightingalejs.github.io/nightingale-formatter/coverage/lcov-report/
11 changes: 6 additions & 5 deletions packages/nightingale-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/
2 changes: 1 addition & 1 deletion packages/nightingale-formatter/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-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-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 + '.');
72 changes: 17 additions & 55 deletions packages/nightingale-formatter/lib-node6-dev/formatObject.js

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

0 comments on commit 79af44c

Please sign in to comment.