0.26.51 • Published 2 years ago

@digital-dood/spacer-management v0.26.51

Weekly downloads
42
License
MIT
Repository
bitbucket
Last release
2 years 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

2 years ago

0.26.50

2 years ago

0.26.49

2 years ago

0.26.48

2 years ago

0.26.44

2 years ago

0.26.45

2 years ago

0.26.46

2 years ago

0.26.47

2 years ago

0.26.43

2 years ago

0.26.42

3 years ago

0.26.40

3 years ago

0.26.41

3 years ago

0.26.38

3 years ago

0.26.39

3 years ago

0.26.37

3 years ago

0.26.34

3 years ago

0.26.35

3 years ago

0.26.36

3 years ago

0.26.33

3 years ago

0.26.30

3 years ago

0.26.31

3 years ago

0.26.32

3 years ago

0.26.29

4 years ago

0.26.26

4 years ago

0.26.27

4 years ago

0.26.28

4 years ago

0.26.22

4 years ago

0.26.23

4 years ago

0.26.24

4 years ago

0.26.25

4 years ago

0.26.21

4 years ago

0.26.20

4 years ago

0.26.19

4 years ago

0.26.15

4 years ago

0.26.16

4 years ago

0.26.17

4 years ago

0.26.18

4 years ago

0.26.13

4 years ago

0.26.14

4 years ago

0.26.11

4 years ago

0.26.12

4 years ago

0.26.10

4 years ago

0.26.9

4 years ago

0.26.8

4 years ago

0.26.7

4 years ago

0.26.3

4 years ago

0.26.6

4 years ago

0.26.5

4 years ago

0.26.4

4 years ago

0.26.2

4 years ago

0.26.1

4 years ago

0.26.0

4 years ago

0.25.0

4 years ago

0.24.6

4 years ago

0.24.5

4 years ago

0.24.4

4 years ago

0.24.3

4 years ago

0.24.2

4 years ago

0.24.1

4 years ago

0.24.0

4 years ago

0.23.5

4 years ago

0.23.4

4 years ago

0.23.3

4 years ago

0.23.2

4 years ago

0.23.1

4 years ago

0.23.0

4 years ago

0.22.0

4 years ago

0.21.2

4 years ago

0.21.0

4 years ago

0.20.4

4 years ago

0.21.1

4 years ago

0.20.3

4 years ago

0.20.2

4 years ago

0.20.1

4 years ago

0.20.0

4 years ago

0.19.0

4 years ago

0.17.2

4 years ago

0.11.0

4 years ago

0.12.0

4 years ago

0.13.0

4 years ago

0.14.0

4 years ago

0.13.1

4 years ago

0.15.0

4 years ago

0.13.2

4 years ago

0.16.0

4 years ago

0.13.3

4 years ago

0.17.0

4 years ago

0.13.4

4 years ago

0.18.0

4 years ago

0.17.1

4 years ago

0.13.5

4 years ago

0.10.0

4 years ago

0.9.6

4 years ago

0.9.5

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.9.1

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago