2019-10-21 03:32:49 +02:00
|
|
|
# fwdekker.com
|
|
|
|
The source code of [my personal website](https://fwdekker.com/).
|
|
|
|
|
|
|
|
## Development
|
2019-10-31 19:01:41 +01:00
|
|
|
### Requirements
|
2019-10-26 19:29:00 +02:00
|
|
|
* [npm](https://www.npmjs.com/)
|
|
|
|
|
2019-11-01 12:05:26 +01:00
|
|
|
### Setting up
|
2019-10-21 03:32:49 +02:00
|
|
|
```shell script
|
2019-10-26 19:29:00 +02:00
|
|
|
# Install dependencies (only needed once)
|
2019-11-01 12:05:26 +01:00
|
|
|
$> npm ci
|
2019-10-21 03:32:49 +02:00
|
|
|
```
|
2019-10-26 19:29:00 +02:00
|
|
|
|
2019-11-01 12:05:26 +01:00
|
|
|
### Building
|
2019-10-26 19:29:00 +02:00
|
|
|
```shell script
|
2020-05-03 20:52:28 +02:00
|
|
|
# Build the application in `dist/` for development
|
2019-10-31 19:01:41 +01:00
|
|
|
$> npm run dev
|
2020-09-30 15:00:57 +02:00
|
|
|
# Same as above, but automatically rerun it whenever files are changed
|
|
|
|
$> npm run dev:server
|
2020-05-03 20:52:28 +02:00
|
|
|
# Build the application in `dist/` for deployment
|
2019-10-31 19:01:41 +01:00
|
|
|
$> npm run deploy
|
2019-11-01 12:05:26 +01:00
|
|
|
# Remove build files
|
|
|
|
$> npm run clean
|
2019-10-26 19:29:00 +02:00
|
|
|
```
|
|
|
|
|
2019-11-01 12:05:26 +01:00
|
|
|
### Testing
|
2019-10-21 03:32:49 +02:00
|
|
|
```shell script
|
2019-11-01 12:05:26 +01:00
|
|
|
# Run tests
|
2019-10-29 18:36:26 +01:00
|
|
|
$> npm test
|
2019-11-09 19:36:23 +01:00
|
|
|
# Run tests with coverage
|
|
|
|
$> npm run coverage
|
2019-10-21 03:32:49 +02:00
|
|
|
```
|