Skip to content

Commit a649be1

Browse files
authored
Merge pull request #3 from PSDTools/merge-in-gpa
Merge in PSDTools/GPA_Calculator
2 parents 8b20c58 + 43bfffa commit a649be1

35 files changed

+2287
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.yarn/releases/** binary
2+
/.yarn/plugins/** binary
3+
*.lockb diff=lockb
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Each line is a file pattern followed by one or more owners.
2+
3+
# These owners will be the default owners for everything in
4+
# the repo. Unless a later match takes precedence,
5+
# the global owners will be requested for
6+
# review when someone opens a pull request.
7+
* @lishaduck @ParkerH27
8+
9+
/src/ @lishaduck @ParkerH27
10+
*.js @ParkerH27
11+
*.ts @ParkerH27 @lishaduck
12+
/docs/ @lishaduck
13+
/.github/ @lishaduck
14+
/public/ @ParkerH27 @lishaduck
15+
/.all-contributorsrc @lishaduck
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
12+
assignees:
13+
- lishaduck
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
name: Deploy to GitHub Pages
3+
4+
env:
5+
CI: true
6+
7+
on:
8+
# Runs on pushes to the default branch
9+
push:
10+
branches:
11+
- main
12+
13+
# Runs on PRs targeting the default branch
14+
pull_request:
15+
types: [opened, synchronize, reopened, closed]
16+
branches:
17+
- main
18+
19+
# Allows you to run this workflow manually from the Actions tab
20+
workflow_dispatch:
21+
22+
jobs:
23+
build_job:
24+
name: Build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3.5.0
28+
with:
29+
submodules: true
30+
31+
- name: Install bun
32+
uses: oven-sh/setup-bun@v1
33+
with:
34+
bun-version: 1.0.29
35+
36+
- name: Cache
37+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
38+
id: cache
39+
with:
40+
path: |
41+
.turbo
42+
node_modules
43+
~/.bun/install/cache
44+
key: ${{ runner.os }}-${{ runner.arch }}-node_modules-${{ hashFiles('**/bun.lockb', '**/turbo.json') }}
45+
46+
- name: Install dependencies
47+
if: steps.cache.outputs.cache-hit != 'true'
48+
run: bun --bun install --frozen-lockfile
49+
env:
50+
SHARP_IGNORE_GLOBAL_LIBVIPS: 1
51+
52+
- name: Lint & Build
53+
run: bun --bun run turbo build
54+
55+
- name: Redirect 404 to Index for SPA
56+
run: cp dist/index.html dist/404.html
57+
58+
- name: Setup Pages
59+
uses: actions/configure-pages@v3.0.5
60+
61+
- name: Upload Artifact
62+
uses: actions/upload-pages-artifact@v1.0.8
63+
with:
64+
path: "./dist/"
65+
66+
deploy_job:
67+
name: Deploy
68+
needs: [build_job]
69+
if: github.event_name == 'push'
70+
runs-on: ubuntu-latest
71+
timeout-minutes: 4
72+
permissions:
73+
pages: write
74+
id-token: write
75+
contents: read
76+
concurrency:
77+
group: "pages"
78+
cancel-in-progress: true
79+
environment:
80+
name: github-pages
81+
url: ${{ steps.deployment.outputs.page_url }}
82+
steps:
83+
- id: deployment
84+
uses: actions/deploy-pages@v2.0.0

