This file contains hidden or 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
using QuestPDF.Elements; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Infrastructure; | |
public class OrderItem | |
{ | |
public string ItemName { get; set; } = Placeholders.Sentence(); | |
public int Price { get; set; } = Placeholders.Random.Next(1, 11) * 10; | |
public int Count { get; set; } = Placeholders.Random.Next(1, 11); |
This file contains hidden or 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
import { build, files, version } from '$service-worker'; | |
// https://github.com/microsoft/TypeScript/issues/11781 - this is needed for TS and ESLint | |
/// env serviceworker | |
const globalThis = /** @type {unknown} */ (self); | |
/// <reference no-default-lib="true"/> | |
/// <reference lib="es2020" /> | |
/// <reference lib="WebWorker" /> | |
const sw = /** @type {ServiceWorkerGlobalScope & typeof globalThis} */ (globalThis); |
This file contains hidden or 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
FROM mcr.microsoft.com/dotnet/core/runtime:3.0 AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build | |
WORKDIR /src | |
COPY ["WebApplication4/WebApplication4.csproj", "WebApplication4/"] | |
RUN dotnet restore "WebApplication4/WebApplication4.csproj" | |
COPY . . |
This file contains hidden or 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
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/ | |
# GitLab uses docker in the background, so we need to specify the | |
# image versions. This is useful because we're freely to use | |
# multiple node versions to work with it. They come from the docker | |
# repo. | |
# Uses NodeJS V 9.4.0 | |
image: node:9.4.0 | |
# And to cache them as well. |