blokctl 0.2.8 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ const exec = util.promisify(child_process.exec);
16
16
  const HOME_DIR = `${os.homedir()}/.blok`;
17
17
  const GITHUB_REPO_LOCAL = `${HOME_DIR}/blok`;
18
18
  const GITHUB_REPO_REMOTE = "https://github.com/well-prado/blok.git";
19
- const GITHUB_REPO_RELEASE_TAG = "v0.2.2";
19
+ const GITHUB_REPO_RELEASE_TAG = "v0.2.9";
20
20
  fsExtra.ensureDirSync(HOME_DIR);
21
21
  const options = {
22
22
  baseDir: HOME_DIR,
@@ -344,6 +344,10 @@ export async function createProject(opts, version, currentPath = false, localRep
344
344
  fsExtra.ensureDirSync(`${dirPath}/infra/metrics`);
345
345
  fsExtra.copySync(`${repoSource}/infra/metrics`, `${dirPath}/infra/metrics`);
346
346
  fsExtra.removeSync(`${dirPath}/public/metric`);
347
+ if (selectedTriggers.includes("queue")) {
348
+ fsExtra.ensureDirSync(`${dirPath}/infra/development`);
349
+ fsExtra.copySync(`${repoSource}/infra/development`, `${dirPath}/infra/development`);
350
+ }
347
351
  if (!examples) {
348
352
  fsExtra.removeSync(`${nodesDir}/examples`);
349
353
  fsExtra.removeSync(`${workflowsDir}`);
@@ -527,6 +531,14 @@ export async function createProject(opts, version, currentPath = false, localRep
527
531
  console.log(` ${rc.label}: http://localhost:${rc.port}/health`);
528
532
  }
529
533
  }
534
+ if (selectedTriggers.includes("queue") && queueProvider === "redis") {
535
+ console.log(color.cyan("\nšŸ“¦ Redis Setup (for Queue trigger):"));
536
+ console.log(" Start Redis with Docker:");
537
+ console.log(color.dim(" cd infra/development"));
538
+ console.log(color.dim(" docker network create shared-network"));
539
+ console.log(color.dim(" docker compose up -d redis redis-commander"));
540
+ console.log(" Redis Commander UI: http://localhost:8081");
541
+ }
530
542
  console.log("\nFor more documentation, visit https://blok.build/");
531
543
  if (examples) {
532
544
  console.log(examples_url);
@@ -906,7 +918,7 @@ function updateQueueProvider(triggerDestDir, provider) {
906
918
  function getProviderDependencies(triggers, pubsubProvider, queueProvider) {
907
919
  const deps = {};
908
920
  const pubsubProviderDeps = {
909
- gcp: { "@google-cloud/pubsub": "^4.0.0" },
921
+ gcp: { "@google-cloud/pubsub": "^5.0.0" },
910
922
  aws: { "@aws-sdk/client-sns": "^3.980.0", "@aws-sdk/client-sqs": "^3.980.0" },
911
923
  azure: { "@azure/service-bus": "^7.9.5" },
912
924
  };
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blokctl",
3
- "version": "0.2.8",
3
+ "version": "0.2.11",
4
4
  "author": "Deskree Technologies Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "description": "cli for blok",
@@ -13,10 +13,7 @@
13
13
  "bin": {
14
14
  "blokctl": "./dist/index.js"
15
15
  },
16
- "files": [
17
- "dist",
18
- "node_modules"
19
- ],
16
+ "files": ["dist", "node_modules"],
20
17
  "scripts": {
21
18
  "build": "rm -rf dist && bun run tsc",
22
19
  "build:dev": "tsc --watch",
@@ -30,12 +27,7 @@
30
27
  "postbuild": "cp -r ./src/commands/monitor/static ./dist/commands/monitor/ && if [ -d ../../apps/studio/dist ]; then cp -r ../../apps/studio/dist ./dist/studio-dist; fi",
31
28
  "build:studio": "bun run --filter @blokjs/studio build && cp -r ../../apps/studio/dist ./dist/studio-dist"
32
29
  },
33
- "keywords": [
34
- "blokctl",
35
- "cli",
36
- "blok",
37
- "blok"
38
- ],
30
+ "keywords": ["blokctl", "cli", "blok", "blok"],
39
31
  "dependencies": {
40
32
  "@blokjs/runner": "^0.2.0",
41
33
  "@clack/prompts": "^1.0.0",