-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12c9870
commit dd3d86b
Showing
43 changed files
with
7,094 additions
and
5,388 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,4 @@ | ||
# don't ever lint node_modules | ||
node_modules | ||
# don't lint build output (make sure it's set to your correct build folder name) | ||
docs |
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,17 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"prettier/@typescript-eslint", | ||
], | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
}; |
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,4 @@ | ||
{ | ||
"semi": false, | ||
"trailingComma": "all" | ||
} |
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,27 +1,19 @@ | ||
# daylight | ||
# daylight.website | ||
|
||
Natural clock for visualizing daylight hours | ||
```sh | ||
# Installation | ||
npm install # download all dependencies | ||
|
||
## install | ||
Install npm dependencies | ||
``` | ||
npm install | ||
``` | ||
|
||
## watch | ||
Run webpack dev server with watch | ||
``` | ||
npm run watch | ||
``` | ||
# Development | ||
npm run dev # start dev server | ||
npm run types # start type checking | ||
npm run test # run unit tests | ||
|
||
## build | ||
Clean out `docs` + run webpack build with production optimizations | ||
``` | ||
npm run build | ||
``` | ||
# Production (outputs to docs/) | ||
npm run build # run production build | ||
|
||
## style | ||
Apply `prettier` and `tslint --fix` formatting to `src` files | ||
``` | ||
npm run style | ||
# Code formatting (optional: most editors can handle these themselves) | ||
npm run format # run all formatters | ||
npm run prettier # run prettier on src | ||
npm run eslint # run eslint on src | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.