git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-79-npm / stylus / stylus.js

410 bytesRaw
1'use strict';
2
3var path = require('path');
4var stylus = require('stylus');
5var s = '@require "external.css"';
6var opts = { filename: 'index.css', paths: [ __dirname ] };
7var dep = stylus(s, opts).deps()[0];
8if (path.basename(dep) === 'external.css') {
9 stylus.render(s, opts, function (error, css) {
10 if (error) return;
11 if (css === '@import "external.css";\n') {
12 console.log('ok');
13 }
14 });
15}
16

Built with git-ssb-web