4.1.0 • Published 1 year ago

@pro-vision/pv-stylemark v4.1.0

Weekly downloads
42
License
ISC
Repository
github
Last release
1 year ago

pv-stylemark

CLI for zero configuration stylemark-lsg-toolchain-setup.

Installation

npm i @pro-vision/pv-stylemark -D

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.

Webpack Plugin

pv-stylemark also provides a Webpack-Plugin, which can also be used to render the LSG.

Example:

// webpack.config.module.js
const { PvStylemarkPlugin } = require("@pro-vision/pv-stylemark");


module.exports = {
  //...
  plugins: [
    new PvStylemarkPlugin()
  ]
  //...
};

Configuration

Basic Configuration

Basic Configuration for both, cli and webpack-plugin, 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
cdTemplatesSrcstring'src/templates/'defines homefolder of clickdummy-templates (glob: [cdTemplatesSrc]**/*.hbs)
componentsSrcstring'src/components/'defines homefolder of components (glob: [componentsSrc]**/*.hbs)
cdPagesSrcstring'src/pages/'defines homefolder of clickdummy-pages (glob: [cdPagesSrc]**/*.hbs)
hbsHelperSrcstring'helpers/handlebarsHelper/'defines homefolder of additional handlebars-helpers (glob: [hbsHelperSrc]*.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',
  cdTemplatesSrc: 'src/clickdummy/templates/',
  cdPagesSrc: 'src/clickdummy/pages/',
  hbsHelperSrc: 'helper/handlebarsHelper/',
  lsgConfigPath: 'config.stylemark.yaml',
};
4.1.0

1 year ago

4.0.5

1 year ago

4.0.4

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

3.0.11

2 years ago

3.0.10

3 years ago

3.0.8

3 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

5 years ago

2.0.7-alpha.8

5 years ago

2.0.7-alpha.28

5 years ago

2.0.7-alpha.23

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago