docs: add README
This commit is contained in:
parent
679226eb4d
commit
77849b518e
76
COMMITLINT.md
Normal file
76
COMMITLINT.md
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
# Commit Messages Format
|
||||||
|
|
||||||
|
This project uses the (conventional commit specification)[https://www.conventionalcommits.org/en/v1.0.0/#specification] for consistent commit messages.
|
||||||
|
|
||||||
|
All commit messages should have the following form:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>: <description>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fix
|
||||||
|
|
||||||
|
A fix (PATCH in semantic versioning) looks like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
fix: correct minor typos in code
|
||||||
|
```
|
||||||
|
|
||||||
|
## Feature
|
||||||
|
|
||||||
|
A new feature (MINOR in semantic versioning) looks like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
feat: add catalan language
|
||||||
|
```
|
||||||
|
|
||||||
|
## Breaking Change
|
||||||
|
|
||||||
|
Breaking changes can be indicated by either appending a "!" to the type:
|
||||||
|
|
||||||
|
```
|
||||||
|
refactor!: drop support for Node 6
|
||||||
|
```
|
||||||
|
|
||||||
|
Or adding "BREAKING CHANGE" to the commit message body text:
|
||||||
|
|
||||||
|
```
|
||||||
|
refactor!: drop support for Node 6
|
||||||
|
|
||||||
|
BREAKING CHANGE: refactor to use JavaScript features not available in Node 6.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Available Types
|
||||||
|
|
||||||
|
In addition to "fix" and "feat" the following types are allowed:
|
||||||
|
build:, chore:, ci:, docs:, style:, refactor:, perf:, test:
|
||||||
|
|
||||||
|
Install commitlint:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install --save-dev @commitlint/{config-conventional,cli}
|
||||||
|
```
|
||||||
|
|
||||||
|
or via yarn:
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn add @commitlint/{config-conventional,cli}
|
||||||
|
```
|
||||||
|
|
||||||
|
Create a commitlint.config.js file:
|
||||||
|
|
||||||
|
```
|
||||||
|
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
|
||||||
|
```
|
||||||
|
|
||||||
|
Add husky to package.json:
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
54
README.md
Normal file
54
README.md
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
# Walk-up alarm
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Alarm clock ringing until you walk out of the bed.
|
||||||
|
|
||||||
|
<p>
|
||||||
|
See it in action:
|
||||||
|
<a href="https://nzambello.github.io/walk-up-alarm/" target="_blank" rel="noopener noreferrer">
|
||||||
|
nzambello.github.io/walk-up-alarm
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p>It's a <a href="https://en.wikipedia.org/wiki/Progressive_web_application" target="_blank" rel="noopener noreferrer">PWA</a>. Install it on your device!</p>
|
||||||
|
<br />
|
||||||
|
<a href="https://nzambello.github.io/walk-up-alarm/" target="_blank" rel="noopener noreferrer">
|
||||||
|
<img src="./public/walk-up-alarm.svg" width="200" alt="Walk-up logo" style="margin: 2rem 0" />
|
||||||
|
</a>
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|
<img src="./screenshots/start.png" alt="Start page" width="33%"/>
|
||||||
|
<img src="./screenshots/clock-alarm-set.png" alt="Start page" width="33%"/>
|
||||||
|
<img src="./screenshots/alarm-playing.png" alt="Start page" width="33%"/>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run the app
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
### Build the app
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn build
|
||||||
|
yarn preview
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run tests
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn test
|
||||||
|
```
|
||||||
|
|
||||||
|
## Contributions
|
||||||
|
|
||||||
|
Please follow our [convention](COMMITLINT.md) on commits format.
|
||||||
BIN
screenshots/alarm-playing.png
Normal file
BIN
screenshots/alarm-playing.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
BIN
screenshots/clock-alarm-set.png
Normal file
BIN
screenshots/clock-alarm-set.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
BIN
screenshots/start.png
Normal file
BIN
screenshots/start.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 191 KiB |
Loading…
Reference in a new issue