eitri-cli 1.0.3 → 1.0.5

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.
@@ -0,0 +1,15 @@
1
+ image: node:14
2
+ pipelines:
3
+ default:
4
+ - step: &npmPublish
5
+ name: Publicação no NPM
6
+ caches:
7
+ - node
8
+ script:
9
+ - yarn
10
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
11
+ - node publisher.js
12
+
13
+ branches:
14
+ master:
15
+ - step: *npmPublish
package/index.js CHANGED
@@ -128,7 +128,7 @@ const run = async () => {
128
128
  .description('Desinstala a versao antiga e instala a mais nova')
129
129
  .action(() => {
130
130
  require('child_process').execSync(
131
- 'npm uninstall -g eitri && npm i eitri -g',
131
+ 'npm uninstall -g eitri-cli && npm i eitri-cli -g',
132
132
  {stdio: 'inherit'}
133
133
  )
134
134
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Command Line Interface to make \"eitri app\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -96,8 +96,6 @@ ${await targetService.getAppConfExampleSnippet()}
96
96
  console.log('\x1b[1mdisponível no Eitri-console para aprovação\x1b[0m');
97
97
  console.log(separator)
98
98
 
99
-
100
- await track(miniConf, start)
101
99
  await TrackingEitriAnalytics.sendEvent({
102
100
  command: "push-version",
103
101
  success: true,
@@ -122,7 +120,6 @@ ${await targetService.getAppConfExampleSnippet()}
122
120
  console.log(`\x1b[1m\x1b[31mNão será possível continuar por enquanto. A forja encontrou um erro.\x1b[0m`);
123
121
  }
124
122
 
125
- await trackingService.sendError(e)
126
123
  await TrackingEitriAnalytics.sendEvent({
127
124
  command: "push-version",
128
125
  success: false,
@@ -1,64 +0,0 @@
1
- image: node:14
2
- pipelines:
3
- default:
4
- - step: &runDitto
5
- name: Run Ditto
6
- script:
7
- - pipe: atlassian/trigger-pipeline:4.2.1
8
- variables:
9
- BITBUCKET_USERNAME: $BITBUCKET_USERNAME
10
- BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
11
- REPOSITORY: "ditto-e2e"
12
- BRANCH_NAME: "develop"
13
- PIPELINE_VARIABLES: >
14
- [{
15
- "key": "AME_APP_TOOLS_BRANCH",
16
- "value": "$BITBUCKET_BRANCH"
17
- }]
18
- - step: &test
19
- name: Construção e teste
20
- caches:
21
- - node
22
- script:
23
- - npm i ame-app-tools -g
24
- - echo $USER_AME_CONF > ~/.ame.conf.js
25
- - yarn && yarn test-ame
26
- - step: &syncGithub
27
- name: Sincronizando Github
28
- script:
29
- - git fetch --unshallow || true # Ignorar erros, por exemplo em casos em que a branch nao exista
30
- - git remote add github git@github.com:AmeDigital/$BITBUCKET_REPO_SLUG.git
31
- - git pull github $BITBUCKET_BRANCH || true # Ignorar erros, por exemplo em casos em que a branch nao exista
32
- - git push github $BITBUCKET_BRANCH:$BITBUCKET_BRANCH
33
- - git push origin $BITBUCKET_BRANCH:$BITBUCKET_BRANCH
34
- - step: &npmPublish
35
- name: Publicação no NPM
36
- caches:
37
- - node
38
- script:
39
- - yarn
40
- - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
41
- - node publisher.js
42
-
43
- branches:
44
- "**":
45
- - parallel:
46
- - step: *test
47
- - step: *runDitto
48
-
49
- # A logica do publisher.js so permitira publicar alphas e betas nas feature branches
50
- - step: *npmPublish
51
- master:
52
- - step: *test
53
- - step: *npmPublish
54
- - step:
55
- name: Documentação
56
- caches:
57
- - node
58
- - pip
59
- script:
60
- - cd docsify
61
- - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
62
- - unzip -qq awscliv2.zip
63
- - ./aws/install
64
- - aws s3 --region "us-east-1" sync . s3://ame-app-tools-documentation --cache-control "public, max-age=0" --delete --acl public-read