git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / 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