2018-06-24 10:11:52 +02:00
|
|
|
import {DOMAIN_SERVERS, PORT_SERVER_1, TARBALL} from '../config.functional';
|
2018-06-23 01:03:25 +02:00
|
|
|
|
2018-06-23 09:18:31 +02:00
|
|
|
module.exports = function(name, version = '0.0.0', port = PORT_SERVER_1, domain= `http://${DOMAIN_SERVERS}:${port}`,
|
2018-06-23 08:35:06 +02:00
|
|
|
fileName = TARBALL, readme = 'this is a readme') {
|
2014-11-12 14:14:37 +03:00
|
|
|
return {
|
2018-06-23 01:03:25 +02:00
|
|
|
name,
|
|
|
|
version,
|
|
|
|
readme,
|
2017-04-19 21:15:28 +02:00
|
|
|
dist: {
|
|
|
|
shasum: 'fake',
|
2018-06-23 01:03:25 +02:00
|
|
|
tarball: `${domain}/${encodeURIComponent(name)}/-/${fileName}`,
|
2017-04-19 21:15:28 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
2013-09-28 20:46:55 +04:00
|
|
|
|