From 0aae5adf6b019a9f1f92ad5c47a906b4bae65c62 Mon Sep 17 00:00:00 2001 From: patrikx3 Date: Sat, 8 Sep 2018 13:18:20 +0200 Subject: [PATCH] robo8x [chore] 9/8/2018, 1:18:20 PM --- .npmignore | 2 -- bin/p3x-redis.js | 3 +++ p3xrs.json | 16 ++++++++++++++++ package.json | 11 +++++++++-- 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100755 bin/p3x-redis.js create mode 100644 p3xrs.json diff --git a/.npmignore b/.npmignore index ad87a358..120e3638 100644 --- a/.npmignore +++ b/.npmignore @@ -12,5 +12,3 @@ /*.lock *.log /corifeus-boot.json - -/src/**/*.* \ No newline at end of file diff --git a/bin/p3x-redis.js b/bin/p3x-redis.js new file mode 100755 index 00000000..55d72793 --- /dev/null +++ b/bin/p3x-redis.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node +const boot = require('p3x-redis-ui-server/src/lib/boot') +boot() diff --git a/p3xrs.json b/p3xrs.json new file mode 100644 index 00000000..2a522ffe --- /dev/null +++ b/p3xrs.json @@ -0,0 +1,16 @@ +{ + "p3xrs": { + "https2": { + "cert": "~p3x-redis-ui-server/artifacts/certs/cert.pem", + "key": "~p3x-redis-ui-server/artifacts/certs/key.nopass.pem", + "port-info": "this is ommitted, it will be default 7843", + "port": 7843 + }, + "connections": { + "home-dir-info": "if the dir config is empty or home, the connections are saved in the home folder, otherwise it will resolve the directory set as it is, either relative ./ or absolute starting with /. NodeJs will resolve this directory in p3xrs.connections.dir", + "home-dir": "home" + }, + "static-info": "This is the best configuration, if it starts with ~, then it is in resolve the path in the node_modules, otherwise it resolves to the current process current working directory.", + "static": "~p3x-redis-ui-material/dist" + } +} \ No newline at end of file diff --git a/package.json b/package.json index a567afc7..1fd0d040 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,9 @@ "reponame": "redis-ui" }, "main": "src/index.js", + "bin": { + "p3x-redis": "./bin/p3x-redis.js" + }, "scripts": { "test": "grunt" }, @@ -41,5 +44,9 @@ "engines": { "node": ">=8.11.4" }, - "homepage": "https://pages.corifeus.com/redis-ui" -} \ No newline at end of file + "homepage": "https://pages.corifeus.com/redis-ui", + "dependencies": { + "p3x-redis-ui-material": "^2018.9.8-8", + "p3x-redis-ui-server": "^2018.9.8-7" + } +}