Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mstruebing committed Oct 4, 2023
1 parent 0a4b22c commit 53a3903
Show file tree
Hide file tree
Showing 9 changed files with 7,653 additions and 4,438 deletions.
7 changes: 7 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Automatically sets up your devbox environment whenever you cd into this
# directory via our direnv integration:

eval "$(devbox generate direnv --print-envrc)"

# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
# for more details
20 changes: 14 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
version: 2
updates:
- package-ecosystem: elm
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
- package-ecosystem: elm
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10

- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
day: "sunday"
time: "04:00"
open-pull-requests-limit: 10
13 changes: 7 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: ci

on:
pull_request:
push:
branches:
- "main"
branches: [main]

jobs:
docker:
ci:
runs-on: ubuntu-latest
steps:
- name: Set current date as env variable
id: tagname
run: echo "::set-output name=timestamp::$(date +'%s')"

- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install devbox
uses: jetpack-io/[email protected]
with:
node-version-file: ".node-version"
enable-cache: true

- run: npm ci
- run: npm run format:validate
Expand All @@ -36,5 +37,5 @@ jobs:
env:
TAG_NAME: ${{ steps.tagname.outputs.timestamp }}
with:
push: true
push: ${{ github.ref_name == 'main' }}
tags: mstruebing/elmodoro:${{ steps.tagname.outputs.timestamp }}
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.13.1-alpine as builder
FROM node:20.6.1-alpine as builder

WORKDIR /src

Expand All @@ -7,7 +7,9 @@ ADD package*.json /src
RUN npm install

ADD . /src
RUN npm run build
# Need this option because of ssl issue:
# https://github.com/halfzebra/create-elm-app/issues/604
RUN NODE_OPTIONS=--openssl-legacy-provider npm run build

FROM nginx:1.21.6-alpine

Expand Down
9 changes: 9 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"packages": ["[email protected]"],
"shell": {
"init_hook": ["export NODE_OPTIONS=--openssl-legacy-provider"],
"scripts": {
"test": ["echo \"Error: no test specified\" && exit 1"]
}
}
}
25 changes: 25 additions & 0 deletions devbox.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"lockfile_version": "1",
"packages": {
"[email protected]": {
"last_modified": "2023-09-15T06:49:28Z",
"resolved": "github:NixOS/nixpkgs/46688f8eb5cd6f1298d873d4d2b9cf245e09e88e#nodejs_20",
"source": "devbox-search",
"version": "20.6.1",
"systems": {
"aarch64-darwin": {
"store_path": "/nix/store/jz06h6pg4rbvvcrmwb31xvszn43rib55-nodejs-20.6.1"
},
"aarch64-linux": {
"store_path": "/nix/store/n49p920r37bpk6cjslvs53nfvdax6s2h-nodejs-20.6.1"
},
"x86_64-darwin": {
"store_path": "/nix/store/w07l7126jfc8r5x24dghih6i9mlyf0pg-nodejs-20.6.1"
},
"x86_64-linux": {
"store_path": "/nix/store/nwm5z051xxvyk3i7gh59m911nmpl9wrs-nodejs-20.6.1"
}
}
}
}
}
3 changes: 2 additions & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "1.2.2"
"elm-explorations/test": "2.1.1"
},
"indirect": {
"elm/bytes": "1.0.8",
"elm/random": "1.0.0"
}
}
Expand Down
Loading

0 comments on commit 53a3903

Please sign in to comment.