Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@exmg/exmg-cli

Package Overview
Dependencies
Maintainers
18
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exmg/exmg-cli

CLI - scripts used to process and build polymer / lit-element packages

latest
Source
npmnpm
Version
8.1.17
Version published
Weekly downloads
2
-88.89%
Maintainers
18
Weekly downloads
 
Created
Source

exmg-cli

  • sass-render

sass-render

Main aim is to process and generate files *.css and *.scss into *.ts

Command options sass-render

aliasoptiontypedescription
-s--sourcestringTemplate file to render sass into.
-w--watchbooleanStarts the renderer in watch mode, looks at the from the root of the project
-h--helpbooleanPrint this message.

Examples sass-render

Process single file

exmg-cli -s ./test.scss

on the output file test-css.ts looks:

import {css} from 'lit-element';

export const style = css`a{color:red}`;
export default style;

Finally we can import to LitElement

import {LitElement} from 'lit-element';
import style from './test-css.js';

class MyElement extends LitElement {
  static styles = [style];
}

Process folder

exmg-cli -s ./styles/*.scss

Run in watch mode

exmg-cli -w

Keywords

web-components

FAQs

Package last updated on 15 Dec 2021

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