From 57e631d6692b10cd3c79d0dd34fcf93382d1adf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0turc?= Date: Wed, 6 Mar 2019 14:05:37 +0100 Subject: [PATCH] fix: release script for audit logging (#137) --- .vscode/launch.json | 2 +- examples/{auditLogging => audit_logging}/README.md | 4 ++-- examples/{auditLogging => audit_logging}/index.js | 0 examples/{auditLogging => audit_logging}/server.js | 0 examples/package.json | 2 +- examples/test/auditLogging.test.js | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename examples/{auditLogging => audit_logging}/README.md (72%) rename examples/{auditLogging => audit_logging}/index.js (100%) rename examples/{auditLogging => audit_logging}/server.js (100%) diff --git a/.vscode/launch.json b/.vscode/launch.json index 9ace6724..9e5595b7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -23,7 +23,7 @@ "type": "node", "request": "launch", "name": "Launch Audit Logging Example", - "program": "${workspaceFolder}/examples/auditLogging/index.js", + "program": "${workspaceFolder}/examples/audit_logging/index.js", "outFiles": [ "${workspaceFolder}/**/*.js" ] diff --git a/examples/auditLogging/README.md b/examples/audit_logging/README.md similarity index 72% rename from examples/auditLogging/README.md rename to examples/audit_logging/README.md index 57d3f436..b08e6e7d 100644 --- a/examples/auditLogging/README.md +++ b/examples/audit_logging/README.md @@ -1,9 +1,9 @@ ## Audit Logging Example -`auditLogging/index.js` is the example of how to use audit logging feature with the `voyager-server` framework. +`audit_logging/index.js` is the example of how to use audit logging feature with the `voyager-server` framework. ``` -$ node auditLogging/index.js +$ node audit_logging/index.js 🚀 Server ready at http://localhost:4000/graphql ``` diff --git a/examples/auditLogging/index.js b/examples/audit_logging/index.js similarity index 100% rename from examples/auditLogging/index.js rename to examples/audit_logging/index.js diff --git a/examples/auditLogging/server.js b/examples/audit_logging/server.js similarity index 100% rename from examples/auditLogging/server.js rename to examples/audit_logging/server.js diff --git a/examples/package.json b/examples/package.json index c04e7fd9..25f92cce 100644 --- a/examples/package.json +++ b/examples/package.json @@ -10,7 +10,7 @@ "test-examples": "ava --concurrency=1 test/*.test.js", "push-basic": "TAG=\"$npm_package_version\" ./push-script.sh basic", "push-keycloak": "TAG=\"$npm_package_version\" ./push-script.sh keycloak", - "push-auditLogging": "TAG=\"$npm_package_version\" ./push-script.sh auditLogging", + "push-audit_logging": "TAG=\"$npm_package_version\" ./push-script.sh audit_logging", "push-metrics": "TAG=\"$npm_package_version\" ./push-script.sh metrics", "push-restapi": "TAG=\"$npm_package_version\" ./push-script.sh restapi" }, diff --git a/examples/test/auditLogging.test.js b/examples/test/auditLogging.test.js index b343bec7..c4b66ef4 100644 --- a/examples/test/auditLogging.test.js +++ b/examples/test/auditLogging.test.js @@ -1,6 +1,6 @@ const test = require('ava') const axios = require('axios') -const { server, app } = require('../auditLogging/server') +const { server, app } = require('../audit_logging/server') const port = 4000 app.listen({ port })