npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

veezard

v0.0.4

Published

TECHB fork from veeva. Veeva CLM Generator & Workflow for building iRep Presentations.

Downloads

51

Readme

Veezard

This is a fork of veeva

This npm package was developed to centralize core functionality and worklfow processes for building Veeva iRep CLM Presentations.

If you're developing and managing several client Veeva CLM projects, then you know it's cumbersome to introduce new functionality (outside of content) when your code-base is inconsistent across multiple repositories.

:link: Veeva CLM Example

Features

  • Define Veeva CLM presentations in one central configuration.yml file
  • Template and partial system using Assemble.io
  • SASS compilation
  • Relative link conversion to veeva: protocol links
  • Automatic screen shot, thumbnail, and zip file generation
  • iRep control file generator based on configuration.yml file
  • Vault Multichannel .CSV generator based on configuration.yml file
  • Development Mode: - Watch, rebuild, and reload Key Messages locally in your web browser

In This Documentation

  1. Getting Started
  2. File Structure
  3. Working with the Source Files
  4. Options & Settings
  5. Gulp Tasks & Workflow
  6. Troubleshooting & FAQ

Getting Started

Dependencies

Install the following prerequisites on your development machine.

Quick Start

$ npm install veezard --save

Setup

Once the npm install has completed, the following file structure below will need to be placed into your project root directory. For a complete working example, please reference Veezard CLM Example

File Structure

Add your files to the appropriate app sub directories. Gulp will process and compile them into build.

Notes:

  • Key Message naming convention is set as the following: product name-Key Message Name
root/
|—— app/
|   |—— assets/
|   |   |—— scss/
|   |   |—— js/
|   |—— templates/
|   |   |—— includes
|   |   |—— layouts
|   |   |—— pages
|   |   |   |—— globals
|   |   |   |   |—— fonts
|   |   |   |   |—— images
|   |   |   |   |—— isi.hbs
|   |   |   |   |—— terms.hbs
|   |   |   |—— veeva-home
|   |   |   |   |—— images
|   |   |   |   |—— veeva-home.hbs
|   |   |   |—— veeva-overview
|   |   |   |   |—— images
|   |   |   |   |—— veeva-overview.hbs
|   |   |   |—— veeva-resources
|   |   |   |   |—— images
|   |   |   |   |—— veeva-resources.hbs
|   |   |   |—— veeva-sitemap
|   |   |   |   |—— images
|   |   |   |   |—— js
|   |   |   |   |—— veeva-sitemap.hbs
|
|
|—— configuration.yml
|—— gulfile.js
|—— package.json

Working with the Source Files

Sass

Sass files are located in app > assets > scss. Gulp watches and generates minified and unminified CSS files.

JavaScript

JavaScript files are located in the app > assets > js directory.

Assemble.io Templates

Template files are located in the app > templates.

Options and Settings

Configuration File

View full configuration.yml example

Inside configuration.yml, add Key Messages under the clm node.

clm:
  product:
  name: 'Product-Name'
  suffix: '-'
 primary:
  name: 'CLM-Presentation-ID'
  key_messages:
  - key_message: 'home'
    description: 'Home'
    display_order: '0'
    slides:
    - slide: 'home'
      id: '0'
  - key_message: 'overview'
    description: 'Veeva Test Overview'
    display_order: '1'
    slides:
    - slide: 'Veeva Test Overview'
      id: '2-0'
  - key_message: 'sitemap'
    description: 'Sitemap'
    display_order: '2'
    slides:
    - slide: 'Sitemap'
      id: '0-1'

Changing the Directory Structure

Inside configuration.yml you'll see a variable named paths. Adjust the paths to suit your workflow.

"paths": {
    "src": "app",
    "dist": "build",
    "deploy": "deploy",
    "tmp": "build/.tmp",
    "pages": "app/templates/pages",
    "layouts": "app/templates/layouts"
}

Gulp Tasks and Workflow

For a quick reference in your terminal:

$ gulp --help

Usage: gulp <task> [options]

TASKS
_________________________________________________________________________
$ gulp                      Default task that kicks off development mode
$ gulp build                Build task
$ gulp stage                Stage task
$ gulp veeva-deploy         Deploy task
$ gulp veeva-vault-stage    Generates a Veeva Vault Multichannel Loader .CSV file

OPTIONS
_________________________________________________________________________
    -a --all-key-messages  Include hidden Key Messages when staging and deploying
    -c --config            Show merged configuration
    -d --dry-run           Do not touch or write anything, but show the commands and interactivity
    -e --debug             Output exceptions
    -h --help              Print this help
    -k --key-message       Build, Stage, and Deploy single Key Message
    -v --version           Print version number
    -V --verbose           Verbose output
$ gulp

Runs the following workflow:

  • Assembles template files
  • Compiles Sass files
  • Copies project JS files
  • Copies the Veeva module JS dependencies
  • Copies images
  • Starts browserSync, watches for changes, and reloads browser when file changes are triggered
$ gulp build

Runs the following workflow:

  • Assembles template files
  • Compiles Sass files and minifies CSS
  • Uglfies project JS files
  • Copies the Veeva module JS dependencies
  • Copies images
  • Generates Veeva required thumbnails per Key Message
  • Enables deploy mode
    • Converts relative links to Veeva protocol links (Navigation, Click Stream events, etc.)
$ gulp stage

Runs the following workflow:

  • Runs the gulp build process
  • Generates individual Key Message zip files and places them into the deploy directory
  • Creates individual Key Message ctl files based on configuration.yml file details and places them into the deploy directory
$ gulp veeva-deploy

Note: this process uses FTP information stored in the configuration.yml file Runs the following workflow:

  • Uploads all .zip files sitting in the deploy directory
  • Once all of the .zip files have been uploaded, all .ctl files sitting in the deploy directory are then uploaded
$ gulp veeva-vault-stage

Runs the following workflow:

  • Generates a Veeva Vault Multichannel Loader .csv file based on configuration.yml details

Notes

  • Generated thumbnails (screen shots) only process .html files, so static Key Messages (i.e., pdf) will still need to have Veeva required thumbnails generated

Troubleshooting

If you're having issues with the Veeva Node Package, submit a submit a GitHub Issue.

  • Ensure you're running the correct node and npm versions specified in the package.json file
  • Make sure your configuration.yml file exists and is well formatted