From b409081e4819bdb7343c5422a3eace2884546746 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 11 Feb 2021 20:58:17 +0000 Subject: [PATCH] rename dart-sass -> sass --- sass/README.md | 22 ++++++++++++---------- sass/install.sh | 12 ++++++------ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/sass/README.md b/sass/README.md index 1c1f74b..bbab72a 100644 --- a/sass/README.md +++ b/sass/README.md @@ -1,33 +1,35 @@ --- -title: dart-sass -homepage: https://github.com/webinstall/dart-sass +title: sass +homepage: https://github.com/sass/dart-sass tagline: | - dart-sass: A Dart implementation of Sass. Sass makes CSS fun again. + sass: The reference implementation of Sass, written in Dart. Sass makes CSS fun again. --- -To update or switch versions, run `webi example@dart-sass` (or `@v2`, `@beta`, -etc). +To update or switch versions, run `webi sass@stable` (or `@v2`, `@beta`, etc). ## Cheat Sheet -> Dart Sass has replaced Ruby Sass as the canonical implementation of the Sass language. +> Dart Sass has replaced Ruby Sass as the canonical implementation of the Sass +> language. ### Command format: + ```bash sass [output.css] ``` + or + ```bash sass : : ``` - -| Input and Output | Functionality | -|------------------|-----------------------------------------------------------| +| Input and Output | Functionality | +| ---------------- | --------------------------------------------------------- | | --[no-]stdin | Read the stylesheet from stdin. | | --[no-]indented | Use the indented syntax for input from stdin. | | -I, --load-path= | A path to use when resolving imports. | | -s, --style= | Output style. | | --[no-]charset | Emit a @charset or BOM for CSS with non-ASCII characters. | | --[no-]error-css | When an error occurs, emit a stylesheet describing it. | -| --update | Only compile out-of-date stylesheets. | \ No newline at end of file +| --update | Only compile out-of-date stylesheets. | diff --git a/sass/install.sh b/sass/install.sh index 600c9ec..801cd10 100644 --- a/sass/install.sh +++ b/sass/install.sh @@ -1,16 +1,16 @@ #!/bin/bash -function __init_dart-sass() { +function __init_sass() { set -e set -u ################## - # Install dart-sass # + # Install sass # ################## - pkg_cmd_name="dart-sass" + pkg_cmd_name="sass" - pkg_dst_cmd="$HOME/.local/bin/dart-sass" + pkg_dst_cmd="$HOME/.local/bin/sass" pkg_dst="$pkg_dst_cmd" # no ./bin dir here because of how the macOS version is packaged @@ -26,9 +26,9 @@ function __init_dart-sass() { } pkg_get_current_version() { - echo $(dart-sass --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2) + echo $(sass --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2) } } -__init_dart-sass +__init_sass -- 2.25.1