Skip to content

Commit

Permalink
feat: build for node 16
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop node 14
  • Loading branch information
christophehurpeau committed Nov 13, 2022
1 parent ff96f6d commit 30ae3e9
Show file tree
Hide file tree
Showing 385 changed files with 1,770 additions and 2,734 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Code scanning - action'
name: "Code scanning - action"

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 14 * * 5'
- cron: "0 14 * * 5"

jobs:
CodeQL-Build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Create documentation and deploy to Github pages'
name: "Create documentation and deploy to Github pages"
on:
push:
branches:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
workflow_dispatch:
inputs:
dry-run:
description: 'Dry run? (y/N)'
description: "Dry run? (y/N)"
required: true
default: 'N'
default: "N"

jobs:
publish:
Expand All @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18

- name: Install Dependencies
run: yarn install --immutable --immutable-cache
Expand All @@ -44,6 +44,7 @@ jobs:
run: |
yarn lerna version --yes --push --exact --conventional-commits --conventional-graduate --create-release=github -m 'chore: release [skip ci]'
env:
HUSKY: 0
GH_TOKEN: ${{ secrets.GH_TOKEN }}
YARN_ENABLE_IMMUTABLE_INSTALLS: false

Expand All @@ -52,8 +53,8 @@ jobs:
github.ref == 'refs/heads/main'
&& contains(github.event.inputs.dry-run, 'y') == false
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
node-version: 18
registry-url: "https://registry.npmjs.org"

- run: lerna publish from-git --no-verify-access --yes
if: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-renovate-pob_root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Commit changes on @pob/root update
on:
push:
branches:
- 'renovate/pob-root-**'
- "renovate/pob-root-**"

jobs:
run-install-and-commit-modified-files:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-renovate-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run Prettier on renovate update
on:
push:
branches:
- 'renovate/prettier-**'
- "renovate/prettier-**"

jobs:
run-prettier:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
run: yarn install --immutable --immutable-cache
Expand All @@ -27,32 +27,32 @@ jobs:

- name: Build
run: yarn run build
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Prettier
run: yarn run lint:prettier
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Typescript
run: yarn run tsc
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Eslint
run: yarn run lint:eslint
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Generate Test Coverage
run: yarn run test --coverage --coverageReporters=json --coverageReporters=text
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')
env:
CI: true

- name: Send results to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')

- name: Check nothing was forgotten before commit
if: startsWith(matrix.node-version, '16.')
if: startsWith(matrix.node-version, '18.')
run: yarn run repository-check-dirty
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ enableMessageNames: false
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
spec: "@yarnpkg/plugin-workspace-tools"
yarnPath: .yarn/releases/yarn-3.2.4.cjs
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = function babelConfig(api) {

return {
only: ['packages/*/src', 'packages/*/lib'],
presets: [[require.resolve('pob-babel/preset.cjs')]],
presets: [[require.resolve('pob-babel/preset.js')]],
};
};
32 changes: 11 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@
"watch": "yarn clean:build && rollup --config rollup.config.mjs --watch",
"watch:lerna": "lerna run --parallel --ignore \"*-example\" watch"
},
"prettier": {
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"prettier": "@pob/root/prettier-config",
"commitlint": {
"extends": [
"@pob/commitlint-config"
Expand All @@ -56,26 +52,20 @@
"<rootDir>/packages/*/(src|lib)/**/*.test.(ts|js|cjs|mjs)"
]
},
"resolutions": {
"@types/node": "14.18.33"
},
"resolutionsExplained": {
"@types/node": "Avoid problems in typescript with several versions of @types/node"
},
"devDependencies": {
"@babel/core": "7.19.3",
"@pob/commitlint-config": "4.4.0",
"@babel/core": "7.20.2",
"@pob/commitlint-config": "5.0.0",
"@pob/eslint-config": "49.4.0",
"@pob/eslint-config-typescript": "49.4.0",
"@pob/lerna-light": "5.6.0",
"@pob/root": "6.22.0",
"@types/jest": "29.2.0",
"@types/node": "14.18.33",
"@pob/lerna-light": "6.0.0",
"@pob/root": "7.0.0",
"@types/jest": "29.2.2",
"@types/node": "18.11.9",
"check-package-dependencies": "3.10.0",
"eslint": "8.26.0",
"jest": "29.2.2",
"pob-babel": "34.2.0",
"typedoc": "0.23.19",
"eslint": "8.27.0",
"jest": "29.3.1",
"pob-babel": "35.0.0",
"typedoc": "0.23.20",
"typescript": "4.8.4"
}
}
8 changes: 3 additions & 5 deletions packages/nightingale-ansi-formatter/dist/index-browser.cjs.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.

8 changes: 3 additions & 5 deletions packages/nightingale-ansi-formatter/dist/index-browser.es.js

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

Loading

0 comments on commit 30ae3e9

Please sign in to comment.