Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dvabuzyarov/product-version

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dvabuzyarov/product-version

Updates production version in the environment files

  • 1.0.50
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-94.23%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status NPM version npm downloads Dependency Status GitHub

This angular schematic is designed to be a build pipeline action that updates product version. It looks for version property in environment.ts file.


import { IEnvironment } from "./environments";

export const environment: IEnvironment = {
  production: false,
  // will update this property
  version: "0.0.local"
};

How to use:


schematics @dvabuzyarov/product-version:product-version --productVersion="$(Build.BuildNumber)"

The schematic support other input parameters according to this schema:

{
  "$schema": "http://json-schema.org/schema",
  "id": "@dvabuzyarov/product-version",
  "type": "object",
  "properties": {
    "productVersion": {
      "type": "string",
      "description": "The product version",
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "propertyName": {
      "type": "string",
      "description": "The property name of the environment class",
      "$default": {
        "$source": "propertyName"
      }
    },
    "project": {
      "type": "string",
      "description": "The name of the project.",
      "$default": {
        "$source": "projectName"
      }
    },
    "path": {
      "type": "string",
      "format": "path",
      "description": "The path to the environment folder.",
      "visible": false
    }
  },
  "required": [
    "productVersion"
  ]
}

Keywords

FAQs

Package last updated on 18 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc