joyent-portal/packages/ui-toolkit/test/start.js

13 lines
402 B
JavaScript
Raw Normal View History

const http = require('http');
const serveStatic = require('serve-static');
2017-10-13 23:02:58 +03:00
// const jest = require('jest');
const serve = serveStatic('styleguide/');
const server = http.createServer((req, res) => {
// eslint-disable-next-line no-console
serve(req, res, (req, res) => console.log('yay'));
});
// "test": "cross-env NODE_ENV=test run-s styleguide:build test:visual",
// Listen
server.listen(6060);