Skip to content

Commit

Permalink
New base project
Browse files Browse the repository at this point in the history
  • Loading branch information
alexburner committed Jul 25, 2020
1 parent 12c9870 commit dd3d86b
Show file tree
Hide file tree
Showing 43 changed files with 7,094 additions and 5,388 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
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
17 changes: 17 additions & 0 deletions .eslintrc.js
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",
},
},
};
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"trailingComma": "all"
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

36 changes: 14 additions & 22 deletions README.md
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
```
1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

23 changes: 0 additions & 23 deletions docs/bundle.3e03b247663284bbb386.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/bundle.3e03b247663284bbb386.js.map

This file was deleted.

17 changes: 0 additions & 17 deletions docs/index.html

This file was deleted.

Binary file removed docs/preview.png
Binary file not shown.
71 changes: 0 additions & 71 deletions docs/style.css

This file was deleted.

Loading

0 comments on commit dd3d86b

Please sign in to comment.