packages/gpa-calculator/.gitignore

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Misc
2+
dev-dist
3+
build
4+
types
5+
.turbo
6+
7+
# Logs
8+
logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
lerna-debug.log*
14+
.pnpm-debug.log*
15+
vite.config.ts.timestamp-*.mjs
16+
17+
# Diagnostic reports (https://nodejs.org/api/report.html)
18+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
19+
20+
# Runtime data
21+
pids
22+
*.pid
23+
*.seed
24+
*.pid.lock
25+
26+
# Directory for instrumented libs generated by jscoverage/JSCover
27+
lib-cov
28+
29+
# Coverage directory used by tools like istanbul
30+
coverage
31+
*.lcov
32+
33+
# nyc test coverage
34+
.nyc_output
35+
36+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
37+
.grunt
38+
39+
# Bower dependency directory (https://bower.io/)
40+
bower_components
41+
42+
# node-waf configuration
43+
.lock-wscript
44+
45+
# Compiled binary addons (https://nodejs.org/api/addons.html)
46+
build/Release
47+
48+
# Dependency directories
49+
node_modules/
50+
jspm_packages/
51+
52+
# Snowpack dependency directory (https://snowpack.dev/)
53+
web_modules/
54+
55+
# TypeScript cache
56+
*.tsbuildinfo
57+
58+
# Optional npm cache directory
59+
.npm
60+
61+
# Optional eslint cache
62+
.eslintcache
63+
64+
# Optional stylelint cache
65+
.stylelintcache
66+
67+
# Microbundle cache
68+
.rpt2_cache/
69+
.rts2_cache_cjs/
70+
.rts2_cache_es/
71+
.rts2_cache_umd/
72+
73+
# Optional REPL history
74+
.node_repl_history
75+
76+
# Output of 'npm pack'
77+
*.tgz
78+
79+
# Yarn Integrity file
80+
.yarn-integrity
81+
82+
# dotenv environment variable files
83+
.env
84+
.env.development.local
85+
.env.test.local
86+
.env.production.local
87+
.env.local
88+
89+
# parcel-bundler cache (https://parceljs.org/)
90+
.cache
91+
.parcel-cache
92+
93+
# Next.js build output
94+
.next
95+
out
96+
97+
# Nuxt.js build / generate output
98+
.nuxt
99+
dist
100+
101+
# Gatsby files
102+
.cache/
103+
# Comment in the public line in if your project uses Gatsby and not Next.js
104+
# https://nextjs.org/blog/next-9-1#public-directory-support
105+
# public
106+
107+
# vuepress build output
108+
.vuepress/dist
109+
110+
# vuepress v2.x temp and cache directory
111+
.temp
112+
.cache
113+
114+
# Docusaurus cache and generated files
115+
.docusaurus
116+
117+
# Serverless directories
118+
.serverless/
119+
120+
# FuseBox cache
121+
.fusebox/
122+
123+
# DynamoDB Local files
124+
.dynamodb/
125+
126+
# TernJS port file
127+
.tern-port
128+
129+
# Stores VSCode versions used for testing VSCode extensions
130+
.vscode-test
131+
132+
# yarn v2
133+
.pnp.*
134+
.yarn/*
135+
!.yarn/patches
136+
!.yarn/plugins
137+
!.yarn/releases
138+
!.yarn/versions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/node_modules/
2+
/dist/
3+
/build/
4+
/artifacts/
5+
/coverage/
6+
.git/
7+
turbo.json
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": false,
4+
"semi": true,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"endOfLine": "lf",
8+
"overrides": [
9+
{
10+
"files": [".prettierrc"],
11+
"options": {
12+
"parser": "json"
13+
}
14+
},
15+
{
16+
"files": ["tsconfig.json"],
17+
"options": {
18+
"trailingComma": "none"
19+
}
20+
}
21+
],
22+
"experimentalTernaries": true
23+
}

packages/gpa-calculator/.replit

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
run = "npm run start"
2+
entrypoint = "main.js"
3+
4+
hidden = [".config"]
5+
6+
[nix]
7+
channel = "stable-22_11"
8+
9+
[env]
10+
# PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin"
11+
# XDG_CONFIG_HOME = "/home/runner/.config"
12+
# npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
13+
14+
[gitHubImport]
15+
requiredFiles = [
16+
".replit",
17+
"replit.nix",
18+
# ".config"
19+
]
20+
21+
[packager]
22+
language = "nodejs"
23+
[packager.features]
24+
packageSearch = true
25+
guessImports = true
26+
enabledForHosting = false
27+
28+
[languages]
29+
[languages.javascript]
30+
pattern = "**/{*.js,*.jsx,*.ts,*.tsx}"
31+
[languages.javascript.languageServer]
32+
start = "typescript-language-server --stdio"
33+
34+
[deployment]
35+
build = ["sh", "-c", "npm run build"]
36+
run = ["sh", "-c", "npm run start"]
37+
type = "static"
38+
39+
# This file is for the Replit IDE to specify which file to run and what language.
40+
# It is unnecessary for any use-case that does not include the Replit IDE
41+
# IDE: Replit.com
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"christian-kohler.npm-intellisense",
4+
"ms-edgedevtools.vscode-edge-devtools",
5+
"pwabuilder.pwa-studio",
6+
"esbenp.prettier-vscode",
7+
"davidanson.vscode-markdownlint",
8+
"swellaby.node-pack"
9+
]
10+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "msedge",
9+
"request": "launch",
10+
"name": "Run PWA",
11+
"webRoot": "${workspaceFolder}/",
12+
"runtimeArgs": ["--app=http://localhost:3000"],
13+
"sourceMapPathOverrides": {
14+
"../../src": "${workspaceFolder}/src",
15+
"../../src/*": "${workspaceFolder}/src/*"
16+
},
17+
"preLaunchTask": "npm run dev-task",
18+
"postDebugTask": "postdebugKill"
19+
},
20+
{
21+
"name": "Launch Microsoft Edge and open the Edge DevTools",
22+
"request": "launch",
23+
"type": "vscode-edge-devtools.debug",
24+
"url": "" // Provide your project's url to finish configuring
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)