@giteeteam/apps-cli 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
31
31
  var child_process__default = /*#__PURE__*/_interopDefaultLegacy(child_process);
32
32
  var chokidar__default = /*#__PURE__*/_interopDefaultLegacy(chokidar);
33
33
 
34
- var version = "0.2.2";
34
+ var version = "0.2.3";
35
35
 
36
36
  const packageApp = async ({ outputDir, manifest, copyFiles }) => {
37
37
  const { resources } = manifest;
@@ -449,7 +449,8 @@ const image = {
449
449
  };
450
450
  const containerPort = Number((_b = process.env.CONTAINER_PORT) !== null && _b !== void 0 ? _b : 8455);
451
451
  const containerName = 'cli-dev-apps-runtime-server';
452
- const tempAppDir = 'app/production/1.0/server-side';
452
+ const tempApp = '/app/production/1.0';
453
+ const tempAppDir = `${tempApp}/server-side`;
453
454
  const containerEnv = {
454
455
  PORT: containerPort,
455
456
  APPS_DIR: '/usr/src/app/apps',
@@ -488,6 +489,8 @@ var run = async (options) => {
488
489
  });
489
490
  await copyManifest(appDir);
490
491
  await watchFiles({ inputDir, outputDir: appDir });
492
+ console.log('You can use this url for test:');
493
+ console.log(`POST http://localhost:${containerPort}/v1/apps${tempApp}/functions/:key`);
491
494
  };
492
495
 
493
496
  var dev = async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Giteeteam Apps cli",
5
5
  "keywords": [
6
6
  "typescript",
@@ -58,6 +58,5 @@
58
58
  "@types/fs-extra": "^9.0.13",
59
59
  "@types/inquirer": "^8.2.1",
60
60
  "@types/uuid": "^8.3.4"
61
- },
62
- "gitHead": "21e371df9bb6e4b94ccd508f17db93f5055a0b3d"
61
+ }
63
62
  }