Skip to content
 
 

Repository files navigation

explorer-ui-server

Quality Gate Status

Provide simple HTTPS server to server Zowe Desktop Explorer plugins.

Start Dev Server

npm start

Then visit https://localhost:8080 to access the test server. The default config file is configs/config-default.json.

CLI Options

$ node src/index.js -h
Usage: explorer-ui-server [options]

Options:
  --version      Show version number                                   [boolean]
  -s, --service  service-for path                                  [default: ""]
  -b, --path     base path uri
  -d, --dir      base dir                         [required] [default: "../app"]
  -p, --port     listening port
  -k, --key      server key                                        [default: ""]
  -c, --cert     server cert                                       [default: ""]
  -x, --pfx      server pfx                                        [default: ""]
  -w, --pass     server pfx passphrase                             [default: ""]
  -f, --csp      csp whitelist ancestors frames                       [required]
  -v, --verbose  show request logs                    [boolean] [default: false]
  -h, --help     Show help                                             [boolean]

Run Tests

npm test

Test reports are saved in reports folder, including JUnit result, Mochawesome report, Istanbul Coverage report, Cobertura report etc.

Run SonarQube Code Analysis

Install SonarQube Scanner.

If you are using Mac, try install with HomeBrew sonar-scanner formula, then update the configuration of SonarQube server at /usr/local/Cellar/sonar-scanner/<version>/libexec/conf/sonar-scanner.properties.

Example scanner configurations:

sonar.host.url=https://jayne.zowe.org:9000
sonar.login=<hash>

Then you can run sonar-scanner to start code analysis.

Build pipeline has embedded the SonarQube code analysis stage.

About

Simple HTTPS web server, used by explorer UI plugins

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages