0.15.31 • Published 4 years ago

@liveaxle/tooling v0.15.31

Weekly downloads
7
License
ISC
Repository
bitbucket
Last release
4 years ago

README

Internal Repository for reusable application tooling.

Reference

Media Fly

namespace: mf

Methods -

Authenticate:

Gets a Media Fly access token

API:

mf.authenticate(Object: {username: <username>, password: <password>});

Returns Promise that resolves the Media Fly auth response:

CLI:

No CLI implementation due to request output. Maybe later.


Build:

Creates an interactive build.

API:

mf.build(String: name, {
  input: String path,
  output: String: path
 });

Returns a Promise instance.

CLI:

./node_modules/.bin/@liveaxle/tooling mf.build --name=<name> -i= |--input=<path> -o|--output=<path>


Deploy:

Uploads content to Media Fly

API:

mf.deploy(String: path to local contents, {
  destination: String: mediafly folder id,
  credentials: String: <username>:<password>, // please use environment vars and git-ignored files
  aws: String: <awsAccessKeyId>:<awsSecretAccessKey> // can also be supplied in a .env file, same key names as listed.
  project: String: Media Fly Company Code
 })

Returns a Promise instance.

CLI:

./node_modules/.bin/@liveaxle/tooling mf.deploy --source=<local file path> --destination:<mf airship folder id> --product=$MF_PRODUCT --credentials=$MF_USER:$MF_PASSWORD
--aws=$AWS_ID:$AWS_SECRET
--project=$MF_COMPANY_CODE

Release:

Creates a Media Fly release according to the development release flow: https://liveaxle.atlassian.net/wiki/spaces/PROC/pages/31686657/Process+-+Development+and+Release

This function aggregates most of the other tooling functions into a flow to abide by the above linked process. As such it requires quite a bit of configuration:

CLI:

./node_modules/.bin/@liveaxle/tooling mf.release \
--credentials=<mf username>:<mf:password>
--build.input=<input for build source above> --build.output<output on disk for build artifact>
--aws.credentials=<awsAccessKeyId>:<awsSecretAccessKey> --aws.bucket=<bucketname> --aws.data=<data to upload>
--cnfl.credentials=<cf email>:<cf password> --source=<space name>:<page id> --copy=<space name>:<parent page id>
--bb.credentials=<bb email>:<bb password> --bb.source=owner/repo/branch --bb.remote=owner/repo/branch

Flow: 1. Creates an interactive Build 2. Deploys build to specificed folder 3. Creates confluence test plan 4. Creates PR with content from previous steps.

AWS

namespace: aws

S3 - namespace: aws.s3

Upload:

Uploads an item to s3

API:

aws.s3.upload(String:<name of file/s3 path from point of bucket>, Buffer:<data>, Object:<config>)

Returns a Promise instance

CLI:

./node_modules/.bin/@liveaxle/tooling aws.s3.upload --name=<s3 object name> --credentials=<awsAccessKeyId:awsSecretAccessKey> --data=<Buffer/Binary Octet Stream>

Delete:

Deletes an item from s3

API:

aws.s3.delete(String:<name of s3 Object>, Object:<configuration>)

Returns a Promise object.

CLI:

./node_modules/.bin/@liveaxle/tooling aws.s3.delete

--name=<s3 object name>

--credentials=<awsAccessKeyId:awsSecretAccessKey>


Bit Bucket

namespace: bb

Pull Requests - namespace: bb.pr

Create:

API:

bb.pr.create(config={
  source: String<source repository> // expressed as owner/repo/branch - will default to CWD git stats if not defined.
  remote: String<source repository> // expressed as owner/repo/branch - will default to CWD git stats if not defined.
  title: String<name of the PR> default to local branch
  description: String<description of pr>. defaults to looping through each commit
  credentials: Object: {username: <email>, password: <password>}
  reviewers: [{username: String:<bb username>}] //  defaults to LA team
})

CLI:

./node_modules/.bin/@liveaxle/tooling bb.pr.create
  --credentials=email:password
  --source=String:<bibucket repo path> owner/repo/branch - will default to cwd branch
  --remote=String:<bitbucket repo path> owner/repo/branch - will default to master
  --title=String:<title of the PR> - default to cwd branch name
  --description=String:<body for the PR>

Confluence

namespace: cnfl

Pages - namespace: cnfl.pages

Get: Gets a page from Confluence

API:

confl.content.get(String:id, Object:{
  credentials: {username: <email>, password: <password>}, // required
  space: String:<space> // Space containing the requesting
})

CLI:

./node_modules/.bin/@liveaxle/tooling cnfl.content.get --id=page/content id --credentials=username:email --space=title of space

Create: Create a page in Confluence

API:

confl.content.create(title, Object:{
  credentials: {username: <email>, password: <password>}, // required
  space: String:<space> // Space containing the requesting,
  status: String:<current, trashed, historical, draft> // defaults to current
  parent: String:<id of the parent>
  body: String:<page body> // wiki markup of page
})

CLI:

./node_modules/.bin/@liveaxle/tooling cnfl.content.create --title=<page title> --credentials=username:email --space=title of space --body=<page body> --status=<page publish status> --parent=<parent id>
0.15.31

4 years ago

0.15.30

5 years ago

0.15.29

5 years ago

0.15.28

5 years ago

0.15.27

5 years ago

0.15.26

5 years ago

0.15.25

5 years ago

0.15.24

5 years ago

0.15.23

5 years ago

0.15.22

5 years ago

0.15.21

5 years ago

0.15.20

5 years ago

0.15.19

5 years ago

0.15.18

5 years ago

0.15.17

5 years ago

0.15.16

5 years ago

0.15.15

5 years ago

0.15.14

5 years ago

0.15.13

5 years ago

0.15.12

5 years ago

0.15.11

5 years ago

0.15.10

5 years ago

0.15.9

5 years ago

0.15.8

5 years ago

0.15.7

5 years ago

0.15.6

5 years ago

0.15.5

5 years ago

0.15.4

5 years ago

0.15.3

5 years ago

0.15.2

5 years ago

0.15.1

5 years ago

0.15.0

5 years ago

0.14.10

5 years ago

0.14.9

5 years ago

0.14.8

5 years ago

0.14.7

5 years ago

0.14.6

5 years ago

0.14.5

5 years ago

0.14.4

5 years ago

0.14.3

5 years ago

0.14.2

5 years ago

0.14.1

5 years ago

0.14.0

5 years ago

0.13.4

6 years ago

0.13.3

6 years ago

0.13.2

6 years ago

0.13.1

6 years ago

0.13.0

6 years ago

0.12.2

6 years ago

0.12.1

6 years ago

0.12.0

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.7

6 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago