Skip to content

Commit

Permalink
feat(nextjs)!: blazor => reactjs/nextjs/fluent (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfrye authored Feb 17, 2024
1 parent ad5d746 commit f163189
Show file tree
Hide file tree
Showing 59 changed files with 10,212 additions and 1,778 deletions.
28 changes: 20 additions & 8 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json",
"name": "DotCom",
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm",
"name": "Microsoft Graveyard",

// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/powershell": "latest",
"devwasm.azurecr.io/dev-wasm/dev-wasm-feature/dotnet-wasi:0": "latest"
"ghcr.io/devcontainers/features/azure-cli": "latest",
"ghcr.io/devcontainers/features/github-cli": "latest"
},
"forwardPorts": [5139],
"postCreateCommand": "dotnet restore; pwsh",
"shutdownAction": "stopContainer",

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root"
}
364 changes: 0 additions & 364 deletions .editorconfig

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
98 changes: 0 additions & 98 deletions .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Before opening a pull request, please note the following are required and checke
### Adding a new corpse to the graveyard
The core list of dead products is maintained in the [corpses.json](/src/Client/wwwroot/data/corpses.json) file within the `wwwroot/data` directory. This file is a JSON array of objects using a custom JSON schema. The schema is defined in the [corpses.schema.json](/files/corpses.schema.json) file but can be summarized as the following properties:
The core list of dead products is maintained in the [corpses.json](/public/data/corpses.json) file within the `public/data` directory. This file is a JSON array of objects using a custom JSON schema. The schema is defined in the [corpses.schema.json](/files/corpses.schema.json) file but can be summarized as the following properties:
- `name` - The name of the product. This should NOT include Microsoft unless absolutely necessary as all products in this list are Microsoft products and could be prepended with the company's name.
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

version: 2
updates:
# Maintain dependencies for Nuget
- package-ecosystem: "nuget"
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
Expand Down
29 changes: 11 additions & 18 deletions .github/workflows/azure-swa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ on:
branches: ["main"]

env:
DOTNET_VERSION: '8.x'
APP_PROJECT_FILE: 'src/Client/Client.csproj'
APP_OUTPUT_LOCATION: 'artifacts/client'
NODE_VERSION: '20.x'

jobs:
build_and_deploy_job:
Expand All @@ -24,32 +22,27 @@ jobs:
with:
submodules: true
lfs: false
- name: Set up .NET
uses: actions/setup-dotnet@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install WASM build tools
run: dotnet workload install wasm-tools
- name: Restore dependencies
run: dotnet restore
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Verify formatting
run: dotnet format --verify-no-changes --no-restore
- name: Build solution
run: dotnet build -c Release --no-restore
- name: Test solution
run: dotnet test -c Release --no-restore --no-build
- name: Publish app project
run: dotnet publish ${{ env.APP_PROJECT_FILE }} -c Release -o ${{ env.APP_OUTPUT_LOCATION }} --no-restore --no-build
run: npm run lint
- name: Build sources
run: npm run build
- name: Deploy static web app
id: deploy
uses: Azure/static-web-apps-deploy@v1
env:
SKIP_DEPLOY_ON_MISSING_SECRETS: ${{ github.event_name == 'pull_request' }}
IS_STATIC_EXPORT: true
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_SWA_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: 'upload'
app_location: '${{ env.APP_OUTPUT_LOCATION }}/wwwroot'
app_location: 'out'
skip_app_build: true
skip_api_build: true

Expand Down
Loading

0 comments on commit f163189

Please sign in to comment.