-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove react-scripts deps in favor of vite - migrate from jest to vitest - pnpm instead of npm - upgraded netlify build envs to use latest node - added eslint - update nvmrc
- Loading branch information
Showing
17 changed files
with
4,821 additions
and
30,225 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules/ | ||
build/ | ||
dist/ | ||
# Local Netlify folder | ||
.netlify |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v17.4.0 | ||
v20.11.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
[](https://app.netlify.com/sites/musing-wiles-f46ad5/deploys) | ||
|
||
# [runcalculator](https://runner-math.netlify.app/) | ||
calculator for determining time/pace/distance for running | ||
|
||
built in loving memory of coolrunning's pace calculator | ||
Calculator for determining time/pace/distance for running | ||
|
||
built with react + material ui + typescript | ||
Made in loving memory of coolrunning's pace calculator | ||
|
||
Built with React, Material UI, and TypeScript | ||
|
||
hosting + CI courtesy of Netlify | ||
|
||
 | ||
|
||
# get started | ||
# Get started | ||
|
||
```sh | ||
$ git clone https://github.com/djm158/runcalculator | ||
$ cd runcalculator | ||
$ npm install | ||
$ pnpm install | ||
``` | ||
|
||
# build | ||
|
||
# Build | ||
|
||
```sh | ||
$ npm build | ||
$ pnpm build | ||
``` | ||
|
||
# test | ||
# Test | ||
|
||
```sh | ||
$ npm test | ||
$ pnpm test | ||
``` | ||
|
||
# develop | ||
# Develop | ||
|
||
```sh | ||
$ npm start | ||
$ pnpm start | ||
``` | ||
|
||
# TODO | ||
* keyboard shortcut for clear (esc) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import js from "@eslint/js"; | ||
import globals from "globals"; | ||
import reactHooks from "eslint-plugin-react-hooks"; | ||
import reactRefresh from "eslint-plugin-react-refresh"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default tseslint.config( | ||
{ ignores: ["dist"] }, | ||
{ | ||
extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
files: ["**/*.{ts,tsx}"], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
"react-hooks": reactHooks, | ||
"react-refresh": reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
"react-refresh/only-export-components": [ | ||
"warn", | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} | ||
); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Run calculator is the best tool to help you pace your next workout or race." | ||
/> | ||
<meta | ||
name="google-site-verification" | ||
content="7_6UZDsQ5XyvqnTBO_nj7ZgV3RzUr5ugsrynoCBCo3I" | ||
/> | ||
<link rel="manifest" href="manifest.json" /> | ||
<link rel="shortcut icon" href="favicon.ico" /> | ||
<title>Running Calculator</title> | ||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.