sheetloaf 1.20.5-beta → 1.21.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -31
- package/dist/configs.js +4 -2
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -41,39 +41,42 @@ Options for use with --dir:
|
|
|
41
41
|
in the output directory, for use with --dir
|
|
42
42
|
|
|
43
43
|
Sass options:
|
|
44
|
-
-s, --style
|
|
45
|
-
|
|
46
|
-
--[no-]source-map
|
|
47
|
-
--embed-source-map
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
--embed-sources
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
-–source-map-urls
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
--
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
for stylesheets.
|
|
68
|
-
-p, --pkg-importer Built-in importer(s) to use for pkg: URLs. [string]
|
|
69
|
-
[node] Load files like Node.js package resolution.
|
|
44
|
+
-s, --style Output style. Possible values are "expanded", [string]
|
|
45
|
+
or "compressed". Default: "expanded".
|
|
46
|
+
--[no-]source-map Whether to generate source maps. Default is on. [boolean]
|
|
47
|
+
--embed-source-map Tells Sass to embed the contents of the source [boolean]
|
|
48
|
+
map file in the generated CSS, rather than
|
|
49
|
+
creating a separate file and linking to it
|
|
50
|
+
from the CSS.
|
|
51
|
+
--embed-sources Embed the entire contents of the Sass files that [boolean]
|
|
52
|
+
contributed to the generated CSS in the source map.
|
|
53
|
+
This may produce very large source maps, but it
|
|
54
|
+
guarantees that the source will be available on
|
|
55
|
+
any computer no matter how the CSS is served.
|
|
56
|
+
-–source-map-urls Controls how the source maps that Sass generates [string]
|
|
57
|
+
link back to the Sass files that contributed to
|
|
58
|
+
the generated CSS. Possible values are "relative"
|
|
59
|
+
or "absolute". Default: "relative".
|
|
60
|
+
--silence-deprecation This option tells Sass to silence a particular [string]
|
|
61
|
+
type of deprecation warning if you wish to
|
|
62
|
+
temporarily ignore the deprecation.
|
|
63
|
+
-I, --load-path Adds an additional load path for Sass to look [string]
|
|
64
|
+
for stylesheets.
|
|
65
|
+
-p, --pkg-importer Built-in importer(s) to use for pkg: URLs. [string]
|
|
66
|
+
[node] Load files like Node.js package resolution.
|
|
70
67
|
|
|
71
68
|
Advanced options:
|
|
72
|
-
--poll
|
|
73
|
-
|
|
74
|
-
--
|
|
75
|
-
|
|
76
|
-
|
|
69
|
+
--poll Use polling for file watching. Can optionally pass [boolean]
|
|
70
|
+
polling interval; default 100 ms
|
|
71
|
+
--async Use Sass's compileAsyc/compileStringAsync functions. [boolean]
|
|
72
|
+
This will be slower in most cases.
|
|
73
|
+
--[no-]error-css This flag tells Sass whether to emit a CSS file [boolean]
|
|
74
|
+
when an error occurs during compilation. This
|
|
75
|
+
CSS file describes the error in a comment and in
|
|
76
|
+
the content property of body::before, so that
|
|
77
|
+
you can see the error message in the browser
|
|
78
|
+
without needing to switch back to the terminal.
|
|
79
|
+
--config Set a custom directory to look for a config file [string]
|
|
77
80
|
|
|
78
81
|
Misc:
|
|
79
82
|
-v, --version Show version number [boolean]
|
package/dist/configs.js
CHANGED
|
@@ -38,7 +38,8 @@ function generateSassOptions(opts) {
|
|
|
38
38
|
loadPaths: opts.loadPath ? opts.loadPath.split(',') : [],
|
|
39
39
|
sourceMap: opts.sourceMap === false ? false : true,
|
|
40
40
|
sourceMapIncludeSources: opts.sourceMap === false ? false : true,
|
|
41
|
-
importers: opts.pkgImporter === 'node' ? [new sass_1.NodePackageImporter()] : []
|
|
41
|
+
importers: opts.pkgImporter === 'node' ? [new sass_1.NodePackageImporter()] : [],
|
|
42
|
+
silenceDeprecations: opts.silenceDeprecation ? opts.silenceDeprecation.split(',') : []
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
exports.generateSassOptions = generateSassOptions;
|
|
@@ -48,7 +49,8 @@ function generateSassOptionsAsync(opts) {
|
|
|
48
49
|
loadPaths: opts.loadPath ? opts.loadPath.split(',') : [],
|
|
49
50
|
sourceMap: opts.sourceMap === false ? false : true,
|
|
50
51
|
sourceMapIncludeSources: opts.sourceMap === false ? false : true,
|
|
51
|
-
importers: opts.pkgImporter === 'node' ? [new sass_1.NodePackageImporter()] : []
|
|
52
|
+
importers: opts.pkgImporter === 'node' ? [new sass_1.NodePackageImporter()] : [],
|
|
53
|
+
silenceDeprecations: opts.silenceDeprecation ? opts.silenceDeprecation.split(',') : []
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
exports.generateSassOptionsAsync = generateSassOptionsAsync;
|
package/dist/index.js
CHANGED
|
@@ -101,6 +101,7 @@ sheetloaf
|
|
|
101
101
|
.option('--source-map-urls <TYPE>', 'Controls how the source maps that Sass generates link back to the Sass files that contributed to the generated CSS. ["relative", "absolute"]', 'relative')
|
|
102
102
|
.option('--error-css', 'Emit a CSS file when an error occurs during compilation (this is the default option).')
|
|
103
103
|
.option('--no-error-css', 'Do not emit a CSS file when an error occurs during compilation.')
|
|
104
|
+
.option('--silence-deprecation <TYPE>', 'This option tells Sass to silence a particular type of deprecation.')
|
|
104
105
|
.option('-I, --load-path <PATHS>', 'Adds an additional load path for Sass to look for stylesheets.')
|
|
105
106
|
.option('-p, --pkg-importer <TYPE>', `Built-in importer(s) to use for pkg: URLs.\n[node] - Load files like Node.js package resolution.`)
|
|
106
107
|
.option('-w, --watch', 'Watch stylesheets and recompile when they change.')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheetloaf",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0-beta",
|
|
4
4
|
"description": "freshmade stylesheets for the whole family.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build:development": "tsc --watch",
|
|
11
11
|
"build:production": "tsc",
|
|
12
12
|
"test": "mocha -r ts-node/register test/*.test.ts",
|
|
13
|
-
"test2": "node . \"test/samples/styles/**/*.scss\" --dir \"test/samples/render/\" --load-path \"test/samples/lib\" --style compressed --base test/samples/styles/ --use autoprefixer,postcss-custom-properties --watch --pkg-importer node",
|
|
13
|
+
"test2": "node . \"test/samples/styles/**/*.scss\" --dir \"test/samples/render/\" --load-path \"test/samples/lib\" --style compressed --base test/samples/styles/ --use autoprefixer,postcss-custom-properties --watch --pkg-importer node --silence-deprecation mixed-decls",
|
|
14
14
|
"test3": "cat test/samples/styles/file.scss | node . --style compressed --use autoprefixer --load-path test/samples/styles > test/samples/render/file.css",
|
|
15
15
|
"test4": "cat test/samples/styles/file-with-error.scss | node . --style compressed --use autoprefixer > test/samples/render/file.css 2> test/samples/logs/error.log"
|
|
16
16
|
},
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"glob": "^11.0.0",
|
|
55
55
|
"picocolors": "^1.0.1",
|
|
56
56
|
"picomatch": "^4.0.2",
|
|
57
|
-
"sass": "^1.
|
|
57
|
+
"sass": "^1.78.0"
|
|
58
58
|
}
|
|
59
59
|
}
|