2017-10-09 16:35:52 +03:00
|
|
|
const http = require('http');
|
|
|
|
const serveStatic = require('serve-static');
|
2017-10-13 23:02:58 +03:00
|
|
|
// const jest = require('jest');
|
2017-10-09 16:35:52 +03:00
|
|
|
|
|
|
|
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);
|