-
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.
Merge pull request #52 from purview-dev:activities-state
feat: added activity status code
- Loading branch information
Showing
6,865 changed files
with
463,401 additions
and
240 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,30 @@ | ||
# Define the default target | ||
.DEFAULT_GOAL := help | ||
|
||
# Include this in your Makefile using 'include common.mk' | ||
|
||
# ANSI colour codes for formatting (used for coloured output in help) | ||
COLOUR_TARGET = \033[1;34m # Blue, bold | ||
COLOUR_RESET = \033[0m # Reset colour | ||
|
||
# Automatically calculate the maximum target width (without colour) | ||
TARGET_WIDTH := $(shell grep -Eh '^[a-zA-Z_-]+:.*?##' $(MAKEFILE_LIST) | awk -F':' '{print length($$1)}' | sort -nr | head -1) | ||
|
||
# Collect all targets from the Makefile and included files | ||
PHONY_TARGETS := $(shell grep -Eh '^[a-zA-Z_-]+:.*?##' $(MAKEFILE_LIST) | awk -F':' '{print $$1}') # OR ... '{print $$1}' | sort -u) | ||
|
||
# Declare all the targets as phony | ||
.PHONY: $(PHONY_TARGETS) | ||
|
||
# Help target that reads targets from all Makefiles listed in MAKEFILE_LIST | ||
help: | ||
@echo "Available targets:" | ||
@grep -Eh '^[a-zA-Z_-]+:.*?##' $(MAKEFILE_LIST) | \ | ||
#sort -u | \ | ||
awk -v COLOUR_target="$(COLOUR_TARGET)" -v COLOUR_reset="$(COLOUR_RESET)" -v width=$(TARGET_WIDTH) '\ | ||
BEGIN {FS = ":.*## "}; \ | ||
{ \ | ||
target = $$1; \ | ||
description = $$2; \ | ||
printf "%s%-*s%s %s\n", COLOUR_target, width, target, COLOUR_reset, description \ | ||
}' |
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
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,10 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en-GB", | ||
"words": [ | ||
"kieronlanning" | ||
], | ||
"ignorePaths": [ | ||
"node_modules/**/*" | ||
] | ||
} |
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,3 @@ | ||
npx --no -- commitlint --edit \ | ||
|
||
#exit 1 |
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 @@ | ||
#npm test |
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
include .build/common.mk | ||
|
||
# Variables | ||
ROOT_FOLDER = src/ | ||
SOLUTION_FILE = $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator.sln | ||
TEST_PROJECT = $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator.sln | ||
CONFIGURATION = Release | ||
|
||
PACK_VERSION = 1.0.12 | ||
PACK_VERSION = 1.1.0 | ||
ARTIFACT_FOLDER = p:/sync-projects/.local-nuget/ | ||
|
||
# Targets | ||
build: | ||
build: ## Builds the project. | ||
dotnet build $(SOLUTION_FILE) --configuration $(CONFIGURATION) | ||
|
||
test: | ||
test: ## Runs the tests for the project. | ||
dotnet test $(TEST_PROJECT) --configuration $(CONFIGURATION) | ||
|
||
pack: | ||
pack: ## Packs the project into a nuget package using PACK_VERSION argument. | ||
dotnet pack -c $(CONFIGURATION) -o $(ARTIFACT_FOLDER) $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator/Purview.Telemetry.SourceGenerator.csproj --property:Version=$(PACK_VERSION) --include-symbols | ||
|
||
format: | ||
format: ## Formats the code according to the rules of the src/.editorconfig file. | ||
dotnet format $(ROOT_FOLDER) | ||
|
||
act: | ||
act -P ubuntu-latest=-self-hosted | ||
|
||
.PHONY: build test |
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 @@ | ||
export default { extends: ['@commitlint/config-conventional'] }; |
Oops, something went wrong.