diff --git a/.github/workflows/lint-repo.yml b/.github/workflows/lint-repo.yml new file mode 100644 index 0000000..9863aa7 --- /dev/null +++ b/.github/workflows/lint-repo.yml @@ -0,0 +1,4 @@ +on: push +jobs: + lint-repo-and-markdown: + uses: simatic-ax/actions/.github/workflows/check-repository.yml@stable diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 7796d00..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: linter checks -on: - push: - -jobs: - linter: - name: "Linter Checks" - runs-on: ubuntu-latest - - - steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Check markdown files - uses: avto-dev/markdown-lint@v1 - with: - args: '**/*.md' - ignore: ./LICENSE.md diff --git a/.markdownlint.yml b/.markdownlint.yml index 95479c5..62620c9 100644 --- a/.markdownlint.yml +++ b/.markdownlint.yml @@ -8,4 +8,7 @@ default: true line-length: false no-inline-html: false first-line-h1: false -no-emphasis-as-header: false \ No newline at end of file +no-emphasis-as-header: false +MD024: + allow_different_nesting: true + siblings_only: true \ No newline at end of file diff --git a/README.md b/README.md index 5b35cc2..1d05b73 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ 1. If not done, login to the GitHub registry - More information you'll find [here](https://github.com/simatic-ax/.sharedstuff/blob/main/doc/personalaccesstoken.md) + More information you'll find [here](https://github.com/simatic-ax/.github/blob/main/docs/personalaccesstoken.md) -1. create a new library project from template +1. create a new library project from template (local IDE) ```cli apax create @simatic-ax/ax2tia --registry https://npm.pkg.github.com diff --git a/repolinter.json b/repolinter.json new file mode 100644 index 0000000..f662361 --- /dev/null +++ b/repolinter.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json", + "version": 2, + "axioms": { + "linguist": "language", + "licensee": "license", + "packagers": "packager" + }, + "rules": { + "license-file-exists": { + "level": "off", + "rule": { + "type": "file-existence", + "options": { + "globsAny": ["LICENSE*", "COPYING*"], + "nocase": true + } + } + } + } +} \ No newline at end of file diff --git a/template/apax.yml b/template/apax.yml index 954db87..98fc47c 100644 --- a/template/apax.yml +++ b/template/apax.yml @@ -1,6 +1,6 @@ # General information name: '@simatic-ax/apax-package-name-d7b4b031' -version: 0.0.0-placeholder +version: 0.0.1 # Description will be displayed in the apax extension description: type: lib @@ -31,8 +31,7 @@ devDependencies: scripts: # set the path to your local TIA Portal installation in the .env file export-tialib: ax2tia -i ./bin/1500/*.lib -o "$PATH_NAME" - import-tialib: '"$TIA_INSTALL_PATH\\bin\\Siemens.Simatic.Lang.Library.Importer.exe" - -i "$PATH_NAME" -o "$TIA_GLOBAL_LIB_PATH"' + import-tialib: '"$TIA_INSTALL_PATH\\Siemens.Simatic.Lang.Library.Importer.exe" -i "$PATH_NAME" -o "$TIA_GLOBAL_LIB_PATH"' create-tialib: - apax build - apax export-tialib