sass_migrator 1.2.3

  • Readme
  • Changelog
  • Installing
  • 44

Easily upgrade your Sass stylesheets!

Sass logo npm statistics Travis build status

The Sass migrator automatically updates stylesheets that use deprecated behavior to the latest and greatest Sass features. It's easy to install from npm and elsewhere as sass-migrator.

For more information and installation instructions, see the Sass website.

1.2.3 #

  • Updates help text to use the correct binary name (sass-migrator).

1.2.2 #

  • No user-visible changes.

1.2.1 #

Module Migrator #

  • Fixes a bug where semicolons would be missing when migrating an @import rule with multiple imports.

1.2.0 #

Module Migrator #

  • The --remove-prefix flag can now take multiple prefixes.

  • Correctly migrate assignments to members in already-migrated modules.

1.1.5 #

Module Migrator #

  • Fix a few bugs when migrating files that imported members through multiple layers of import-only files.

1.1.4 #

Module Migrator #

  • When generating import-only files that for files that used to import import-only files, forward the upstream import-only files.

  • Don't double-prefix members imported from a prefixed @forward rule.

1.1.3 #

Module Migrator #

  • Don't remove prefixes from members that would become invalid identifiers afterwards.

1.1.2 #

Module Migrator #

  • Generate better @use rules for index files.

1.1.1 #

Module Migrator #

  • When using --forward=import-only, @forward rules in an import-only file are now sorted with the regular file last, allowing variables in indirect dependencies to be configured.

  • Fixes a bug where some references weren't renamed if a variable is declared twice when using --remove-prefix.

1.1.0 #

  • Add support for glob inputs on the command line.

Module Migrator #

  • Add --forward=import-only option, which will not forward any members through the regular entrypoint, but it will forward all members through the entrypoint's import-only file. --forward=prefixed,import-only is also supported, which will forward prefixed members through the regular entrypoint and all members through the import-only file.

  • Make --remove-prefix=<prefix> --forward=prefixed forward members that previously started with <prefix> and were unprefixed by a previous migrator run. This includes cases where the previously removed prefix is longer than the prefix for the current migrator run.

  • Better handling when migrating files whose dependencies have complex import-only files.

1.0.1 #

Module Migrator #

  • Improve ordering of @use and @forward rules.

  • Fix a bug in the migrating of configurable variables. Variables should now only be considered configured when the configuring declaration is upstream of the !default declaration.

  • When namespacing a negated variable, adds parentheses around it to prevent the - from being parsed as part of the namespace.

  • Fix a bug in the migrating of removed color functions when the amount is a variable being namespaced.

1.0.0 #

  • Initial release.

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate sass_migrator

2. Use it

The package has the following executables:


$ sass-migrator
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
73
Overall:
Weighted score of the above. [more]
44
Learn more about scoring.

We analyzed this package on Jul 7, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

Analysis suggestions

Binary only

Cannot assign flutter SDK tag because it is binary only

Binary only

Cannot assign flutter platform tags, it is a binary only package

Health suggestions

Fix lib/src/io/node.dart. (-0.50 points)

Analysis of lib/src/io/node.dart reported 1 hint:

line 14 col 1: The @JS() annotation can only be used if it is also declared on the library directive.

Fix lib/src/migrators/module/references.dart. (-0.50 points)

Analysis of lib/src/migrators/module/references.dart reported 1 hint:

line 164 col 13: 'mapMap' is deprecated and shouldn't be used. Use Map.map or a for loop in a Map literal..

Fix lib/src/utils.dart. (-0.50 points)

Analysis of lib/src/utils.dart reported 1 hint:

line 153 col 7: Use isEmpty instead of length

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting sass_migrator... Initialized dartdoc with 37 libraries in 29.9 seconds Validating docs... no issues found Documented 0 public libraries in 5.3 seconds stderr: Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)

The package description is too short. (-17 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
args ^1.5.1 1.6.0
charcode ^1.1.0 1.1.3
collection ^1.8.0 1.14.13
glob ^1.2.0 1.2.0
js ^0.6.0 0.6.2
meta >=0.9.0 <2.0.0 1.2.1
node_interop ^1.0.0 1.1.1
node_io ^1.1.0 1.1.1
path ^1.6.0 1.7.0
sass ^1.24.3 1.26.10
source_span ^1.4.0 1.7.0
term_glyph ^1.1.0 1.1.0
tuple ^1.0.2 1.0.3
Transitive dependencies
async 2.4.2
cli_repl 0.2.0+1
http_parser 3.1.4
matcher 0.12.8
package_config 1.9.3
package_resolver 1.0.10
pedantic 1.9.1
quiver 2.1.3
source_maps 0.10.9
stack_trace 1.9.5
stream_transform 1.2.0
typed_data 1.2.0
watcher 0.9.7+15
Dev dependencies
archive >=1.0.0 <3.0.0
cli_pkg ^1.0.0-beta.7
crypto ^2.1.4
grinder ^0.8.0
http >=0.11.0 <0.13.0 0.12.1
node_preamble ^1.3.0
pub_semver ^1.0.0
string_scanner ^1.0.0 1.0.5
test >=0.12.29 <2.0.0
test_descriptor ^1.1.1
test_process ^1.0.0
xml >=2.4.0 <4.0.0
yaml ^2.0.0