Socket
Book a DemoInstallSign in
Socket

@refinitiv-ui/theme-compiler

Package Overview
Dependencies
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@refinitiv-ui/theme-compiler

Compiles Element Framwork themes into usable JavaScript

Source
npmnpm
Version
5.0.0-beta.1
Version published
Weekly downloads
22
69.23%
Maintainers
2
Weekly downloads
 
Created
Source

Theme Compiler

Theme compiler for Element Framework Themes.

Usage:

The theme compiler needs to be a dependency of each theme. In the package.json of each theme, add a new build script which calls the compiler.

Usage:

"scripts": {
  "build": "theme-compiler [out directory] [less variables]"
}

Example:

"scripts": {
  "build": "theme-compiler dark --variant=dark"
}

Then you can run npm run build.

Adding a watcher for development

To watch for changes while you are developing a theme, you can include the watch library.

$ npm i --save-dev watch

Then you can modify you npm scripts to watch for file changes and recompile the theme.

Example:

"scripts": {
  "build": "theme-compiler dark --variant=dark",
  "watch": "watch 'npm run build' src"
}

Then you can run npm run watch.

FAQs

Package last updated on 22 Jun 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