npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fast-sass

v1.1.0

Published

The default blueprint for ember-cli addons.

Downloads

352

Readme

fast-sass

A SASS compiler plugin focussed on speed over customisability. Initially forked from ember-cli-sass then rewritten taking much inspiration from ember-cli-typescript to allow the addon to be written in TypeScript

fast-sass uses Sass to preprocess your ember-cli app's styles, and provides support for source maps and include paths. It provides support for the common use case for Ember.js projects:

Installation

ember install fast-sass

Next you'll need to rename styles/app.css to styles/app.scss.

Usage

This addon uses a distribution of Dart Sass that is compiled to pure JavaScript. Dart Sass is the reference implementation for Sass.

By default this addon will compile app/styles/app.scss into dist/assets/app.css.

If you want more control, you can pass additional options to sassOptions:

  • includePaths: an array of include paths
  • onlyIncluded: true/false whether to use only what is in app/styles and includePaths. This may helps with performance, particularly when using NPM linked modules
  • ext: The file extension of the input file, default: 'scss'

Example

The following example assumes your this party packages are installed as node_modules.

Make the files from that dependence available to SASS like this:

yarn add -D foundation-sites

Specify some include paths in your ember-cli-build.js:

var app = new EmberApp({
  sassOptions: {
    includePaths: [
      'node_modules/foundation-sites/scss',
    ]
  }
});

Import some deps into your app.scss:

@import 'foundation';
@include foundation-global-styles;

Automatic Pod Style Inclusions

If you want to follow a pattern of having style files for each individual component, you can have them automatically included by passing this option in ember-cli-build.js.

var app = new EmberApp({
  sassOptions: {
    autoIncludeComponentCSS: true
  }
});

You must also add this to your app.scss

@import 'pod-styles';

With this done, any scss file found in app/components/** will be automatically included in the build output.