@dvabuzyarov/product-version
Advanced tools
Comparing version 1.0.4 to 1.0.5-rc.0
@@ -0,1 +1,5 @@ | ||
## [1.0.5-rc.0](https://github.com/dvabuzyarov/product-version/compare/v1.0.4...v1.0.5-rc.0) (2019-01-11) | ||
<a name="1.0.4"></a> | ||
@@ -2,0 +6,0 @@ ## [1.0.4](https://github.com/dvabuzyarov/product-version/compare/v1.0.3...v1.0.4) (2018-09-11) |
{ | ||
"name": "@dvabuzyarov/product-version", | ||
"version": "1.0.4", | ||
"version": "1.0.5-rc.0", | ||
"description": "Updates production version in the environment files", | ||
@@ -20,12 +20,12 @@ "scripts": { | ||
"dependencies": { | ||
"@angular-devkit/core": "^0.8.1", | ||
"@angular-devkit/schematics": "^0.8.1", | ||
"@angular-devkit/core": "^7.2.1", | ||
"@angular-devkit/schematics": "^7.2.1", | ||
"typescript": "^3.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/jasmine": "^2.6.0", | ||
"@types/node": "^8.10.29", | ||
"jasmine": "^2.8.0", | ||
"conventional-changelog-cli": "^2.0.1" | ||
"@types/jasmine": "^3.3.5", | ||
"@types/node": "^10.12.18", | ||
"jasmine": "^3.3.1", | ||
"conventional-changelog-cli": "^2.0.11" | ||
} | ||
} |
@@ -0,2 +1,68 @@ | ||
[![Build Status](https://travis-ci.org/dvabuzyarov/product-version.svg?branch=master)](https://travis-ci.org/dvabuzyarov/product-version) | ||
[![NPM version](https://img.shields.io/npm/v/@dvabuzyarov/product-version.svg?style=flat-square)](https://www.npmjs.com/package/@dvabuzyarov/product-version) | ||
[![npm downloads](https://img.shields.io/npm/dt/@dvabuzyarov/product-version.svg?style=flat-square)](https://www.npmjs.com/package/@dvabuzyarov/product-version) | ||
[![Dependency Status](https://img.shields.io/david/dvabuzyarov/product-version.svg?style=flat-square)](https://david-dm.org/dvabuzyarov/product-version) | ||
[![License](https://img.shields.io/hexpm/l/plug.svg)](https://www.npmjs.com/package/@dvabuzyarov/product-version) | ||
This angular schematic is designed to be a build pipeline action that updates product version. | ||
It looks for version property in environment.ts file. | ||
```typescript | ||
import { IEnvironment } from "./environments"; | ||
export const environment: IEnvironment = { | ||
production: false, | ||
// will update this property | ||
version: "0.0.local" | ||
}; | ||
``` | ||
How to use: | ||
```bash | ||
schematics @dvabuzyarov/product-version:product-version --productVersion="$(Build.BuildNumber)" | ||
``` | ||
The schematic support other input parameters according to this schema: | ||
```json | ||
{ | ||
"$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" | ||
] | ||
} | ||
``` | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"id": "2payrollUpdateProductVersion", | ||
"id": "@dvabuzyarov/product-version", | ||
"type": "object", | ||
@@ -8,3 +8,3 @@ "properties": { | ||
"type": "string", | ||
"description": "the product version", | ||
"description": "The product version", | ||
"$default": { | ||
@@ -17,3 +17,3 @@ "$source": "argv", | ||
"type": "string", | ||
"description": "the property name of the environment class", | ||
"description": "The property name of the environment class", | ||
"$default": { | ||
@@ -20,0 +20,0 @@ "$source": "propertyName" |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
32319
69
2
+ Added@angular-devkit/core@7.3.10(transitive)
+ Added@angular-devkit/schematics@7.3.10(transitive)
+ Addedajv@6.9.1(transitive)
+ Addedfast-deep-equal@2.0.1(transitive)
+ Addedfast-json-stable-stringify@2.0.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedrxjs@6.3.3(transitive)
+ Addedsource-map@0.7.3(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removed@angular-devkit/core@0.8.9(transitive)
- Removed@angular-devkit/schematics@0.8.9(transitive)
- Removedajv@6.4.0(transitive)
- Removedfast-deep-equal@1.1.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedjson-schema-traverse@0.3.1(transitive)
- Removedrxjs@6.2.2(transitive)
- Removeduri-js@3.0.2(transitive)
Updated@angular-devkit/core@^7.2.1