-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated packages, added linter, dockerfile
- Loading branch information
Showing
22 changed files
with
166 additions
and
170 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,9 @@ | ||
env: | ||
browser: true | ||
es2021: true | ||
extends: | ||
- standard | ||
parserOptions: | ||
ecmaVersion: 12 | ||
sourceType: module | ||
rules: {} |
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,3 @@ | ||
{ | ||
"extends": "stylelint-config-standard" | ||
} |
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,7 @@ | ||
# Original work: https://lipanski.com/posts/smallest-docker-image-static-website | ||
FROM docker.io/lipanski/docker-static-website:latest | ||
|
||
EXPOSE 3000/tcp | ||
|
||
COPY dist/* . | ||
|
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,4 +1,21 @@ | ||
default: | ||
dist-dev: clean | ||
parcel build src/index.pug --public-url '.' --no-content-hash | ||
cp package.json dist/ | ||
cp node-http-server.js dist/ | ||
|
||
dist-prod: clean | ||
parcel build src/index.pug --public-url '.' --no-content-hash --no-source-maps | ||
|
||
clean: | ||
rm -rf dist/ | ||
mkdir dist/ | ||
|
||
buildah: | ||
podman stop -i spoon-check | ||
podman rm -i spoon-check | ||
podman rmi -i spoon-check:latest | ||
buildah bud -t spoon-check:latest . | ||
podman create --name spoon-check -p 8080:8080 spoon-check:latest | ||
|
||
lint: | ||
stylelint src/main.css | ||
eslint src/*.js | ||
eslint src/modules/*.js |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.