mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-12 00:08:59 +01:00
ae43f0c48b
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
18 lines
450 B
JavaScript
18 lines
450 B
JavaScript
'use strict'
|
|
|
|
const fs = require('node:fs')
|
|
const path = require('node:path')
|
|
const { runSass } = require('sass-true')
|
|
|
|
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)] }
|
|
)
|
|
}
|