sass_migrator 1.0.0-alpha.1

Sass Modules Migrator #

This tool is designed to help migrate stylesheets from the old @import functionality to the new module system.

This is still a work-in-progress, but should eventually implement everything described in sass/sass#2575.

1.0.0-alpha.1 #

  • Initial alpha release.

Use this package as a library

1. Depend on it

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


dependencies:
  sass_migrator: ^1.0.0-alpha.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:sass_migrator/runner.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
7
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
28
Overall:
Weighted score of the above. [more]
8
Learn more about scoring.

We analyzed this package on Aug 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms:

Low code quality prevents platform classification.

Health issues and suggestions

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

Analysis of lib/src/migrators/module.dart failed with 5 errors:

line 46 col 28: The method 'normalizedMap' isn't defined for the class '_ModuleMigrationVisitor'.

line 49 col 25: The method 'normalizedMap' isn't defined for the class '_ModuleMigrationVisitor'.

line 52 col 28: The method 'normalizedMap' isn't defined for the class '_ModuleMigrationVisitor'.

line 228 col 38: The method 'normalizedMap' isn't defined for the class '_ModuleMigrationVisitor'.

line 229 col 41: The method 'normalizedMap' isn't defined for the class '_ModuleMigrationVisitor'.

Fix lib/src/migrators/module/local_scope.dart. (-58.02 points)

Analysis of lib/src/migrators/module/local_scope.dart failed with 3 errors, 1 hint:

line 17 col 21: The method 'normalizedSet' isn't defined for the class 'LocalScope'.

line 20 col 18: The method 'normalizedSet' isn't defined for the class 'LocalScope'.

line 23 col 21: The method 'normalizedSet' isn't defined for the class 'LocalScope'.

line 7 col 8: Unused import: 'package:sass_migrator/src/utils.dart'.

Fix lib/src/migrators/division.dart. (-25 points)

Analysis of lib/src/migrators/division.dart failed with 1 error:

line 156 col 32: The method 'accept' isn't defined for the class 'Object'.

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

Analysis of lib/src/utils.dart reported 3 hints:

line 15 col 43: The library 'package:sass/src/utils.dart' doesn't export a member with the shown name 'normalizedMap'.

line 15 col 58: The library 'package:sass/src/utils.dart' doesn't export a member with the shown name 'normalizedSet'.

line 17 col 8: Unused import: 'io.dart'.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/sass/sass_migrator was unreachable.

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.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and sass_migrator.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-release. (-5 points)

Pre-release versions should be used with caution; their API can change in breaking ways.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
args ^1.5.1 1.5.2
charcode ^1.1.0 1.1.2
meta >=0.9.0 <2.0.0 1.1.7
path ^1.6.0 1.6.4
sass ^1.18.0 1.22.10
source_span ^1.4.0 1.5.5
term_glyph ^1.1.0 1.1.0
Transitive dependencies
async 2.3.0
cli_repl 0.2.0+1
http_parser 3.1.3
js 0.6.1+1
matcher 0.12.5
package_config 1.1.0
package_resolver 1.0.10
pedantic 1.8.0+1
quiver 2.0.5
source_maps 0.10.8
stack_trace 1.9.3
stream_transform 0.0.19
tuple 1.0.2
typed_data 1.1.6
watcher 0.9.7+12
Dev dependencies
archive >=1.0.0 <3.0.0
collection ^1.8.0 1.14.12
grinder ^0.8.0
http >=0.11.0 <0.13.0 0.12.0+2
node_interop ^1.0.0
node_io 1.0.0-dev.10.0
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