Bot releases are hidden (Show)
sass
option (string
or Sass implementation instance, defaults to 'sass'
) to allow using either sass
or embedded-sass
.importers
option by default, if Dart Sass v1.71 or later is available. Users can opt out by providing their own importers
option, e.g. { importers: [] }
.sass
as a peer-dependency.Full Changelog: https://github.com/oddbird/true/compare/v7.0.1...v8.0.0
Published by jgerigmeyer 10 months ago
runSass
arguments and warn if using v6 API -- https://github.com/oddbird/true/pull/268
{ style: 'compressed' }
is not supported.Full Changelog: https://github.com/oddbird/true/compare/v7.0.0...v7.0.1
Published by jgerigmeyer almost 2 years ago
contains()
checks multiple block with matching selectors. #243
sourceType
option (path
[default] or string
)runSass
: 1) True options, 2) source path (or string), 3) optional Sass optionsincludePaths
is now loadPaths
, outputStyle
is now style
, importer
is now importers
, etc. See the Dart Sass documentation for more details.sass
(>=1.45.0
) as a peer-dependency, removing True sass
optionrunSass
arguments have changed:v6:
const path = require('path');
const sass = require('node-sass');
const sassTrue = require('sass-true');
const sassFile = path.join(__dirname, 'test.scss');
sassTrue.runSass(
// Sass options [required]
{ file: sassFile, outputStyle: 'compressed', includePaths: ['node_modules'] },
// True options [required]
{ describe, it, sass },
);
const sassString = `
h1 {
font-size: 40px;
}`;
sassTrue.runSass(
// Sass options [required]
{
data: sassString,
outputStyle: 'compressed',
includePaths: ['node_modules'],
},
// True options [required]
{ describe, it, sass },
);
v7:
const path = require('path');
const sassTrue = require('sass-true');
const sassFile = path.join(__dirname, 'test.scss');
sassTrue.runSass(
// True options [required]
{ describe, it },
// Sass source (path) [required]
sassFile,
// Sass options [optional]
{ style: 'compressed', loadPaths: ['node_modules'] },
);
const sassString = `
h1 {
font-size: 40px;
}`;
sassTrue.runSass(
// True options [required]
{ describe, it, sourceType: 'string' },
// Sass source (string) [required]
sassString,
// Sass options [optional]
{ style: 'compressed', loadPaths: ['node_modules'] },
);
Full Changelog: https://github.com/oddbird/true/compare/v6.1.0...v7.0.0
Published by jgerigmeyer about 2 years ago
sourceType
option (path
[default] or string
)runSass
: 1) True options, 2) source path (or string), 3) optional Sass optionssass
as a peer-dependency, removing True sass
optionrunSass
arguments have changed:v6:
const path = require('path');
const sass = require('node-sass');
const sassTrue = require('sass-true');
const sassFile = path.join(__dirname, 'test.scss');
sassTrue.runSass(
// Sass options [required]
{ file: sassFile, outputStyle: 'compressed' },
// True options [required]
{ describe, it, sass },
);
const sassString = `
h1 {
font-size: 40px;
}`;
sassTrue.runSass(
// Sass options [required]
{ data: sassString, outputStyle: 'compressed' },
// True options [required]
{ describe, it, sass },
);
v7:
const path = require('path');
const sassTrue = require('sass-true');
const sassFile = path.join(__dirname, 'test.scss');
sassTrue.runSass(
// True options [required]
{ describe, it },
// Sass source (path) [required]
sassFile,
// Sass options [optional]
{ style: 'compressed' },
);
const sassString = `
h1 {
font-size: 40px;
}`;
sassTrue.runSass(
// True options [required]
{ describe, it, sourceType: 'string' },
// Sass source (string) [required]
sassString,
// Sass options [optional]
{ style: 'compressed' },
);
Full Changelog: https://github.com/oddbird/true/compare/v6.1.0...v7.0.0-beta.0
Published by jgerigmeyer over 2 years ago
Full Changelog: https://github.com/oddbird/true/compare/v6.0.1...v6.1.0
Published by jgerigmeyer over 2 years ago
Full Changelog: https://github.com/oddbird/true/compare/v6.0.1...v6.1.0-beta.1
Published by mirisuzanne about 4 years ago
Published by mirisuzanne about 4 years ago
$true-terminal-output
setting to $terminal-output
when importing as a module (with @use
). Projects not using Sass modules can still @import '<path>/sass-true/sass/true'
and access the setting as $true-terminal-output
_index.scss
at the project root, for simpler import path: @use '<path>/sass-true'
sass/_throw.scss
module provides:
error()
function & mixin for establishing "catchable" errors$catch-errors
toggles how error()
output is handledcontent
properties which include a curly brace.Published by mirisuzanne over 5 years ago
runSass
, which now accepts two arguments: asassOptions
object and a trueOptions
object.sass
option to runSass
for passing a different Sass implementationnode-sass
#137
node-sass
from peerDependencies
assert.fail
Published by jgerigmeyer over 6 years ago
node-sass
to peerDependencies
Published by mirisuzanne over 6 years ago
contains()
mixin for more minute output comparisons.expect()
, but doesn't require a complete match.Published by mirisuzanne about 7 years ago
Published by mirisuzanne about 7 years ago
(copied from 3-beta release notes…)
describe
and it
mixins,test-module
and test
respectively.$inspect
argument to assert-equal
and assert-unequal
mixins,inspect($assert) == inspect($expected)
$assert == $expected
.1/3 != 0.333333
and lighten(#246, 15%) != #356a9f
.$inspect
argument to compare rounded output values.1 == 1x
where x
represents any unit.$inspect
argument to compare output values with units.(one two three) != (one, two, three)
.Published by mirisuzanne over 7 years ago
describe
and it
mixins,test-module
and test
respectively.$inspect
argument to assert-equal
and assert-unequal
mixins,inspect($assert) == inspect($expected)
$assert == $expected
.1/3 != 0.333333
and lighten(#246, 15%) != #356a9f
.$inspect
argument to compare rounded output values.1 == 1x
where x
represents any unit.$inspect
argument to compare output values with units.(one two three) != (one, two, three)
.Published by mirisuzanne almost 8 years ago