Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Migrate from React to vite react-ts (#87)
Browse files Browse the repository at this point in the history
* chore(all): remove unused files

* fix(.net): add missing files

* chore(.net): upgrade to `.net8.0`

* fix: remove github action

fix(client): removed bad component
  • Loading branch information
Wesley Ford authored Nov 19, 2023
1 parent 4cbdc67 commit 3e75b79
Show file tree
Hide file tree
Showing 60 changed files with 2,688 additions and 30,997 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/react.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/react.yml.old.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Ensure React Project Builds

on:
push:
branches: ["dev", "main"]
pull_request:
branches: ["dev", "main"]
env:
DOTNET_CORE_VERSION: 8.0.x
WORKING_DIRECTORY: ./src/EducationTrail/ClientApp
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# omits 14.x because some of our devDependencies require 16.x or higher
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Generate and Install ASP.NET Cert
run: |
dotnet dev-certs https --clean
dotnet dev-certs https --export-path ~/.aspnet/https --format Pem --no-password
- name: Test vite+react Project
run: |
npm ci --prefix "${{ env.WORKING_DIRECTORY }}"
npm run build --prefix "${{ env.WORKING_DIRECTORY }}"
17 changes: 7 additions & 10 deletions src/EducationTrail/EducationTrail.sln → src/EducationTrail.sln
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33723.286
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EducationTrail", "EducationTrail.csproj", "{2A4397D3-D82C-4D0E-94AC-B7ABBAD59340}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EducationTrail", "EducationTrail\EducationTrail.csproj", "{4F1AD9BB-81FE-40F4-B899-38D92C594CEA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2A4397D3-D82C-4D0E-94AC-B7ABBAD59340}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A4397D3-D82C-4D0E-94AC-B7ABBAD59340}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2A4397D3-D82C-4D0E-94AC-B7ABBAD59340}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A4397D3-D82C-4D0E-94AC-B7ABBAD59340}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8D2D9BBD-D962-4E53-A6BA-771D6DAC22A1}
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4F1AD9BB-81FE-40F4-B899-38D92C594CEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F1AD9BB-81FE-40F4-B899-38D92C594CEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F1AD9BB-81FE-40F4-B899-38D92C594CEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F1AD9BB-81FE-40F4-B899-38D92C594CEA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
232 changes: 0 additions & 232 deletions src/EducationTrail/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion src/EducationTrail/ClientApp/.env

This file was deleted.

3 changes: 0 additions & 3 deletions src/EducationTrail/ClientApp/.env.development

This file was deleted.

24 changes: 4 additions & 20 deletions src/EducationTrail/ClientApp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
node_modules
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist
dist-ssr
*.local
2 changes: 2 additions & 0 deletions src/EducationTrail/ClientApp/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
Loading

0 comments on commit 3e75b79

Please sign in to comment.