Skip to content
Snippets Groups Projects
kicker.json 2.91 KiB
Newer Older
Pierre Smeyers's avatar
Pierre Smeyers committed
{
  "name": "Angular",
  "description": "Build and test with [Angular](https://angular.io/)",
  "template_path": "templates/gitlab-ci-angular.yml",
  "kind": "build",
  "variables": [
    {
      "name": "NG_CLI_IMAGE",
      "description": "The Docker image used to run Angular-CLI (`ng`)",
      "default": "trion/ng-cli-karma:latest"
    },
    {
      "name": "NPM_CONFIG_REGISTRY",
      "description": "NPM [registry](https://docs.npmjs.com/configuring-your-registry-settings-as-an-npm-enterprise-user)",
      "type": "url",
      "advanced": true
    },
    {
      "name": "NG_WORKSPACE_DIR",
      "description": "Angular workspace directory",
      "default": ".",
      "advanced": true
    },
    {
      "name": "NG_BUILD_ARGS",
      "description": "Angular [ng build](https://angular.io/cli/build) arguments",
      "default": "build --prod",
      "advanced": true
    },
    {
      "name": "NG_TEST_ARGS",
      "description": "Angular [ng test](https://angular.io/cli/test) arguments",
      "default": "test --code-coverage --reporters progress,junit",
      "advanced": true
    },
    {
      "name": "NG_LINT_ARGS",
      "description": "Angular [ng lint](https://angular.io/cli/lint) arguments",
      "default": "lint",
      "advanced": true
    }
  ],
  "features": [
    {
      "id": "publish",
      "name": "Publish",
      "description": "NPM [publish](https://docs.npmjs.com/cli/v6/commands/npm-publish) your angular project",
      "enable_with": "NG_PUBLISH_ENABLED",
      "variables": [
        {
          "name": "NG_PUBLISH_ARGS",
          "description": "npm [publish](https://docs.npmjs.com/cli/v6/commands/npm-publish) arguments",
          "default": "--verbose",
          "advanced": true
        },
        {
          "name": "NG_PUBLISH_PROJECTS",
          "description": "Space separated list of projects to publish. If no project is specified, the value of _angular.json_ `defaultProject` property is used",
          "advanced": true
        },
        {
          "name": "NPM_PUBLISH_REGISTRY",
          "description": "NPM registry to publish to. If none is specified, uses GitLab project npm packages registry",
          "secret": true
        },
        {
          "name": "NPM_PUBLISH_TOKEN",
          "description": "NPM publication registry authentication token",
          "secret": true
        }
      ]
    },
    {
      "id": "e2e-test",
      "name": "e2e-test",
      "description": "Run your [e2e tests](https://angular.io/cli/e2e) on your angular project",
      "enable_with": "NG_E2E_ENABLED",
      "variables": [
        {
          "name": "NG_E2E_ARGS",
          "description": "ng [e2e](https://angular.io/cli/e2e) arguments",
          "default": "e2e",
          "advanced": true
        },
        {
          "name": "NG_E2E_REPORT_PATH",
          "description": "path where e2e reports are stored",
          "default": "reports/e2e",
          "advanced": true
        }
      ]
    }
  ]
}