-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootstrap based on "tmpl-go" template repository
Bootstrapped the basic project setup, structure and development workflow from version 0.3.0 [1] of the "tmpl-go" template repository [2]. Additionally specific assets like the repository hero image have been replaced and documentations like the README and GitHub issue/PR templates are adjusted. [1]: https://github.com/svengreb/tmpl-go/releases/tag/v0.3.0 [2]: https://github.com/svengreb/tmpl-go Closes GH-1
- Loading branch information
0 parents
commit d42e7ca
Showing
28 changed files
with
27,208 additions
and
0 deletions.
There are no files selected for viewing
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,22 @@ | ||
# Copyright (c) 2020-present Sven Greb <development@svengreb.de> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# +--------------------+ | ||
# + Base Configuration + | ||
# +--------------------+ | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
trim_trailing_whitespace = true | ||
|
||
# +-----------+ | ||
# + Languages + | ||
# +-----------+ | ||
# +--- Markdown ---+ | ||
[*.{md}] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
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 @@ | ||
# Copyright (c) 2020-present Sven Greb <development@svengreb.de> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# Configuration to define attributes per path. | ||
# See the following references for more details: | ||
# - https://git-scm.com/docs/gitattributes | ||
# - https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Keyword-Expansion | ||
|
||
# Automatically perform line feed (LF) normalization for files detected as text and | ||
# leave all files detected as binary untouched. | ||
* text=auto eol=lf | ||
|
||
# +--------+ | ||
# + Assets + | ||
# +--------+ | ||
*.ai binary | ||
*.png binary | ||
|
||
# +------------+ | ||
# + Encryption + | ||
# +------------+ | ||
# Ensure to exclude Git related files for usage with "git-crypt". | ||
# See https://github.com/AGWA/git-crypt for more details. | ||
.gitattributes !filter !diff | ||
.gitignore !filter !diff |
Validating CODEOWNERS rules …
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,13 @@ | ||
# Copyright (c) 2020-present Sven Greb <development@svengreb.de> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# Configuration for the GitHub feature to automatically request reviews from the code owners | ||
# when a pull request changes any owned files. | ||
# See: | ||
# 1. https://help.github.com/articles/about-codeowners | ||
# 2. https://github.com/blog/2392-introducing-code-owners | ||
|
||
# +----------------------+ | ||
# + Core Team Code Owner + | ||
# +----------------------+ | ||
* @svengreb |
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,13 @@ | ||
<!-- Click on the "Preview" tab to render the instructions in a more readable format --> | ||
|
||
> **Please read the [contribution guidelines](https://github.com/svengreb/wand/blob/main/CONTRIBUTING.md) before filling out this issue template**. | ||
## [Please follow one of the issue templates](https://github.com/svengreb/wand/issues/new/choose) | ||
|
||
To keep the backlog clean and actionable, issues should be opened using [one the provided issue templates](https://github.com/svengreb/wand/issues/new/choose) to help maintainers and the community to understand it, find related reports and to resolve tickets faster. | ||
|
||
### Support | ||
|
||
If you got a question or need help with any aspect of the project feel free to ask and ensure to read the [extensive project documentations](https://nordtheme.com/docs). | ||
|
||
You can also search for already opened and related issue using the search for the [“question“](https://github.com/svengreb/wand/labels/type-question) issue label. |
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,86 @@ | ||
--- | ||
name: Bug Report | ||
about: Report a bug that is caused by the code in this repository | ||
--- | ||
|
||
<!-- Click on the "Preview" tab to render the instructions in a more readable format --> | ||
|
||
> **Please read the [contribution guidelines](https://github.com/svengreb/wand/blob/main/CONTRIBUTING.md) before filling out this issue template**. | ||
## Prerequisites | ||
|
||
This section and the instructions in the sections below are only part of this issue template. Please ensure to **delete this whole section, all pre-filled instructions of the sections below and sections you have not filled out before submitting** to ensure a clear structure and overview. | ||
|
||
Please do your best to provide as much information as possible and use a clear and descriptive title for your bug report to help maintainers and the community understand and reproduce the behavior, find related reports and to resolve the ticket faster. | ||
|
||
- **Ensure the bug has not already been reported by using the [GitHub Issues search](https://github.com/svengreb/wand/issues)** — check if this enhancement has already been suggested. If it has **and the issue is still open**, add your additions as comment to the existing issue instead of opening a new one. If you find a closed issue that seems to be similar to this one, include a link to the original issue in the [metadata head](#metadata-head) section of this issue. | ||
- **Ensure the bug is reproducible and has not already been fixed** — use the [latest version](https://github.com/svengreb/wand/releases/latest) and [`main`](https://github.com/svengreb/wand/tree/main) branch. | ||
|
||
## Metadata Head | ||
|
||
The metadata head can be added to the top of the issue as [Markdown text quote](https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax) containing the the ID of other related issues. | ||
|
||
> Related issues: | ||
## Description | ||
|
||
Describe the bug as in many relevant details as possible with a clear and concise description. Ensure to fill in the [steps to reproduce](#steps-to-reproduce) it. | ||
|
||
### Steps to Reproduce | ||
|
||
1. Step One | ||
2. Step Two | ||
3. ... | ||
|
||
### Expected Behavior | ||
|
||
What you expect to happen? | ||
|
||
### Actual Behavior | ||
|
||
What actually happens? | ||
|
||
## Example | ||
|
||
Provide a [MCVE - The Minimal, Complete, and Verifiable Example](https://github.com/svengreb/wand/blob/main/CONTRIBUTING.md#mcve) | ||
|
||
**This is a optional section, but it can drastically increase the speed at which this issue can be processed since it takes away the time-consuming reconstruction to reproduce the bug.** | ||
The recommended way is to upload it as [Gist](https://gist.github.com) or new repository to GitHub, but of course you can [attach it to this issue](https://docs.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests), use any free file hosting service or paste the code in [Markdown code blocks](https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax) into this issue. | ||
|
||
## Environment and Versions | ||
|
||
- What is the version of wand you are using? | ||
- What is the name and the version of your OS? | ||
- Have you tried to reproduce it on different OS environments and if yes is the behavior the same for all? | ||
- If the problem is related to the runtime of the project (e.g. [Go](https://golang.org) or [Node.js](https://nodejs.org)) please provide the version you're running. | ||
- Are you using any additional CLI arguments to run the project? | ||
- What is the version of the build tool (e.g. [Mage](https://magefile.org), [Yarn](https://yarnpkg.com) or [npm](https://www.npmjs.com)) you are running? | ||
- Are you using any additional CLI arguments to start the build tool task/script other than defined by the project? | ||
|
||
If you've installed [Node.js](https://nodejs.org) on your system you can run [envinfo](https://www.npmjs.com/package/envinfo) via [npx](https://blog.npmjs.org/post/162869356040/introducing-npx-an-npm-package-runner) which will print environment information that help the the community to better reproduce the bug. | ||
|
||
Run the following command **from within the project root** and paste the output in the code block below: `npx envinfo --system --system --IDEs --languages --binaries --markdown --clipboard` | ||
|
||
```md | ||
Paste output of the command here. | ||
``` | ||
|
||
## Stack Trace and Error Messages | ||
|
||
```raw | ||
Paste the full stack trace, error messages or the logfile here. | ||
``` | ||
|
||
... or [attach them as files](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests) to this issue. | ||
|
||
## Additional Context | ||
|
||
Add any other context, screenshots or screencasts which are relevant for this issue. | ||
|
||
## References | ||
|
||
Add any other references and links which are relevant for this issue. | ||
|
||
## Potential Solution | ||
|
||
Maybe include the lines of code that you have identified as causing the bug or references to other projects where this bug has already been reported. |
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,58 @@ | ||
--- | ||
name: Enhancement Suggestions | ||
about: Submit an enhancement suggestion for new features or minor improvements to existing functionality | ||
--- | ||
|
||
<!-- Click on the "Preview" tab to render the instructions in a more readable format --> | ||
|
||
> **Please read the [contribution guidelines](https://github.com/svengreb/wand/blob/main/CONTRIBUTING.md) before filling out this issue template**. | ||
## Prerequisites | ||
|
||
This section and the instructions in the sections below are only part of this issue template. Please ensure to **delete this whole section, all pre-filled instructions of the sections below and sections you have not filled out before submitting** to ensure a clear structure and overview. | ||
|
||
Please do your best to provide as much information as possible and use a clear and descriptive title for your enhancement suggestion to help maintainers and the community understand and reproduce the behavior, find related reports and to resolve the ticket faster. | ||
|
||
- **Ensure the enhancement has not already been reported by using the [GitHub Issues search](https://github.com/svengreb/wand/issues)** — check if this enhancement has already been suggested. If it has **and the issue is still open**, add your additions as comment to the existing issue instead of opening a new one. If you find a closed issue that seems to be similar to this one, include a link to the original issue in the [metadata head](#metadata-head) section of this issue. | ||
- **Check if the enhancement has already been implemented** — use the [latest version](https://github.com/svengreb/wand/releases/latest) and [`main`](https://github.com/svengreb/wand/tree/main) branch to ensure that the feature or improvement has not already been added. | ||
|
||
## Metadata Head | ||
|
||
The metadata head can be added to the top of the issue as [Markdown text quote](https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax) containing the ID of other related issues. | ||
|
||
> Related issues: | ||
## Description | ||
|
||
Describe the enhancement in many relevant details as possible. | ||
|
||
### Benefits | ||
|
||
Add specific use-cases and explain why this feature or improvement would be useful and maybe include references to related known problems or bug reports. | ||
|
||
### Possible Drawbacks | ||
|
||
Describe possible negative impacts regarding e.g. functionality or usability. | ||
|
||
### Alternative Solutions | ||
|
||
If you've considered alternative features or solutions please describe it clearly and concise. | ||
|
||
## Example | ||
|
||
Provide a [MCVE - The Minimal, Complete, and Verifiable Example](https://github.com/svengreb/wand/blob/main/CONTRIBUTING.md#mcve) | ||
|
||
**This is a optional section, but it can drastically increase the speed at which this issue can be processed since it takes away the time-consuming reconstruction to reproduce the enhancement.** | ||
The recommended way is to upload it as [Gist](https://gist.github.com) or new repository to GitHub, but of course you can [attach it to this issue](https://docs.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests), use any free file hosting service or paste the code in [Markdown code blocks](https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax) into this issue. | ||
|
||
## Additional Context | ||
|
||
Add any other context, screenshots or screencasts which are relevant for this issue. | ||
|
||
## References | ||
|
||
Add any other references and links which are relevant for this issue. | ||
|
||
## Potential Solution | ||
|
||
Maybe include references to other projects where this enhancement already exists. |
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,28 @@ | ||
<!-- Click on the "Preview" tab to render the instructions in a more readable format --> | ||
|
||
> **Please read the [contribution guidelines](https://github.com/svengreb/wand/blob/main/CONTRIBUTING.md) before filling out this issue template**. | ||
## Prerequisites | ||
|
||
This section and the instructions in the sections below are only part of this pull request template. Please ensure to **delete this whole section, all pre-filled instructions of the sections below and sections you have not filled out before submitting** to ensure a clear structure and overview. | ||
|
||
Please do your best to provide as much information as possible and use a clear and descriptive title for your enhancement suggestion or bug fix to help maintainers and the community understand and reproduce the behavior, find related pull requests and to merge it faster. | ||
|
||
- **Ensure the pull request has not already been submitted by using the [GitHub Issue search](https://github.com/svengreb/wand/issues)** — check if this enhancement or bug fix has already been suggested. If it has **and the pull request is still open**, add your additions as comment or [suggest a change](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request#applying-a-suggested-change) to the existing pull request instead of opening a new one. If you find a closed pull request that seems to be similar to this one, include a link to the original pull request in the [metadata head](#metadata-head) section of this new pull request. | ||
- **Ensure to adhere to the [pull request contribution guidelines](https://github.com/svengreb/wand/blob/main/CONTRIBUTING.md#pull-requests)**, especially the one for tests and documentations. | ||
- **Check if the enhancement has already been implemented or bug already fixed** — use the [latest version](https://github.com/svengreb/wand/releases/latest) and [`main`](https://github.com/svengreb/wand/tree/main) branch to ensure that the enhancement or bug fix has not already been added. | ||
|
||
## Metadata Head | ||
|
||
The metadata head should be added to the top of the pull request as [Markdown text quote](https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax) containing the [GitHub issue keyword(s)](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) to link to the related enhancements suggestions (`Closes`) or bug reports (`Fixes`). You can add additional details like dependencies to other pull requests and the order it needs to be merged. | ||
|
||
> Closes ISSUE_ID | ||
> Must be merged **after**/**before** ISSUE_ID | ||
## Description | ||
|
||
Describe the changes as in many relevant details as possible. If this is a enhancement suggestion add specific use-cases and explain why this feature or improvement would be useful. If this is a bug fix ensure to provide a _before/after_ comparison by describing the current behavior and the new behavior. | ||
|
||
## References | ||
|
||
Add any other references and links which are relevant for this pull request. |
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,76 @@ | ||
# Copyright (c) 2020-present Sven Greb <development@svengreb.de> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# GitHub Action Workflow for continuous integration jobs. | ||
# See https://docs.github.com/en/actions and https://github.com/features/actions for more details. | ||
|
||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v* | ||
pull_request: | ||
|
||
jobs: | ||
lint-node: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print metadata and context information | ||
run: | | ||
echo "Git SHA: $GITHUB_SHA" | ||
echo "Git Ref: $GITHUB_REF" | ||
echo "Workflow Actor: $GITHUB_ACTOR" | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: "Setup Node.js version 14.x" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14.x" | ||
- name: Install Node modules | ||
run: yarn --frozen-lockfile | ||
- name: Run linters | ||
run: yarn lint | ||
lint-go: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print metadata and context information | ||
run: | | ||
echo "Git SHA: $GITHUB_SHA" | ||
echo "Git Ref: $GITHUB_REF" | ||
echo "Workflow Actor: $GITHUB_ACTOR" | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.15.x" | ||
- name: "Run golangci-lint" | ||
# The official golangci-lint action created and maintained by the golangci-lint project. | ||
# See https://github.com/golangci/golangci-lint-action for more details. | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.31 | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: ["1.15.x"] | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
needs: | ||
- lint-go | ||
steps: | ||
- name: Print metadata and context information | ||
run: | | ||
echo "Git SHA: $GITHUB_SHA" | ||
echo "Git Ref: $GITHUB_REF" | ||
echo "Workflow Actor: $GITHUB_ACTOR" | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: "Run tests with coverage and race detector" | ||
run: go test -cover -race -v ./... |
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,27 @@ | ||
# Copyright (c) 2020-present Sven Greb <development@svengreb.de> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# Configuration to specify paths to ignore. | ||
# See https://git-scm.com/docs/gitignore for more details. | ||
|
||
# +--------------------+ | ||
# + JetBrains Products + | ||
# +--------------------+ | ||
# +--- IntelliJ IDEA ---+ | ||
.idea/* | ||
!.idea/runConfigurations | ||
!.idea/saved-exports | ||
!.idea/watcherTasks.xml | ||
|
||
# +---------+ | ||
# + Node.js + | ||
# +---------+ | ||
**/node_modules/ | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.yarn-integrity | ||
|
||
# +-------------------+ | ||
# + Project Structure + | ||
# +-------------------+ | ||
**/out/ |
Oops, something went wrong.