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:
- Install Node Version Manager (nvm): https://github.com/creationix/nvm
- Run command
nvm use
in this directory
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:
npm login --registry http://nexus.detss.corpintra.net/repository/tdvs/ --scope @org-tss
npm publish --access=public
Publish in the Cinteo NPM registry:
npm login --registry https://source.diconium.com/npm --scope @org-tss
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
- Install the desired Node version in Jenkins (Jenkins verwalten --> Konfiguration der Hilfsprogramme)
- Update Jenkinsfile:
def nodeFolder = tool('NodeJS <version>')
Other Resources
Intern
Extern
License
See LICENSE