mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
rename dart-sass -> sass
This commit is contained in:
+12
-10
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user