Skip to content

Commit

Permalink
Merge pull request #114 from samvera/v5.0-streaming-iiif3
Browse files Browse the repository at this point in the history
Implement IIIFv3 and Lambda response streaming
  • Loading branch information
mbklein committed Sep 1, 2023
2 parents 9eb0ae0 + 1c957d4 commit 35e019a
Show file tree
Hide file tree
Showing 68 changed files with 14,849 additions and 10,721 deletions.
24 changes: 0 additions & 24 deletions .env.example

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"space-in-parens": ["error", "never"],

// This should replicate Code Climate's computational complexity code smells warning. It is actually more strict.
"complexity": ["warn", 5]
"complexity": ["warn", 6]
}
}
53 changes: 53 additions & 0 deletions .github/workflows/doc-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Deploy doc previews to GitHub Pages
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
paths:
- .github/workflows/doc-preview.yml
- docs/**
- sam/template.yml
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
pull-requests: write
concurrency:
group: "preview-${{ github.ref }}"
cancel-in-progress: false
jobs:
deploy-preview:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- name: Restore cache
uses: actions/cache@v3
with:
path: |
docs/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('docs/**/package-lock.json') }}-${{ hashFiles('docs/**.[jt]s', 'docs/**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('docs/**/package-lock.json') }}-
- name: Install dependencies
run: npm install
- name: Build with Next.js
run: npx --no-install next build
env:
NEXTJS_BASE_PATH: "/serverless-iiif/pr-preview/pr-${{ github.event.number }}"
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/out/
25 changes: 8 additions & 17 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
deploy-pages:
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -42,19 +42,10 @@ jobs:
run: npx --no-install next build
env:
NEXTJS_BASE_PATH: "/serverless-iiif"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs/out

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: JamesIves/github-pages-deploy-action@v4
with:
clean-exclude: |
.nojekyll
pr-preview/
folder: ./docs/out
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# AWS SAM
.aws
.aws-sam
deploy.yml
deploy.yaml
node_modules
samconfig.toml
env.json
package.yml
samconfig.toml
package.yaml
samconfig.*

# NodeJS Build
coverage
Expand Down
172 changes: 19 additions & 153 deletions README.md

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions bin/build

This file was deleted.

18 changes: 0 additions & 18 deletions bin/delete

This file was deleted.

45 changes: 0 additions & 45 deletions bin/deploy

This file was deleted.

18 changes: 0 additions & 18 deletions bin/setup.js

This file was deleted.

15 changes: 8 additions & 7 deletions bin/update_version
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ for f in $root/package.json $root/src/package.json $root/dependencies/package.js
jq --arg v "$version" '.version = $v' <<< $content > $f
done

for f in $root/sam/standalone/template.yml $root/sam/cloudfront/template.yml; do
if [[ "$OSTYPE" = "darwin*" ]]; then
sed -i '' -E "s/SemanticVersion: .+/SemanticVersion: $version/" $f
else
sed -i'' -E "s/SemanticVersion: .+/SemanticVersion: $version/" $f
fi
done
if [[ "$OSTYPE" = "darwin*" ]]; then
sedreplace="sed -i ''"
else
sedreplace="sed -i''"
fi

$sedreplace -E "s/SemanticVersion: .+/SemanticVersion: $version/" $root/sam/template.yml
$sedreplace -E "s/ serverless_iiif_app_version =.+/ serverless_iiif_app_version = \"$version\"" $root/extras/terraform/main.tf
Loading

0 comments on commit 35e019a

Please sign in to comment.