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.
playground-parser
Advanced tools
The Playground Parser helps generate dynamic component preview pages for Lightning Web Components (LWC) and Aura components. It reads metadata and example files, processes them, and generates HTML, JavaScript, and CSS files for each component example to be displayed in a playground environment.
The generated preview pages include dynamic code previews, allowing developers to view and interact with different component examples. It supports both LWC and Aura model types (with screenshots for previews) and generates the appropriate content for each example.
yarn install
Set the following environment variables before running the setup and start scripts:
IN_PLAYGROUND_DIR
: The folder path of the input folder, defaults to in-playground
.OUT_PLAYGROUND_DIR
: The folder path of the output folder, defaults to out-playground
.model1/namespace1/
component1/
component2/
model2/namespace2/
component1/
component2/
Example:
lwc/
lightning/
button/
button.md
examples/
aura/
lightning/
button/
button.md
examples/
model1/namespace1/
examples/
playground/
example-metadata.json
model2/namespace2/
examples/
playground/
example-metadata.json
Example:
lwc/
lightning/
examples/
playground/
example-metadata.json
aura/
lightning/
examples/
playground/
example-metadata.json
This script reads examples from IN_PLAYGROUND_DIR
and generates the playground pages and example metadata into OUT_PLAYGROUND_DIR
.
yarn parse
During development, you can pass the path to the lightning-design-system
content repository as a variable. This will create the in-playground
directory.
Example:
LIGHTNING_DESIGN_SYSTEM_REPO_PATH='/Users/smopada/Desktop/work/doc-repos/lightning-design-system' yarn parse
Alternatively, if you have extracted the folder from the ui-lightning-components
jar, you can pass its path as a variable. This will also create the in-playground
directory.
Example:
UI_LIGHTNING_COMPONENTS_PATH='../ui-lightning-components-254.7.17' yarn parse
FAQs
Generate Playground Pages
We found that playground-parser 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.