-
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 #53 from purview-dev/removing-logging-when-types-n…
…ot-available v2.0 Release
- Loading branch information
Showing
1,808 changed files
with
16,517 additions
and
4,106 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
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,53 @@ | ||
include .build/common.mk | ||
|
||
# Variables | ||
ROOT_FOLDER = src/ | ||
ROOT_FOLDER = ./src/ | ||
SOLUTION_FILE = $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator.sln | ||
TEST_PROJECT = $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator.sln | ||
CONFIGURATION = Release | ||
|
||
PACK_VERSION = 1.1.0 | ||
PACK_VERSION = 2.0.0 | ||
ARTIFACT_FOLDER = p:/sync-projects/.local-nuget/ | ||
|
||
# Common variables | ||
COLOUR_RESET = \033[0m | ||
|
||
COLOUR_BLACK = \033[30m | ||
COLOUR_RED = \033[31m | ||
COLOUR_GREEN = \033[32m | ||
COLOUR_ORANGE = \033[33m | ||
COLOUR_BLUE = \033[34m | ||
COLOUR_PURPLE = \033[35m | ||
COLOUR_CYAN = \033[36m | ||
COLOUR_WHITE = \033[37m | ||
|
||
COLOUR_GREY = \033[90m | ||
|
||
# Targets | ||
build: ## Builds the project. | ||
dotnet build $(SOLUTION_FILE) --configuration $(CONFIGURATION) | ||
@echo -e "Building $(COLOUR_BLUE)$(SOLUTION_FILE)$(COLOUR_RESET) with $(COLOUR_ORANGE)$(CONFIGURATION)$(COLOUR_RESET)..." | ||
@dotnet build $(SOLUTION_FILE) --configuration $(CONFIGURATION) | ||
|
||
test: ## Runs the tests for the project. | ||
dotnet test $(TEST_PROJECT) --configuration $(CONFIGURATION) | ||
@echo -e "Running tests for $(COLOUR_BLUE)$(TEST_PROJECT)$(COLOUR_RESET) with $(COLOUR_ORANGE)$(CONFIGURATION)$(COLOUR_RESET)..." | ||
@dotnet test $(TEST_PROJECT) --configuration $(CONFIGURATION) | ||
|
||
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 | ||
@echo -e "Packing $(COLOUR_BLUE)Source Generator$(COLOUR_RESET) with $(COLOUR_ORANGE)$(PACK_VERSION)$(COLOUR_RESET)..." | ||
@dotnet pack -c $(CONFIGURATION) -o $(ARTIFACT_FOLDER) $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator/Purview.Telemetry.SourceGenerator.csproj --property:Version=$(PACK_VERSION) --include-symbols | ||
|
||
format: ## Formats the code according to the rules of the src/.editorconfig file. | ||
dotnet format $(ROOT_FOLDER) | ||
@echo -e "Formatting $(COLOUR_BLUE)$(SOLUTION_FILE)$(COLOUR_RESET)..." | ||
@dotnet format $(ROOT_FOLDER) | ||
|
||
act: | ||
@echo -e "Running $(COLOUR_BLUE)act$(COLOUR_RESET)..." | ||
act -P ubuntu-latest=-self-hosted | ||
|
||
vs: ## Opens the project in Visual Studio. | ||
@echo -e "Opening $(COLOUR_BLUE)$(SOLUTION_FILE)$(COLOUR_RESET) in $(COLOUR_ORANGE)Visual Studio$(COLOUR_RESET)..." | ||
@start $(SOLUTION_FILE) | ||
|
||
code: ## Opens the project in Visual Studio Code. | ||
@echo -e "Opening $(COLOUR_BLUE)Visual Studio Code$(COLOUR_RESET)..." | ||
@code . |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.