Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Latest commit

 

History

History
 
 

timestamp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

timestamp

Timestamp builder for Angular build facade.
This builder is an example from the Medium article Angular CLI 6 under the hood — builders demystified.

Usage

  1. In the root of your Angular application:

    npm i -D @angular-builders/timestamp
    
  2. In your angular.json add the following to architect section of the relevant project:

    "timestamp": {
      "builder": "@angular-builders/timestamp:file",
      "options": {}
    },
    
  3. Run: ng run [relevant-project]:timestamp Where [relevant-project] is the project to which you've added the target

Options

  • path - path to the file with timestamp, defaults to ./timestamp
  • format - timestamp date format, defaults to dd/mm/yyyy