-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
607 additions
and
574 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["@smartive/eslint-config"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "lts/*" | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Unit Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: [master, develop] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x, 18.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Run Tests | ||
run: | | ||
npm install | ||
npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"@smartive/prettier-config" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
{ | ||
"collectCoverage": true, | ||
"mapCoverage": true, | ||
"transform": { | ||
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
"testMatch": [ | ||
"**/test/**/*.spec.ts" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/" | ||
], | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"json" | ||
] | ||
"collectCoverage": true, | ||
"mapCoverage": true, | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testMatch": ["**/test/**/*.spec.ts"], | ||
"testPathIgnorePatterns": ["/node_modules/"], | ||
"moduleFileExtensions": ["ts", "tsx", "js", "json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,12 @@ | |
"clean": "del-cli ./build ./coverage", | ||
"build": "npm run clean && tsc -p ./config/tsconfig.build.json", | ||
"develop": "npm run clean && tsc -p .", | ||
"lint": "tslint -c ./tslint.json -p ./config/tsconfig.build.json", | ||
"lint": "npm run lint:ts && npm run prettier", | ||
"lint:fix": "npm run lint:ts:fix && npm run prettier:fix", | ||
"lint:ts": "eslint --max-warnings=-1", | ||
"lint:ts:fix": "eslint --max-warnings=-1 --fix", | ||
"prettier": "prettier --config .prettierrc.json --list-different \"./**/*.{ts,tsx}\"", | ||
"prettier:fix": "prettier --config .prettierrc.json --list-different \"./**/*.{ts,tsx}\" --write", | ||
"test": "npm run lint && npm run clean && jest -c ./jest.json", | ||
"test:watch": "npm run clean && jest -c ./jest.json --watch", | ||
"typedoc": "del-cli ./docs && typedoc --ignoreCompilerErrors --out ./docs --mode file --tsconfig ./config/tsconfig.build.json ./src/", | ||
|
@@ -20,7 +25,7 @@ | |
"typescript" | ||
], | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=16" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -30,20 +35,22 @@ | |
"author": "Christoph Bühler <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@smartive/tslint-config": "^2.0.0", | ||
"@types/jest": "^22.0.1", | ||
"del-cli": "^1.1.0", | ||
"jest": "^22.1.1", | ||
"semantic-release": "^12.2.2", | ||
"ts-jest": "^22.0.1", | ||
"tslint": "^5.9.1", | ||
"tsutils": "^2.18.0", | ||
"typedoc": "^0.9.0", | ||
"typescript": "^2.6.2" | ||
"@smartive/eslint-config": "^3.1.1", | ||
"@smartive/prettier-config": "^3.0.0", | ||
"@types/jest": "^29.2.4", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.30.0", | ||
"jest": "^29.3.1", | ||
"prettier": "^2.8.1", | ||
"semantic-release": "^19.0.5", | ||
"ts-jest": "^29.0.3", | ||
"tsutils": "^3.21.0", | ||
"typedoc": "^0.23.23", | ||
"typescript": "^4.9.4" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^9.3.0", | ||
"rxjs": "^5.5.6", | ||
"tslib": "^1.8.1" | ||
"@types/node": "^18.11.17", | ||
"rxjs": "^7.8.0", | ||
"tslib": "^2.4.1" | ||
} | ||
} |
Oops, something went wrong.