Skip to content

Commit

Permalink
chore(configs): update miscellaneous configs and package file
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber committed Aug 30, 2023
1 parent f02fe65 commit 2e66dc6
Show file tree
Hide file tree
Showing 22 changed files with 447 additions and 191 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@typescript-eslint/semi": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-var-requires": "off",
"explicit-function-return-type": "off",
"generator-star-spacing": "off",
"member-delimiter-style": "off",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
node-version: '18.x'
cache: 'npm'
- run: npm ci
- name: Build app
- name: Build lib
run: npm run build

lint:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: npm ci

build:
lint-and-test:
needs: setup
runs-on: ubuntu-latest
steps:
Expand All @@ -34,16 +34,14 @@ jobs:
cache: 'npm'

- run: npm ci
- name: Build app
run: npm run build
- name: Lint TS
run: npm run lint
- name: Run tests
run: npm run test:ci

release:
name: Release
needs: [setup, build]
needs: [setup, lint-and-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -53,6 +51,8 @@ jobs:
cache: 'npm'

- run: npm ci
- name: Build lib
run: npm run build
- name: Release
run: npm run semantic-release
env:
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Joshua D. Graber

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
14 changes: 10 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
export default {
module.exports = {
roots: ['<rootDir>/test'],
testEnvironment: 'node',
preset: 'ts-jest',
testMatch: ['**/__test__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
collectCoverage: true,
collectCoverageFrom: ['src/**/{!(b-tree),}.ts'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
'\\.[jt]s': 'ts-jest'
},
collectCoverage: true,
collectCoverageFrom: ['src/**/{!(b-tree),}.ts']
moduleNameMapper: {
'(.+)\\.js': '$1'
},
extensionsToTreatAsEsm: ['.ts']
};
Loading

0 comments on commit 2e66dc6

Please sign in to comment.