0.26.51 • Published 9 months ago

@digital-dood/spacer-management v0.26.51

Weekly downloads
42
License
MIT
Repository
bitbucket
Last release
9 months ago

Installation

# Run command to install the spacer-management cli globally
yarn global add @digital-dood/spacer-management

Development

# After development please cheange package.json version and publish new tag to npm packages following command using digital-dood credentials
yarn publish --tag

Commands

# Install command:
# 1. download project archive from the priovided URL parameter
# 2. extract archive in the provided location PATH
spacer-management install URL NAME PATH

example: spacer-management install http://mysite.com/project-v1.zip project1 /path
# validate command:
# This command will check the necessary files before the build command
spacer-management validate PROJECT_PATH

example: spacer-management validate project1/repo/administration-app
# build command:
# This command will build the project with yarn scripts
spacer-management build payload

example: spacer-management build payload

payload ex:
 {
  "projectVersionPath":"project1/repo/administration-app",
  "userId":"1",
  "applicationId": "1"
  "token":"TOKEN",
  "xsrf":"XSRF",
  "env":{
    "DEVLINK":"LINK",
    "testLink":"LINK"
  }
 }
# clone project command:
# This command will clone the project
example: spacer-management clone payload

payload ex:
{
  "url": "git@bitbucket.org:digital-dood/administration-app.git",
  "name": "admin",
  "path": "projects",
  "description": "front-end app",
  "type": "0",
  "token":"TOKEN",
  "xsrf":"XSRF"
}
# Activate command
# 1. get the nginx TEMPLATE ('node' or 'react' are available)
# 2. host file for nginx will be created based on the provided HOSTNAME
# 3. update nginx host to point for your application and start the apllication
spacer-management activate TEMPLATE PATH HOSTNAME

example: spacer-management activate node project1 project1.com
# validate command:
# This command will generate ssh
spacer-management generate-ssh payload

example: spacer-management generate-ssh

payload ex:
{
  "token": TOKEN,
  "xsrf": XSRF
}
# activate version command:
# This command will activate a version of  the project
spacer-management activate-version payload

example: spacer-management activate-version payload

payload ex:
{
  "name": "NAME FROM CONFIG",
  "type": "react",
  "host": "${NAME}.spacer-dev.dood-dev.com",
  "versionId": "VERSIONID",
  "token": "TOKEN",
  "xsrf": "XSRF",
  "version": "VERSION FROM CONFIG"
}
# Delete application command:
# This command will delete the application with all the belongings
spacer-management delete payload

payload ex:
{
  "type":"react",
  "name":"NAME",
  "host":"HOST",
  "token":"TOKEN",
  "xsrf":"XSRF",
  "id":"APPID",
  "fileId":"[{1},{2}]"
}
# NOTE! for step 3 with 'node' application template this will start a new PM2 process on an available random port
# Delete application version command:
# This command will delete the application version only if it is not active with all the belongings
spacer-management delete-version payload

payload ex:
{
  "name":"NAME",
  "host":"HOST",
  "token":"TOKEN",
  "xsrf":"XSRF",
  "id":"versionId",
  "version":"V1"
}
# NOTE! for step 3 with 'node' application template this will start a new PM2 process on an available random port
0.26.51

9 months ago

0.26.50

9 months ago

0.26.49

10 months ago

0.26.48

1 year ago

0.26.44

1 year ago

0.26.45

1 year ago

0.26.46

1 year ago

0.26.47

1 year ago

0.26.43

1 year ago

0.26.42

1 year ago

0.26.40

2 years ago

0.26.41

2 years ago

0.26.38

2 years ago

0.26.39

2 years ago

0.26.37

2 years ago

0.26.34

2 years ago

0.26.35

2 years ago

0.26.36

2 years ago

0.26.33

2 years ago

0.26.30

2 years ago

0.26.31

2 years ago

0.26.32

2 years ago

0.26.29

3 years ago

0.26.26

3 years ago

0.26.27

3 years ago

0.26.28

3 years ago

0.26.22

3 years ago

0.26.23

3 years ago

0.26.24

3 years ago

0.26.25

3 years ago

0.26.21

3 years ago

0.26.20

3 years ago

0.26.19

3 years ago

0.26.15

3 years ago

0.26.16

3 years ago

0.26.17

3 years ago

0.26.18

3 years ago

0.26.13

3 years ago

0.26.14

3 years ago

0.26.11

3 years ago

0.26.12

3 years ago

0.26.10

3 years ago

0.26.9

3 years ago

0.26.8

3 years ago

0.26.7

3 years ago

0.26.3

3 years ago

0.26.6

3 years ago

0.26.5

3 years ago

0.26.4

3 years ago

0.26.2

3 years ago

0.26.1

3 years ago

0.26.0

3 years ago

0.25.0

3 years ago

0.24.6

3 years ago

0.24.5

3 years ago

0.24.4

3 years ago

0.24.3

3 years ago

0.24.2

3 years ago

0.24.1

3 years ago

0.24.0

3 years ago

0.23.5

3 years ago

0.23.4

3 years ago

0.23.3

3 years ago

0.23.2

3 years ago

0.23.1

3 years ago

0.23.0

3 years ago

0.22.0

3 years ago

0.21.2

3 years ago

0.21.0

3 years ago

0.20.4

3 years ago

0.21.1

3 years ago

0.20.3

3 years ago

0.20.2

3 years ago

0.20.1

3 years ago

0.20.0

3 years ago

0.19.0

3 years ago

0.17.2

3 years ago

0.11.0

3 years ago

0.12.0

3 years ago

0.13.0

3 years ago

0.14.0

3 years ago

0.13.1

3 years ago

0.15.0

3 years ago

0.13.2

3 years ago

0.16.0

3 years ago

0.13.3

3 years ago

0.17.0

3 years ago

0.13.4

3 years ago

0.18.0

3 years ago

0.17.1

3 years ago

0.13.5

3 years ago

0.10.0

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.9.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago