Skip to content

Commit

Permalink
feat: support node 4
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Mar 10, 2018
1 parent e2dd96c commit efee51e
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 31 deletions.
1 change: 1 addition & 0 deletions packages/nightingale-raw-formatter/.pob.json
Expand Up @@ -2,6 +2,7 @@
"envs": [
"node6",
"node7",
"older-node",
"module-modern-browsers",
"module",
"module-node7"
Expand Down
1 change: 1 addition & 0 deletions packages/nightingale-raw-formatter/.travis.yml
Expand Up @@ -2,6 +2,7 @@ language: node_js
node_js:
- node
- "6"
- "4"

cache:
yarn: true
Expand Down
2 changes: 1 addition & 1 deletion packages/nightingale-raw-formatter/index.js
Expand Up @@ -9,4 +9,4 @@ if (nodeVersionMajor > 7 || (nodeVersionMajor === 7 && nodeVersionMinor >= 6))
if (nodeVersionMajor > 6 || (nodeVersionMajor === 6 && nodeVersionMinor >= 5))
return module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/index');
/* istanbul ignore next */
throw new Error('Node version not supported: ' + nodeVersion + ' (' + process.versions.node + ').');
return module.exports = require('./lib-older-node' + (production ? '' : '-dev') + '/index');
25 changes: 25 additions & 0 deletions packages/nightingale-raw-formatter/lib-older-node-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.

25 changes: 25 additions & 0 deletions packages/nightingale-raw-formatter/lib-older-node/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.

11 changes: 4 additions & 7 deletions packages/nightingale-raw-formatter/package.json
Expand Up @@ -10,9 +10,6 @@
"license": "ISC",
"repository": "git@github.com:nightingalejs/nightingale-raw-formatter.git",
"homepage": "https://github.com/nightingalejs/nightingale",
"engines": {
"node": ">=6.5.0"
},
"main": "./index.js",
"module": "./lib-module/index.js",
"module-dev": "./lib-module-dev/index.js",
Expand All @@ -38,12 +35,12 @@
"nightingale-formatter": "^2.2.1"
},
"devDependencies": {
"babel-eslint": "^7.2.0",
"babel-preset-env": "^1.2.2",
"babel-eslint": "^7.2.1",
"babel-preset-env": "^1.3.2",
"babel-preset-latest-node": "^0.2.2",
"babel-preset-modern-browsers": "^9.0.2",
"eslint": "^3.18.0",
"eslint-config-airbnb-base": "^11.1.1",
"eslint": "^3.19.0",
"eslint-config-airbnb-base": "^11.1.2",
"eslint-config-pob": "^11.1.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-import": "^2.2.0",
Expand Down
9 changes: 2 additions & 7 deletions packages/nightingale-raw-formatter/test/.eslintrc.js
Expand Up @@ -2,11 +2,6 @@ exports.rules = {
"import/no-extraneous-dependencies": [2, {"devDependencies": true}]
};

exports.globals = {
suite: true,
test: true,
suiteSetup: true,
suiteTeardown: true,
setup: true,
teardown: true,
exports.env = {
mocha: true,
};
30 changes: 14 additions & 16 deletions packages/nightingale-raw-formatter/yarn.lock
Expand Up @@ -196,15 +196,14 @@ babel-core@^6.24.0:
slash "^1.0.0"
source-map "^0.5.0"

babel-eslint@^7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.2.0.tgz#8941514b9dead06f0df71b29d5d5b193a92ee0ae"
babel-eslint@^7.2.1:
version "7.2.1"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.2.1.tgz#079422eb73ba811e3ca0865ce87af29327f8c52f"
dependencies:
babel-code-frame "^6.22.0"
babel-traverse "^6.23.1"
babel-types "^6.23.0"
babylon "^6.16.1"
lodash "^4.17.4"

babel-generator@^6.21.0, babel-generator@^6.24.0:
version "6.24.0"
Expand Down Expand Up @@ -733,9 +732,9 @@ babel-preset-babili-optimizations@^0.2.0:
babel-plugin-minify-guarded-expressions "^0.0.4"
babel-plugin-transform-inline-consecutive-adds "^0.0.2"

babel-preset-env@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.2.2.tgz#1dbc4d7f8a575691d301f45fa9b2f9698b1e3b92"
babel-preset-env@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.3.2.tgz#08eabd2bf810c3678069f7e052323419f1448749"
dependencies:
babel-plugin-check-es2015-constants "^6.22.0"
babel-plugin-syntax-trailing-function-commas "^6.22.0"
Expand Down Expand Up @@ -765,7 +764,6 @@ babel-preset-env@^1.2.2:
babel-plugin-transform-exponentiation-operator "^6.22.0"
babel-plugin-transform-regenerator "^6.22.0"
browserslist "^1.4.0"
electron-to-chromium "^1.2.6"
invariant "^2.2.2"

babel-preset-flow@^6.23.0:
Expand Down Expand Up @@ -1336,7 +1334,7 @@ ecc-jsbn@~0.1.1:
dependencies:
jsbn "~0.1.0"

electron-to-chromium@^1.2.6, electron-to-chromium@^1.2.7:
electron-to-chromium@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.2.7.tgz#4f748061407e478c76256d04496972b71f647407"

Expand Down Expand Up @@ -1422,9 +1420,9 @@ escope@^3.6.0:
esrecurse "^4.1.0"
estraverse "^4.1.1"

eslint-config-airbnb-base@^11.1.1:
version "11.1.1"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.1.tgz#61e9e89e4eb89f474f6913ac817be9fbb59063e0"
eslint-config-airbnb-base@^11.1.2:
version "11.1.2"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.2.tgz#259209a7678bf693e31cbe8f953f206b6aa7ccc3"

eslint-config-pob@^11.1.0:
version "11.1.0"
Expand Down Expand Up @@ -1464,9 +1462,9 @@ eslint-plugin-import@^2.2.0:
minimatch "^3.0.3"
pkg-up "^1.0.0"

eslint@^3.18.0:
version "3.18.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.18.0.tgz#647e985c4ae71502d20ac62c109f66d5104c8a4b"
eslint@^3.19.0:
version "3.19.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc"
dependencies:
babel-code-frame "^6.16.0"
chalk "^1.1.3"
Expand Down Expand Up @@ -2466,7 +2464,7 @@ lodash@^3.3.1:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"

lodash@^4.0.0, lodash@^4.1.0, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
lodash@^4.0.0, lodash@^4.1.0, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

Expand Down

0 comments on commit efee51e

Please sign in to comment.