Skip to content

Commit

Permalink
#7: Upgrade dependencies & add linter (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Apr 11, 2023
1 parent 4a3f93f commit 2ba862d
Show file tree
Hide file tree
Showing 17 changed files with 2,384 additions and 3,610 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking'],

ignorePatterns: ["src/**/*.test.ts"],
};
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.sh text eol=lf
*.bat text eol=crlf

dependencies.md linguist-generated=true
doc/changes/changelog.md linguist-generated=true
.github/workflows/broken_links_checker.yml linguist-generated=true
package-lock.json linguist-generated=true
.github/workflows/project-keeper-verify.yml linguist-generated=true
.github/workflows/project-keeper.sh linguist-generated=true
7 changes: 5 additions & 2 deletions .github/workflows/broken_links_checker.yml

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

59 changes: 59 additions & 0 deletions .github/workflows/project-keeper-verify.yml

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

18 changes: 18 additions & 0 deletions .github/workflows/project-keeper.sh

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

30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
release:
types: [released]

jobs:
release:
name: Build and release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
- name: Run linter
run: npm run lint
- name: Run build
run: npm run build
- name: Create package
run: npm pack
- name: Publish package on NPM 📦
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions .project-keeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sources:
- type: npm
path: package.json
version: 0.2.1
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.generate.finalModifiers": true,
"source.fixAll": true
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2023 Exasol

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.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ This project contains a validator for parameters for Exasol extensions.

* [Changelog](doc/changes/changelog.md)
* [Developers Guide](doc/developers_guide/developers_guide.md)
* [Dependencies](dependencies.md)
10 changes: 10 additions & 0 deletions dependencies.md

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

1 change: 1 addition & 0 deletions doc/changes/changelog.md

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

26 changes: 26 additions & 0 deletions doc/changes/changes_0.2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Extension Parameter Validator 0.2.1, released 2023-04-11

Code name: Upgrade dependencies on top of 0.2.0

## Summary

This release updates dependencies on top of 0.2.0, adds a linter and automates the release process.

## Features

* #7: Updated dependencies

## Dependency Updates

### Compile Dependency Updates

* Updated `@exasol/extension-manager-interface:0.1.10` to `0.1.16`

### Development Dependency Updates

* Added `@typescript-eslint/parser:^5.57.0`
* Updated `ts-jest:^28.0.7` to `^29.1.0`
* Updated `@types/jest:^28.1.6` to `^29.5.0`
* Updated `typescript:4.7.4` to `5.0.3`
* Updated `jest:^28.1.3` to `^29.5.0`
* Added `@typescript-eslint/eslint-plugin:^5.57.0`

0 comments on commit 2ba862d

Please sign in to comment.