Skip to content

Commit

Permalink
perf: update plugin from template [autocommit]
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Sep 11, 2023
0 parents commit 8e3e510
Show file tree
Hide file tree
Showing 58 changed files with 2,488 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
## Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v2.2.2
_src_path: gh:kc-workspace/asdf-plugin-template.git
addon_yaml:
archive: false
checksum: false
download: true
fetch: true
git: true
github: true
gpg: false
help: true
install: true
package: false
python: false
system: true
tags: true
version: false
app_desc: The jsonnet-bundler is a package manager for Jsonnet.
app_name: jb
app_repo: https://github.com/jsonnet-bundler/jsonnet-bundler
app_type: standalone
app_website: https://github.com/jsonnet-bundler/jsonnet-bundler/
archive_enabled: false
checksum_enabled: false
custom_bin_paths: bin
custom_non_stable_version: (-src|-dev|-latest|-stm|[-\.]rc|-alpha|-beta|[-\.]pre|-next|snapshot|master)
custom_require_commands: ''
download_url: https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v{version}/jb-{os}-{arch}
gpg_enabled: false
install_map_enabled: true
install_map_method: move
install_map_yaml:
jb: bin/jb
package_enabled: false
plugin_author: Kamontat Chantrachirathumrong
plugin_name: asdf-jsonnet-bundler
plugin_org: kc-workspace
plugin_repo: https://github.com/kc-workspace/asdf-jsonnet-bundler.git
source_enabled: true
source_type: git
source_url: https://github.com/jsonnet-bundler/jsonnet-bundler.git
sys_arch_enabled: true
sys_arch_yaml:
aarch64*: arm64
armv5*: arm
armv6*: arm
armv7*: arm
i386: amd64
i686: amd64
powerpc64le: amd64
ppc64le: amd64
x86: amd64
x86_64: amd64
sys_ext_enabled: false
sys_os_enabled: false
test_cmd_args: --version
version_file_enabled: false
version_prefix: v
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# dependabot for GitHub Actions for this repository
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
21 changes: 21 additions & 0 deletions .github/linters/.gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title = "gitleaks config"

[extend]
# useDefault will extend the base configuration with the default gitleaks config:
# https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml
useDefault = true

[allowlist]
description = "global allow lists"
paths = [
'''gitleaks.toml''',
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe)$''',
'''(go.mod|go.sum)$''',
'''gradle.lockfile''',
'''node_modules''',
'''package-lock.json''',
'''pnpm-lock.yaml''',
'''Database.refactorlog''',
'''vendor''',
'''.copier-answers.yml''',
]
39 changes: 39 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
###########################
###########################
## Markdown Linter rules ##
###########################
###########################

# Linter rules doc:
# - https://github.com/DavidAnson/markdownlint
# Linter template:
# - https://github.com/super-linter/super-linter/blob/main/TEMPLATES/.markdown-lint.yml
#
# Note:
# To comment out a single error:
# <!-- markdownlint-disable -->
# any violations you want
# <!-- markdownlint-restore -->
#

###############
# Rules by id #
###############
MD004: false # Unordered list style
MD007:
indent: 2 # Unordered list indentation
MD013:
line_length: 400 # Line length 80 is far to short
MD024:
siblings_only: true # Only check sibling headings
MD026:
punctuation: ".,;:!。,;:" # List of not allowed
MD029: false # Ordered list item prefix
MD033: false # Allow inline HTML
MD036: false # Emphasis used instead of a heading

#################
# Rules by tags #
#################
blank_lines: false # Error on blank lines
Empty file.
31 changes: 31 additions & 0 deletions .github/linters/cspell-default.dict.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
jb
asdf
tmpl
tmpdir
tmpfile
tmppath
indir
infile
inpath
outdir
outfile
outpath
aarch
armv
checksum
shasum
sha1sum
sha224sum
sha256sum
sha384sum
sha512sum
strftime
kamontat
chantrachirathumrong
kc
kcws
mergify
envops
venv
keyid
kwargs
28 changes: 28 additions & 0 deletions .github/linters/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell#example-cspelljson-file
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"language": "en",
"allowCompoundWords": true,
"ignorePaths": [
// Ignore cspell config
"**/.cspell.json",
// Ignore vscode config
"**/.vscode",
// Ignore auto-generate scripts
"**/scripts"
],
"dictionaries": [
"softwareTerms",
"bash",
"filetypes",
"defaultDict",
"customDict"
],
"dictionaryDefinitions": [
{ "name": "defaultDict", "path": "./cspell-default.dict.txt" },
{ "name": "customDict", "path": "./cspell-custom.dict.txt" }
],
"useGitignore": true,
"gitignoreRoot": "../.."
}
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Main

on:
push:

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
DEFAULT_BRANCH: main

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Running cspell
uses: streetsidesoftware/cspell-action@v3
with:
config: ".github/linters/cspell.json"
# Log progress and other information during the action execution.
verbose: true
# Determines if the action should be failed
# if any spelling issues are found.
strict: true
# Limit the files checked to the ones in the pull request or push.
# We will enabled this only if this job tooks more than 3 minutes
incremental_files_only: false
# Notification level to use with inline reporting of spelling errors.
# Allowed values are: warning, error, none
inline: warning
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Linting
uses: super-linter/super-linter/slim@v5
env:
DEFAULT_BRANCH: ${{ env.DEFAULT_BRANCH }}
VALIDATE_ALL_CODEBASE: false
IGNORE_GITIGNORED_FILES: true

testing:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v2
with:
command: jb --version
env:
DEBUG: 1
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
branches:
- main

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: simple
changelog-types: |
[
{"type":"feat","section":"Features","hidden":false},
{"type":"perf","section":"Improvements","hidden":false},
{"type":"fix","section":"Bugfixes","hidden":false},
{"type":"chore","section":"Miscellaneous","hidden":false}
]
Loading

0 comments on commit 8e3e510

Please sign in to comment.