mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
20 lines
473 B
JavaScript
20 lines
473 B
JavaScript
/* eslint-env node */
|
|
|
|
'use strict'
|
|
|
|
const { runSass } = require('sass-true')
|
|
const fs = require('node:fs')
|
|
const path = require('node:path')
|
|
|
|
module.exports = (filename, { describe, it }) => {
|
|
const data = fs.readFileSync(filename, 'utf8')
|
|
const TRUE_SETUP = '$true-terminal-output: false; @import "true";'
|
|
const sassString = TRUE_SETUP + data
|
|
|
|
runSass(
|
|
{ describe, it, sourceType: 'string' },
|
|
sassString,
|
|
{ loadPaths: [path.dirname(filename)] }
|
|
)
|
|
}
|