New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@freshworks/core

Package Overview
Dependencies
Maintainers
15
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freshworks/core

Nucleus::Core - SCSS styles & helpers

  • 0.15.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-9.87%
Maintainers
15
Weekly downloads
 
Created
Source

@freshworks/core

npm version npm

ember install @freshworks/core

Contains the core design modules of Freshworks DSM:

  1. variables
  2. animations
  3. utilities

To import these stylesheets in your host app, add any/all of the following to your app.scss as per your requirement.

@import "nucleus/variables";
@import "nucleus/animations";
@import "nucleus/utilities";

To import them in another dependent addon (e.g @freshdesk/button), add the following to the addon's index.js:

treeForAddonStyles(tree) {
  let coreStyleTree = new Funnel(this.getCoreStylesPath(), {
    destDir: 'nucleus'
  });
  return mergeTrees([coreStyleTree, tree]);
},

getCoreStylesPath() {
  let pkgPath = path.dirname(require.resolve(`@freshworks/core/package.json`));
  return path.join(pkgPath, 'app/styles');
}

REASON:

@nucleus/core's app style funnel needs to be merged with the addon's style funnel in order for those files to be recognised by ember-cli-sass. More info here

Keywords

FAQs

Package last updated on 20 Sep 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc