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

@xlayers/version-stamp

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xlayers/version-stamp

Welcome to xLayers version-stamp

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

Welcome to xLayers version-stamp


What is xLayers version-stamp?

With xLayers version-stamp we've started a new initiative of providing a community-driven way of version stamping that will help on a daily base for everybody! The xLayers projects are driven by community contributions. Please send us your Pull Requests and feedback!

Quick start

  1. Add @xlayers/version-stamp to your project

    ng add @xlayers/version-stamp
    
  2. The package will make some small changes to the angular.json

  3. Add the following snippet (only the version property) to your environment files.

export const environment = {
  production: false,
  version: '_BUILD_HASH_',
};
  1. Use the version that the packages has provided in your environment properties.
 import { environment } from '../environment'
 ```
```ts
 @Component({
    selector: 'xlayers-builders-root',
 })
 export class AppComponent {
     version = environment.version;
 }
 ```
5. Now you can stamp your build

```sh
ng run <your-app>:stamp

Usage

You can adjust some options to your needs. The available options are:

  • --version - You can put in here your own version.

Example:

ng run <your-app>:stamp --version="1.0.0"
  • --files - You can put in here the list of file patterns containing _BUILD_HASH_

Example:

ng run <your-app>:stamp --files=*.js,*.json

You can also set the configuration in angular.json

  "stamp": {
    "builder": "@xlayers/version-stamp:stamp",
    "options": {
      "outputPath": "dist/packages/demo",
      "files": ["*.js", "*.json"]
    }
  }

Keywords

FAQs

Package last updated on 15 Feb 2021

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