Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires node 10
  • Loading branch information
christophehurpeau committed Jan 26, 2020
1 parent 5e3af58 commit 08e82b5
Show file tree
Hide file tree
Showing 560 changed files with 11,046 additions and 79,176 deletions.
33 changes: 6 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
version: 2

jobs:
test-node8:
test-node10:
docker:
- image: circleci/node:8.16
- image: circleci/node:10.17
steps:
- checkout
- restore_cache:
keys:
- dependencies-node8-{{ arch }}-{{ checksum "yarn.lock" }}
- dependencies-node8-{{ arch }}
- dependencies-node10-{{ arch }}-{{ checksum "yarn.lock" }}
- dependencies-node10-{{ arch }}
- run:
name: Install dependencies
command: yarn --prefer-offline --pure-lockfile
- save_cache:
key: dependencies-node8-{{ arch }}-{{ checksum "yarn.lock" }}
key: dependencies-node10-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run:
Expand All @@ -35,7 +35,7 @@ jobs:

test-node12:
docker:
- image: circleci/node:12.7
- image: circleci/node:12.13
steps:
- checkout
- restore_cache:
Expand All @@ -53,31 +53,10 @@ jobs:
name: tests
command: yarn run test

test-node10:
docker:
- image: circleci/node:10.16
steps:
- checkout
- restore_cache:
keys:
- dependencies-node10-{{ arch }}-{{ checksum "yarn.lock" }}
- dependencies-node10-{{ arch }}
- run:
name: Install dependencies
command: yarn --prefer-offline --pure-lockfile
- save_cache:
key: dependencies-node10-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run:
name: tests
command: yarn run test

workflows:
version: 2

tests:
jobs:
- test-node8
- test-node10
- test-node12
54 changes: 54 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Node CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 13.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: dependencies--${{ matrix.node-version }}-${{ runner.OS }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
dependencies--${{ matrix.node-version }}-${{ runner.OS }}-
dependencies--${{ matrix.node-version }}-
- name: Install Dependencies
run: yarn install --prefer-offline --pure-lockfile

- name: Lint
run: yarn run lint
if: startsWith(matrix.node-version, '12.')

- name: Test
run: yarn run test
env:
CI: true

- name: Documentation
run: yarn run generate:docs
if: startsWith(matrix.node-version, '12.')
env:
CI: true
- name: Send results to codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: startsWith(matrix.node-version, '12.')

- name: Check nothing was forget before commit
if: startsWith(matrix.node-version, '12.')
run: yarn run repository-check-dirty
2 changes: 1 addition & 1 deletion .yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"enable": true
}
}
}
}
16 changes: 16 additions & 0 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

/*
* husky greps this file to check if a hook is defined
* so we need to list them here:
* - commit-msg
* - pre-commit
* - post-checkout
* - post-merge
* - post-rewrite
* - pre-push
*/

const createHuskyConfig = require('@pob/repo-config/createHuskyConfig');

module.exports = createHuskyConfig();
5 changes: 5 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

const createLintStagedConfig = require('@pob/repo-config/createLintStagedConfig');

module.exports = createLintStagedConfig();
38 changes: 8 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,20 @@
"lint": "lerna run --stream lint",
"postbuild": "yarn run build:definitions",
"preversion": "yarn run lint --since && yarn run build --since -- -- --no-clean && repository-check-dirty",
"release": "GH_TOKEN=$POB_GITHUB_TOKEN lerna version --conventional-commits --create-release=github -m 'chore: release' && lerna publish from-git",
"release": "cross-env GH_TOKEN=$POB_GITHUB_TOKEN lerna version --conventional-commits --conventional-graduate --create-release=github -m 'chore: release' && lerna publish from-git",
"test": "lerna run --stream test",
"typescript-check": "lerna run --parallel typescript-check",
"tsc": "tsc -b",
"watch": "lerna run --parallel --ignore \"*-example\" watch"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"post-checkout": "yarnhook",
"post-merge": "yarnhook",
"post-rewrite": "yarnhook",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"yarn.lock": ["yarn-deduplicate", "git add"],
"{package.json,packages/*/package.json,.eslintrc.json}": [
"prettier --parser json --write",
"git add"
],
"{packages/*}/lib/**/*.json": ["prettier --parser json --write", "git add"],
"{packages/*}/lib/**/*.{js,ts}": ["eslint --fix --quiet", "git add"]
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
},
"devDependencies": {
"@commitlint/cli": "8.1.0",
"@commitlint/config-conventional": "8.1.0",
"@pob/version": "4.32.1",
"husky": "3.1.0",
"lerna": "3.16.4",
"lint-staged": "9.2.1",
"repository-check-dirty": "1.0.2",
"typescript": "3.5.3",
"yarn-update-lock": "1.0.0",
"yarnhook": "0.4.2"
"@pob/repo-config": "1.0.3",
"@pob/version": "5.0.1",
"husky": "4.2.1",
"lerna": "3.20.2",
"repository-check-dirty": "1.0.3",
"typescript": "3.7.5"
}
}
1 change: 1 addition & 0 deletions packages/nightingale-ansi-formatter/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.d.ts
9 changes: 3 additions & 6 deletions packages/nightingale-ansi-formatter/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
"project": "./tsconfig.json",
"createDefaultProgram": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"@pob/eslint-config-babel",
"@pob/eslint-config-babel-node",
"@pob/eslint-config-typescript"
],
"extends": ["@pob/eslint-config-typescript", "@pob/eslint-config-babel-node"],
"overrides": [
{
"files": ["src/**/*.test.ts", "src/__tests__/**/*.ts"],
Expand Down
5 changes: 2 additions & 3 deletions packages/nightingale-ansi-formatter/.yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
"circleci": true,
"codecov": true
},
"documentation": false,
"withReact": false
"documentation": false
}
},
"nightingale-ansi-formatter": {
"type": {
"type": "lib"
}
}
}
}

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

Loading

0 comments on commit 08e82b5

Please sign in to comment.