Skip to content

Commit

Permalink
Merge pull request #997 from st3phhays/astro-clean
Browse files Browse the repository at this point in the history
(#996) (ENGTASKS-3631) Switch to Astro
  • Loading branch information
gep13 authored Jun 12, 2024
2 parents ae18bee + e1265bd commit 01f9f41
Show file tree
Hide file tree
Showing 1,583 changed files with 64,489 additions and 57,757 deletions.
12 changes: 0 additions & 12 deletions .config/dotnet-tools.json

This file was deleted.

5 changes: 0 additions & 5 deletions .devcontainer/Dockerfile

This file was deleted.

53 changes: 30 additions & 23 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/dotnet
// https://github.com/withastro/astro/blob/main/.devcontainer/with-mdx/devcontainer.json
{
"name": "C# (.NET)",
"runArgs": ["--init"],
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "3.1-focal",
"NODE_VERSION": "20"
"name": "Node.js & TypeScript",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
"forwardPorts": [5086],
"portsAttributes": {
"5086": {
"label": "Astro",
"onAutoForward": "openBrowser"
}
},
"postAttachCommand": "yarn dev",
"customizations": {
"codespaces": {
"openFiles": ["README.md"]
},
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"shardulm94.trailing-spaces",
"nhoizey.gremlins",
"streetsidesoftware.code-spell-checker",
"bierner.emojisense",
"astro-build.astro-vscode",
"esbenp.prettier-vscode",
"unifiedjs.vscode-mdx",
"ms-vscode.vscode-typescript-next",
"dbaeumer.vscode-eslint"
]
}
},
"hostRequirements": {
"cpus": 4,
"memory": "8gb"
},
"settings": {},
"extensions": [
"ms-dotnettools.csharp",
"DavidAnson.vscode-markdownlint",
"shardulm94.trailing-spaces",
"nhoizey.gremlins",
"streetsidesoftware.code-spell-checker",
"bierner.emojisense"
],
"remoteUser": "vscode"
},
"remoteUser": "node"
}
54 changes: 54 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# git history
.git

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# npm
npm-debug.log
.coverage
.coverage.*
.env
.aws

# yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/

# choco-theme
public/fonts
public/scripts
public/styles
public/images/global-shared

# general
apple-touch-*.png
favicon.ico
.astro
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 4
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests

on:
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout repository using git
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build site
run: yarn build
- name: Run Playwright tests
run: yarn playwright
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 14
55 changes: 25 additions & 30 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
name: Publish Documentation
on:
workflow_dispatch:
push:
branches:
- master

jobs:
on:
push:
branches: [ master ]
workflow_dispatch:

###################################################
# DOCS
###################################################
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
name: Publish
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.301' # SDK Version to use.
- name: Checkout repository using git
uses: actions/checkout@v4
- name: Install, build, and upload site
uses: withastro/action@v2

- name: Publish-Documentation
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STATIQ_GITHUB_TOKEN: ${{ secrets.STATIQ_GITHUB_TOKEN }}
STATIQ_DEPLOY_BRANCH: ${{ secrets.STATIQ_DEPLOY_BRANCH }}
STATIQ_DEPLOY_REMOTE: ${{ secrets.STATIQ_DEPLOY_REMOTE }}
run: |
dotnet tool restore
dotnet cake --target=Publish-Documentation
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
31 changes: 0 additions & 31 deletions .github/workflows/pullrequest.yaml

This file was deleted.

68 changes: 50 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,58 @@
.dotnet/
tools/
BuildArtifacts/
config.wyam.*
.DS_Store
output/
bin/
obj/
publish/
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/
input/assets/css/
input/assets/js/
input/assets/fonts/
input/assets/images/global-shared/
input/global-partials/
apple-touch-*.png
favicon.ico
cache/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# npm
npm-debug.log
.coverage
.coverage.*
.env
.aws

# yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.directory

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/

# choco-theme
public/fonts
public/scripts
public/styles
public/images/global-shared

# general
apple-touch-*.png
favicon.ico
.astro

# playwright
/src/tests/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
16 changes: 8 additions & 8 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"MD026": false,
"MD013": false,
"MD024": false,
"MD034": false,
"MD033": {
"allowed_elements": ["details", "strong", "summary"]
}
}
"MD026": false,
"MD013": false,
"MD024": false,
"MD034": false,
"MD033": {
"allowed_elements": ["details", "strong", "summary"]
}
}
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
Loading

0 comments on commit 01f9f41

Please sign in to comment.