New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pl2html

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pl2html

Utility functions for Patternlab exports and testing

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Pattern Lab -> HTML

Template and page packaging for handoff to downstream development. This script is designed for use in continuous integration.

In .gitlab-ci.yml:

pl2html:
  stage: deploy
  script:
    - pl2html --patterndir pl/public/patterns --outdir html
    - cp -R pl/public/images pl/public/css pl/public/js html
  artifacts:
    paths:
      - html
    expire_in: 1 week

The resulting html artifact will contain any templates or pages as complete HTML, with image, styling, and script assets copied over.

Requirements

  • npm install -g pl2html or use Docker image newcity/builder:latest
  • For markup cleanup to work, make sure any Patternlab scripts or styling is wrapped in comments containing Begin Pattern Lab and End Pattern Lab. Specifically:

meta/head.twig:

<!-- Begin Pattern Lab (Required for Pattern Lab to run properly) -->
{{ patternLabHead|raw }}
<!-- End Pattern Lab -->

meta/foot.twig:

<!-- Begin Pattern Lab -->
{{ patternLabFoot|raw }}
<!-- End Pattern Lab -->

FAQs

Package last updated on 08 Feb 2023

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