simple_sass_transformer 0.0.2+1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 49

Dart Sass for Pub

This transfomer simply compiles .scss and .sass files to .css files.

Since it depends on dart-sass, there is no need to have Sass installed.

Usage

Add the following lines to your pubspec.yaml:

dependencies:
  simple_sass_transformer: 0.0.2
transformers:
  - simple_sass_transformer

Assume you have /path/to/file.scss or /path/to/file.sass, add these lines to your index.html:

<head>
  <link rel="stylesheet" href="/path/to/file.css">
</head>

If relative paths are not so pretty for you, you can instead use package: just like in your .dart files.

@import 'package:your_package_name/styles';

Changelog

0.0.2

  • Add support for package_resolver

0.0.1

  • Initial version

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  simple_sass_transformer: "^0.0.2+1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:simple_sass_transformer/transformer.dart';
        
Version Uploaded Documentation Archive
0.0.2+1 Mar 12, 2017 Go to the documentation of simple_sass_transformer 0.0.2+1 Download simple_sass_transformer 0.0.2+1 archive
0.0.2 Mar 12, 2017 Go to the documentation of simple_sass_transformer 0.0.2 Download simple_sass_transformer 0.0.2 archive
0.0.1+1 Jan 7, 2017 Go to the documentation of simple_sass_transformer 0.0.1+1 Download simple_sass_transformer 0.0.1+1 archive
0.0.1 Jan 7, 2017 Go to the documentation of simple_sass_transformer 0.0.1 Download simple_sass_transformer 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
95 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
49

Platforms

Detected platforms: Flutter, other

Platform components identified in package: build, io.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use simple_sass_transformer.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <2.0.0
barback ^0.15.2 0.15.2+14
sass ^1.0.0-alpha 1.0.0-beta.5.1
Transitive dependencies
args 1.3.0
async 2.0.3
charcode 1.1.1
collection 1.14.5
convert 2.0.1
http 0.11.3+16
http_parser 3.1.1
meta 1.1.2
package_config 1.0.3
package_resolver 1.0.2
path 1.5.1
pool 1.3.4
quiver_hashcode 1.0.0
source_span 1.4.0
stack_trace 1.9.1
string_scanner 1.0.2
tuple 1.0.1
typed_data 1.1.5