eitri-cli 1.6.0-beta.5 → 1.6.0

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.
package/index.js CHANGED
@@ -82,8 +82,8 @@ const run = async () => {
82
82
  .option("-v, --verbose", "Exibe mais logs")
83
83
  .option("-r, --release", "Gera uma nova release baseado nos commits. Um arquivo CHANGELOG.md será gerado automaticamente.")
84
84
  .option(
85
- "-c, --components",
86
- "Publica o Eitri-App como biblioteca de components"
85
+ "-s, --shared",
86
+ "Publica o Eitri-App compartilhado"
87
87
  )
88
88
  .option(
89
89
  "-m, --message <revision-message>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.6.0-beta.5",
3
+ "version": "1.6.0",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ 'SHARED' : 'SHARED',
3
+ 'APPLICATION': 'APPLICATION'
4
+ }
@@ -27,6 +27,7 @@ const EitriAppManager = require("./EitriAppManager");
27
27
  const EitriAppService = require("./EitriAppService");
28
28
  const VegvisirService = require("../modules/vegvisir/VegvisirService");
29
29
  const HuginService = require("./HuginService");
30
+ const EitriAppType = require("../model/EitriAppType");
30
31
  const vegvisirService = new VegvisirService()
31
32
  const huginService = new HuginService()
32
33
 
@@ -823,7 +824,7 @@ class Workspace {
823
824
  miniConf,
824
825
  buildMessage: args.message,
825
826
  cliVersion: packageJson.version,
826
- eitriAppType: args.components ? 'COMPONENTS' : 'APPLICATION'
827
+ eitriAppType: args.shared ? EitriAppType.SHARED : EitriAppType.APPLICATION
827
828
  };
828
829
  const url = `${this.serverUrl}/${this.basePath}/publish?async=true`;
829
830
  await this.http.post(url, body, headers);