Skip to content

Commit

Permalink
Merge pull request #52 from purview-dev:activities-state
Browse files Browse the repository at this point in the history
feat: added activity status code
  • Loading branch information
kieronlanning authored Dec 8, 2024
2 parents 19e0a1f + b0275b0 commit bb46887
Show file tree
Hide file tree
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.
30 changes: 30 additions & 0 deletions .build/common.mk
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 \
}'
7 changes: 0 additions & 7 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,5 @@
"version": 1,
"isRoot": true,
"tools": {
"nbgv": {
"version": "3.6.139",
"commands": [
"nbgv"
],
"rollForward": false
}
}
}
10 changes: 10 additions & 0 deletions .cspell.json
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/**/*"
]
}
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npx --no -- commitlint --edit \

#exit 1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#npm test
14 changes: 7 additions & 7 deletions Makefile
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
1 change: 1 addition & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
Loading

0 comments on commit bb46887

Please sign in to comment.