Skip to content

Commit 4fb0b68

Browse files
committed
include simple docker scripts for easy build of library
1 parent 7fd1551 commit 4fb0b68

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

build-in-docker.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
docker run --rm -it --entrypoint sh -v "${PWD}":/app -w /app -u 1000:1000 node:10-alpine ./builder.sh

builder.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
export ex_code=1
3+
4+
rm -rf node_modules/ && npm i && npm run build && export ex_code=0
5+
6+
exit $ex_code

0 commit comments

Comments
 (0)