rename dart-sass -> sass

This commit is contained in:
AJ ONeal
2021-02-11 20:58:17 +00:00
parent 88d1827218
commit b409081e48
2 changed files with 18 additions and 16 deletions
+12 -10
View File
@@ -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 <input.scss> [output.css]
```
or
```bash
sass <input.scss>:<output.css> <input/>:<output/> <dir/>
```
| 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. |
| --update | Only compile out-of-date stylesheets. |
+6 -6
View File
@@ -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