-
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.
Drop parcel; adopt vite; modernize a few deps.
- Loading branch information
Showing
14 changed files
with
2,445 additions
and
3,710 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
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
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 @@ | ||
nodejs 18.12.1 | ||
nodejs 20.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,6 +1,6 @@ | ||
# 🐱 And 🐶 Boilerplate | ||
|
||
Version `0.0.5` by `Ellie` and Daddy aka `Dave Peck <[email protected]>`. | ||
Version `0.1.0` by `Ellie` and Daddy aka `Dave Peck <[email protected]>`. | ||
|
||
### What is this? | ||
|
||
|
@@ -12,15 +12,15 @@ Version `0.0.5` by `Ellie` and Daddy aka `Dave Peck <[email protected]>`. | |
|
||
### Getting set up | ||
|
||
You'll need to install [Node 18](https://nodejs.dev). | ||
You'll need to install [Node 20](https://nodejs.dev). | ||
|
||
There are lots of ways to do this; it depends on your own set-up. (I have a mac with `asdf` installed, so I do `asdf install nodejs 18.12.1`, for example.) | ||
There are lots of ways to do this; it depends on your own set-up. If you have a Mac, consider [installing node via HomeBrew](https://brew.sh). | ||
|
||
Then clone this repository, `npm install`, change the `CNAME` to the name of the website you want to deploy to, and get coding on `app.tsx` and `index.css`. | ||
Then clone this repository, `npm install`, change the `CNAME` to the name of the website you want to deploy to, and get coding on `App.tsx` and `App.css`. | ||
|
||
### How do I run a development server? | ||
|
||
Use `npm run start` and visit http://localhost:1234/. It'll automatically refresh when you change most app content. | ||
Use `npm run dev` and visit http://localhost:5173/. It'll automatically refresh when you change most app content. | ||
|
||
### How do I deploy the code I've written? | ||
|
||
|
@@ -44,9 +44,9 @@ If something 🐱 feels missing to you, please submit a PR that adds it. And if | |
|
||
This template: | ||
|
||
- Uses [ParcelJS 2](https://parceljs.org) for bundling | ||
- Uses [Vite 5](https://vitejs.dev) as our key frontend tool | ||
- Includes [React 18](https://reactjs.org) | ||
- Includes [TypeScript 4](https://www.typescriptlang.org) | ||
- Includes [TypeScript 5](https://www.typescriptlang.org) | ||
- Contains out-of-the-box configuration for [VS Code](https://code.visualstudio.com) that lints and formats on every save with VSCode's built-in rules | ||
- Includes [modern-normalize](https://github.com/sindresorhus/modern-normalize) | ||
- Has built-in [GitHub Actions](https://github.com/features/actions) to automatically deploy changes to the main branch to [GitHub Pages](https://pages.github.com), a static web host. | ||
|
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,21 +1,21 @@ | ||
<html> | ||
<!doctype html> | ||
|
||
<html lang="en"> | ||
|
||
<head> | ||
<title>Cats & Dogs Boilerplate</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> | ||
<link rel="stylesheet" href="normalize.css" /> | ||
<link rel="stylesheet" href="index.css" /> | ||
<script type="module" src="index.tsx"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div id="app"></div> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
<noscript> | ||
Sorry, but Cats & Dogs Boilerplate requires javascript. | ||
</noscript> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
</html> |
Oops, something went wrong.