This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@exmg/exmg-cli

8.1.17 • Public • Published

exmg-cli

sass-render

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

Command options sass-render

alias option type description
-s --source string Template file to render sass into.
-w --watch boolean Starts the renderer in watch mode, looks at the from the root of the project
-h --help boolean Print 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

Package Sidebar

Install

npm i @exmg/exmg-cli

Weekly Downloads

1

Version

8.1.17

License

MIT

Unpacked Size

6.97 kB

Total Files

6

Last publish

Collaborators

  • xm-nuel
  • oleg_makushev
  • livery-ci
  • exm_erwingoossen
  • martinkolkman
  • em-jeroenv
  • nicholas-exmachina
  • marksmits
  • difosfor
  • tylerexmg
  • padamieo_exmachina
  • albert_exm
  • rdrgcnn
  • sander_exmachina
  • joepadmiraal
  • exmachina-ci
  • remonvv
  • kjelles