Skip to content

Commit

Permalink
add Make target to update simplewebauthn/browser dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 22, 2024
1 parent 0be6e93 commit 4882456
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local.env
.vagrant
composer.phar
/nbproject/
local.*.env
*.env
*.aes
dockercfg
node_modules/
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@ test:

test-integration:
docker-compose run --rm test ./run-integration-tests.sh

copyJsLib:
cp ./node_modules/@simplewebauthn/browser/dist/bundle/index.umd.min.js ./modules/material/www/simplewebauthn/browser.js
cp ./node_modules/@simplewebauthn/browser/LICENSE.md ./www/simplewebauthn/LICENSE.md

deps:
docker-compose run --rm node npm install --ignore-scripts
make copyJsLib

depsupdate:
docker-compose run --rm node npm update --ignore-scripts
make copyJsLib
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ services:
- AWS_DEFAULT_REGION=us-east-1
- AWS_DYNAMODB_ENDPOINT=http://dynamo:8000

node:
image: node:lts-alpine
volumes:
- ./package.json:/data/package.json
- ./package-lock.json:/data/package-lock.json
- ./node_modules:/data/node_modules
working_dir: /data

networks:
default:
driver: bridge
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "simplesamlphp-module-material",
"dependencies": {
"@simplewebauthn/browser": "^4.1.0"
}
}

0 comments on commit 4882456

Please sign in to comment.