@urvpatel/tdvsrenderer

1.0.0 • Public • Published

TDVS Renderer

Abstract

TDVS Renderer is takes a template and a context to compile an HTML page or snippet. It uses the Handlebars template engine internally. Besides the rendering it also aplies some buisness logic, e.g. for validation, and raises appropriate errors.

Requirements

  • Node 8 LTS
  • Gulp

Installation and Setup

Node

Installation:

To configure NPM proxy registry on TSS Nexus add this line to ~.npmrc

registry=http://nexus.detss.corpintra.net/repository/npm-registry

Add user and scope for TDVS registry:

npm adduser --registry http://nexus.detss.corpintra.net/repository/tdvs/ --scope=@org-tss

http://nexus.detss.corpintra.net/repository/tdvs/

Developing

Install dependencies

npm install

Build module:

gulp build

Publishing

Publish in the TSS NPM Registry:

  1. npm login --registry http://nexus.detss.corpintra.net/repository/tdvs/ --scope @org-tss
  2. npm publish --access=public

Publish in the Cinteo NPM registry:

  1. npm login --registry https://source.diconium.com/npm --scope @org-tss
  2. npm publish --access=public

Installing

Given that you already added a user for the scope @org-tss (see above), just run:

npm install @org-tss/tdvsrenderer --save

Gulp

Gulp task to assemble all sources into the dist subfolder:

gulp build

How to update Node version

  1. Install the desired Node version in Jenkins (Jenkins verwalten --> Konfiguration der Hilfsprogramme)
  2. Update Jenkinsfile: def nodeFolder = tool('NodeJS <version>')

Other Resources

Intern

Extern

License

See LICENSE

Readme

Keywords

Package Sidebar

Install

npm i @urvpatel/tdvsrenderer

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

4.6 MB

Total Files

17

Last publish

Collaborators

  • urvpatel