Skip to content

Commit

Permalink
fix: export non deprecated http-statuses (#1)
Browse files Browse the repository at this point in the history
* updated linting and added tests

* added prettier check

* added title checker

* added title checker

* cleaned

* rebuild

* rebuild

* try some magic

* use set-node cache

* upgraded linter

* added sonar linting

* see if it is triggered

* added prettier check to prerelease
  • Loading branch information
lukeshay authored Jan 22, 2022
1 parent fe69180 commit 8f1ee69
Show file tree
Hide file tree
Showing 50 changed files with 10,868 additions and 16,996 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: ['get-off-my-lawn', 'plugin:sonarjs/recommended'],
plugins: ['sonarjs'],
rules: {
'unicorn/prefer-export-from': 'off',
},
};
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,16 @@ jobs:
strategy:
fail-fast: false
matrix:
cmd: ['build', 'test', 'lint']
cmd: ['build', 'test', 'lint', 'prettier:check']
name: ${{ matrix.cmd }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- run: npm i -g npm@7
- run: npm i
- run: npm exec -- lerna bootstrap
node-version: 16.13.2
cache: 'npm'
- run: npm i -g npm@8
- run: npm ci
- run: npm run bootstrap
- run: npm rebuild
- run: npm run ${{ matrix.cmd }}
19 changes: 19 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Lint PR Title'

on:
pull_request:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,6 @@ dist
.DS_Store

.env*

.jest-*
.husky
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.17.5
v16.13.2
File renamed without changes.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 16.13.2
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package root





# [0.3.0](https://github.com/LukeShay/npm/compare/v0.2.0...v0.3.0) (2021-07-30)

### Features
Expand Down
17 changes: 17 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
coverageDirectory: '.jest-coverage',
cacheDirectory: '.jest-cache',
coverageReporters: ['lcov', 'text', 'html'],
collectCoverage: true,
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
};

module.exports = config;
9 changes: 2 additions & 7 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"npmClient": "npm",
"useWorkspaces": true,
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"command": {
"version": {
"exact": true,
"conventionalCommits": true
},
"publish": {
"npmClient": "npm",
"allowBranch": [
"main",
"canary"
],
"allowBranch": ["main", "canary"],
"registry": "https://registry.npmjs.org/"
}
},
Expand Down
Loading

0 comments on commit 8f1ee69

Please sign in to comment.