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

@pro-vision/pv-stylemark

Package Overview
Dependencies
Maintainers
5
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pro-vision/pv-stylemark

CLI for zero configuration stylemark-lsg-toolchain setup

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by1.12%
Maintainers
5
Weekly downloads
 
Created
Source

pv-stylemark

CLI for zero configuration stylemark-lsg-toolchain setup.

Installation

npm i @pro-vision/pv-stylemark

Usage

Command Line Interface

Installing this package gives you the CLI pv-stylemark. It can be used with the parameters dev and prod.

dev: Assembles all found hbs files and generates clickdummy (components/pages) and Stylemark - Living Styleguide. Starts watches all involved files.

prod: Assembles all found hbs files and generates clickdummy (components/pages) and Stylemark - Living Styleguide and writes all to your target folder.

Configuration

Basic Configuration

Basic Configuration can be done in a pv.config.js file in the npm project root-folder. Possible configuration values are:

keytypedefaultusage
destPathstring'target'defines where to put bundled files
cdTemplatesHomestring'src/templates/'defines homefolder of clickdummy-templates (glob: [cdTemplatesHome]**/*.hbs)
lsgTemplatesHomestring'src/styleguide/templates/'defines homefolder of lsg-templates (glob: [lsgTemplatesHome]**/*.hbs)
componentsHomestring'src/components/'defines homefolder of components (glob: [componentsHome]**/*.hbs)
cdPagesHomestring'src/pages/'defines homefolder of clickdummy-pages (glob: [cdPagesHome]**/*.hbs)
hbsHelperHomestring'helpers/handlebarsHelper/'defines homefolder of additional handlebars-helpers (glob: [hbsHelperHome]*.js)
lsgAssetsHomestring'src/assets/'defines homefolder of dummy assets used in lsg an clickdummy (glob: [lsgAssetsHome]**/*.js)
lsgIndexstring'src/styleguide/index.html'defines path to styleguide landing page html file
lsgConfigPathstring'config/config.stylemark.yaml'defines path to lsg config file (which is required)
Example:
// pv.config.js
module.exports = {
  destPath: 'dist',
  cdTemplatesHome: 'src/clickdummy/templates/',
  lsgTemplatesHome: 'src/lsg/templates/',
  cdPagesHome: 'src/clickdummy/pages/',
  hbsHelperHome: 'helper/handlebarsHelper/',
  lsgAssetsHome: 'src/lsg/assets/',
  lsgConfigPath: 'config.stylemark.yaml',
};

FAQs

Package last updated on 02 Sep 2019

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