Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@pro-vision/pv-stylemark
Advanced tools
CLI for zero configuration stylemark-lsg-toolchain setup.
npm i @pro-vision/pv-stylemark -D
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.
pv-stylemark also provides a Webpack-Plugin, which can also be used to render the LSG.
// webpack.config.module.js
const { PvStylemarkPlugin } = require("@pro-vision/pv-stylemark");
module.exports = {
//...
plugins: [
new PvStylemarkPlugin()
]
//...
};
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:
key | type | default | usage |
---|---|---|---|
destPath | string | 'target' | defines where to put bundled files |
cdTemplatesSrc | string | 'src/templates/' | defines homefolder of clickdummy-templates (glob: [cdTemplatesSrc]**/*.hbs ) |
lsgTemplatesSrc | string | 'src/styleguide/templates/' | defines homefolder of lsg-templates (glob: [lsgTemplatesSrc]**/*.hbs ) |
componentsSrc | string | 'src/components/' | defines homefolder of components (glob: [componentsSrc]**/*.hbs ) |
cdPagesSrc | string | 'src/pages/' | defines homefolder of clickdummy-pages (glob: [cdPagesSrc]**/*.hbs ) |
hbsHelperSrc | string | 'helpers/handlebarsHelper/' | defines homefolder of additional handlebars-helpers (glob: [hbsHelperSrc]*.js ) |
lsgAssetsSrc | string | 'src/assets/' | defines homefolder of dummy assets used in lsg and clickdummy (glob: [lsgAssetsSrc]**/*.js ) |
lsgIndex | string | 'src/styleguide/index.html' | defines path to styleguide landing page html file |
lsgConfigPath | string | 'config/config.stylemark.yaml' | defines path to lsg config file (which is required) |
// pv.config.js
module.exports = {
destPath: 'dist',
cdTemplatesSrc: 'src/clickdummy/templates/',
lsgTemplatesSrc: 'src/lsg/templates/',
cdPagesSrc: 'src/clickdummy/pages/',
hbsHelperSrc: 'helper/handlebarsHelper/',
lsgAssetsSrc: 'src/lsg/assets/',
lsgConfigPath: 'config.stylemark.yaml',
};
FAQs
CLI for zero configuration stylemark-lsg-toolchain setup
We found that @pro-vision/pv-stylemark demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.