Added License file to Docker and NPM build (#28)

This commit is contained in:
Dulana Peiris
2023-12-15 17:28:05 +05:30
committed by GitHub
parent 92a9c1a53a
commit a7cb57ff13
6 changed files with 13 additions and 6 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
#license file copied to docker context during build
docker/evernode-license.pdf

View File

@@ -26,4 +26,5 @@ COPY --from=builder /build/scripts/cluster.sh /usr/bin/cluster
COPY --from=builder /build/scripts/codegen.sh /usr/bin/codegen
COPY --from=builder /build/jq /usr/bin/jq
COPY code-templates /code-templates
COPY code-templates /code-templates
COPY evernode-license.pdf /evernode-license.pdf

View File

@@ -1,3 +1,5 @@
#!/bin/bash
docker build -t evernodedev/hpdevkit .
cp ../evernode-license.pdf .
docker build -t evernodedev/hpdevkit .
rm evernode-license.pdf

BIN
evernode-license.pdf Normal file

Binary file not shown.

5
npm/package-lock.json generated
View File

@@ -1,13 +1,14 @@
{
"name": "hpdevkit",
"version": "0.6.4",
"version": "0.6.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "hpdevkit",
"version": "0.6.4",
"version": "0.6.5",
"hasInstallScript": true,
"license": "SEE LICENSE IN https://raw.githubusercontent.com/EvernodeXRPL/evernode-resources/main/license/evernode-license.pdf",
"dependencies": {
"commander": "9.4.0"
},

View File

@@ -1,10 +1,11 @@
{
"name": "hpdevkit",
"version": "0.6.4",
"version": "0.6.5",
"license": "SEE LICENSE IN https://raw.githubusercontent.com/EvernodeXRPL/evernode-resources/main/license/evernode-license.pdf",
"description": "Developer toolkit for HotPocket smart contract development",
"scripts": {
"lint": "./node_modules/.bin/eslint *.js",
"build": "npm run lint && ncc build index.js -o dist/",
"build": "npm run lint && ncc build index.js -o dist/ && cp ../evernode-license.pdf dist/",
"bundle": "npm run build && ./clean-pkg.sh",
"publish": "npm run bundle && cp README.md dist && npm publish ./dist",
"install": "node scripts/install.js"