@zkochan/pnpm
Version:
A fast implementation of npm install
115 lines (113 loc) • 3.69 kB
HTML
<html lang="en">
<head>
<title>Code coverage report for bookdown-base/lib/build_css.js</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../../prettify.css">
<link rel="stylesheet" href="../../base.css">
<style type='text/css'>
div.coverage-summary .sorter {
background-image: url(../../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class="header high">
<h1>Code coverage report for <span class="entity">bookdown-base/lib/build_css.js</span></h1>
<h2>
Statements: <span class="metric">90.91% <small>(10 / 11)</small></span>
Branches: <span class="metric">100% <small>(0 / 0)</small></span>
Functions: <span class="metric">100% <small>(1 / 1)</small></span>
Lines: <span class="metric">90.91% <small>(10 / 11)</small></span>
Ignored: <span class="metric"><span class="ignore-none">none</span></span>
</h2>
<div class="path"><a href="../../index.html">All files</a> » <a href="index.html">bookdown-base/lib/</a> » build_css.js</div>
</div>
<div class="body">
<pre><table class="coverage">
<tr><td class="line-count">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24</td><td class="line-coverage"><span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-no"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
const join = require('path').join
module.exports = function buildCss (done) {
try {
const sass = require('node-sass')
const postcss = require('postcss')
const autoprefixer = require('autoprefixer')({})
const result = sass.renderSync({
includePaths: [ join(__dirname, '../node_modules') ],
file: join(__dirname, '../data/style.sass'),
outputStyle: 'compressed'
})
let css = result.css
css = postcss([autoprefixer]).process(css).css
done(null, css)
} catch (err) {
<span class="cstat-no" title="statement not covered" > done(err)</span>
}
}
</pre></td></tr>
</table></pre>
</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 05 2015 13:27:19 GMT+0800 (PHT)</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../sorter.js"></script>
</body>
</html>