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