Notorious Puppy Memes

    @freshworks/core

    0.14.0 • Public • Published

    @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

    Install

    npm i @freshworks/core

    DownloadsWeekly Downloads

    3,472

    Version

    0.14.0

    License

    MIT

    Unpacked Size

    147 kB

    Total Files

    69

    Last publish

    Collaborators

    • vinodhmanick
    • mdibrahim
    • arvindan.aswathanarayanan
    • freshworks-dev
    • muthufd
    • prasannanfd
    • sankar-ganesh
    • hrishikesh
    • parsuram-npm
    • rajasegar-c
    • asifahmed
    • ravirajsubramanian
    • adithya_nat
    • freshanand
    • harishkumr