Skip to content

Commit

Permalink
Updated packages, added linter, dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Apr 3, 2024
1 parent 7f612e9 commit a99c172
Show file tree
Hide file tree
Showing 22 changed files with 166 additions and 170 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.yml
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: {}
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
7 changes: 7 additions & 0 deletions Dockerfile
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/* .

23 changes: 20 additions & 3 deletions Makefile
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
Binary file added dist/icon.cc70fead.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/icon.e1f16077.png
Binary file not shown.
2 changes: 0 additions & 2 deletions dist/index.29f0d3c7.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.29f0d3c7.css.map

This file was deleted.

1 change: 1 addition & 0 deletions dist/index.4c172855.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.dbd90db0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions dist/index.f03c99b4.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.f03c99b4.js.map

This file was deleted.

Loading

0 comments on commit a99c172

Please sign in to comment.