Socket
Book a DemoInstallSign in
Socket

@jamieomaguire/pie-button

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jamieomaguire/pie-button

This is a total work in progress.

1.6.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

PIE Button

This is a total work in progress.

Currently the design is:

  • define the WC in the pie-button.ts file

  • write any styles in style.scss

  • there is an import to a style.ts file inside the generated folder. This is deliberately empty and is populated when you run the build script yarn build.

  • This script will transform the scss into a css file, then transform that into a javascript module that exports the compiled css as a string.

  • This can then be imported by the web component using Lit's css function.

  • we then use Rollup to bundle the web component into a ready to use js module

Again, total work in progress and probably a super gross flow for a real project but it demonstrates the following:

  • We can build web components and reuse our SCSS library for styling
  • We can style our web components using SCSS
  • We can build and publish then using these styles and they will be encapsulated to the web component

FAQs

Package last updated on 13 Dec 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.