Package Exports
- gitlab-ci-lint
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitlab-ci-lint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gitlab-ci-lint
Gitlab-ci cli to lint .gitlab-ci.yml files
Usage
Install
npm install -g gitlab-ci-lintCLI
Usage: gitlab-ci-lint [options] <file>
Options:
-h, --help output usage information
-V, --version output the version number
-u, --url [URL] Use alternative Gitlab URL
-t, --token [TOKEN] Provide Gitlab personal access token, when it's neededexamples
.gitlab-ci.ymlis in the current directory
gitlab-ci-lint- Alternative file
gitlab-ci-lint <filename>- Alternative Gitlab URL
gitlab-ci-lint --url https://git.my.corp- With Gitlab personal access token
gitlab-ci-lint --token token-string-here123API
- with
filenameparam
const gitlabCILint = require('gitlab-ci-lint')
gitlabCILint.lintFile('.gitlab-ci.yml')
.then((result) => console.log(result))- with
filename,baseURLandtokenparams, accordingly
const gitlabCILint = require('gitlab-ci-lint')
gitlabCILint.lintFile('.gitlab-ci.yml', 'https://git.my.corp', 'token-string-here123')
.then((result) => console.log(result))