Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Jul 8, 2024
0 parents commit bdf5941
Show file tree
Hide file tree
Showing 36 changed files with 9,216 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"projectName": "NAVDatabase.Amx.AmxCeSeriesInterface",
"projectOwner": "Norgate-AV",
"repoType": "github",
"repoHost": "https://github.com",
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
"contributorsPerLine": 7,
"skipCi": true,
"contributors": []
}
51 changes: 51 additions & 0 deletions .changelogrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"header": "Changelog",
"types": [
{
"type": "feat",
"section": "🌟 Features",
"hidden": false
},
{
"type": "fix",
"section": "🐛 Bug Fixes",
"hidden": false
},
{
"type": "chore",
"section": "🧰 Chores",
"hidden": true
},
{
"type": "docs",
"section": "📖 Documentation",
"hidden": false
},
{
"type": "style",
"section": "💅 Style",
"hidden": false
},
{
"type": "refactor",
"section": "✨ Refactor",
"hidden": false
},
{
"type": "perf",
"section": "🚀 Performance",
"hidden": false
},
{
"type": "test",
"section": "🧪 Tests",
"hidden": false
},
{
"type": "build",
"section": "🛠️ Build",
"hidden": false
},
{ "type": "ci", "section": "🤖 CI", "hidden": false }
]
}
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "./node_modules/cz-conventional-changelog"
}
29 changes: 29 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
root = true

[*]

charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = tab
tab_width = 4
trim_trailing_whitespace = true

[*.{axs,axi}]

charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = tab
tab_width = 4
trim_trailing_whitespace = true

[*.md]

trim_trailing_whitespace = false

[*.{yml,yaml}]

tab_width = 2
8 changes: 8 additions & 0 deletions .genlinxrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"build": {
"nlrc": {
"includePath": ["./lib"],
"modulePath": ["./src"]
}
}
}
87 changes: 87 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
* text=auto

#
# The above will handle all files NOT found below
#

# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text diff=markdown
*.mdx text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text eol=crlf
*.tab text
*.tsv text
*.txt text
*.sql text
*.epub diff=astextplain

# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as text by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.eps binary

# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Serialisation
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary

# Text files where line endings should be preserved
*.patch -text

#
# Exclude files from exporting
#

.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore

*.jar filter=lfs diff=lfs merge=lfs -text
*.TP4 filter=lfs diff=lfs merge=lfs -text
*.TP5 filter=lfs diff=lfs merge=lfs -text
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
102 changes: 102 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: CI

on:
push:
branches: [master]

pull_request:
branches: [master]

workflow_dispatch:

defaults:
run:
shell: pwsh

jobs:
build-and-release:
name: Build & Release

runs-on: [self-hosted, windows, server]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Show Environment
run: |
$PSVersionTable
$pwd
Write-Host Path:
$env:PATH
Write-Host
Write-Host whoami:
whoami
Write-Host
Write-Host Default Environment Variables:
Write-Host "CI: $env:CI"
Write-Host "GITHUB_ACTION: $env:GITHUB_ACTION"
Write-Host "GITHUB_ACTION_PATH: $env:GITHUB_ACTION_PATH"
Write-Host "GITHUB_ACTION_REPOSITORY: $env:GITHUB_ACTION_REPOSITORY"
Write-Host "GITHUB_ACTIONS: $env:GITHUB_ACTIONS"
Write-Host "GITHUB_ACTOR: $env:GITHUB_ACTOR"
Write-Host "GITHUB_ACTOR_ID: $env:GITHUB_ACTOR_ID"
Write-Host "GITHUB_API_URL: $env:GITHUB_API_URL"
Write-Host "GITHUB_BASE_REF: $env:GITHUB_BASE_REF"
Write-Host "GITHUB_ENV: $env:GITHUB_ENV"
Write-Host "GITHUB_EVENT_NAME: $env:GITHUB_EVENT_NAME"
Write-Host "GITHUB_EVENT_PATH: $env:GITHUB_EVENT_PATH"
Write-Host "GITHUB_GRAPHQL_URL: $env:GITHUB_GRAPHQL_URL"
Write-Host "GITHUB_HEAD_REF: $env:GITHUB_HEAD_REF"
Write-Host "GITHUB_JOB: $env:GITHUB_JOB"
Write-Host "GITHUB_PATH: $env:GITHUB_PATH"
Write-Host "GITHUB_REF: $env:GITHUB_REF"
Write-Host "GITHUB_REF_NAME: $env:GITHUB_REF_NAME"
Write-Host "GITHUB_REF_PROTECTED: $env:GITHUB_REF_PROTECTED"
Write-Host "GITHUB_REF_TYPE: $env:GITHUB_REF_TYPE"
Write-Host "GITHUB_REPOSITORY: $env:GITHUB_REPOSITORY"
Write-Host "GITHUB_REPOSITORY_ID: $env:GITHUB_REPOSITORY_ID"
Write-Host "GITHUB_REPOSITORY_OWNER: $env:GITHUB_REPOSITORY_OWNER"
Write-Host "GITHUB_REPOSITORY_OWNER_ID: $env:GITHUB_REPOSITORY_OWNER_ID"
Write-Host "GITHUB_RETENTION_DAYS: $env:GITHUB_RETENTION_DAYS"
Write-Host "GITHUB_RUN_ATTEMPT: $env:GITHUB_RUN_ATTEMPT"
Write-Host "GITHUB_RUN_ID: $env:GITHUB_RUN_ID"
Write-Host "GITHUB_RUN_NUMBER: $env:GITHUB_RUN_NUMBER"
Write-Host "GITHUB_SERVER_URL: $env:GITHUB_SERVER_URL"
Write-Host "GITHUB_SHA: $env:GITHUB_SHA"
Write-Host "GITHUB_STEP_SUMMARY: $env:GITHUB_STEP_SUMMARY"
Write-Host "GITHUB_WORKFLOW: $env:GITHUB_WORKFLOW"
Write-Host "GITHUB_WORKFLOW_REF: $env:GITHUB_WORKFLOW_REF"
Write-Host "GITHUB_WORKFLOW_SHA: $env:GITHUB_WORKFLOW_SHA"
Write-Host "GITHUB_WORKSPACE: $env:GITHUB_WORKSPACE"
Write-Host "RUNNER_ARCH: $env:RUNNER_ARCH"
Write-Host "RUNNER_DEBUG: $env:RUNNER_DEBUG"
Write-Host "RUNNER_NAME: $env:RUNNER_NAME"
Write-Host "RUNNER_OS: $env:RUNNER_OS"
Write-Host "RUNNER_TEMP: $env:RUNNER_TEMP"
Write-Host "RUNNER_TOOL_CACHE: $env:RUNNER_TOOL_CACHE"
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: pnpm

- name: Install
run: pnpm install

- name: Build
run: ./build.ps1

- name: Release
if: github.ref == 'refs/heads/master'
run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit bdf5941

Please sign in to comment.