MCPcopy Create free account
hub / github.com/socketstream/socketstream / setDefaultOptions

Function setDefaultOptions

lib/client/index.js:19–45  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

17var options = {};
18
19function setDefaultOptions(options) {
20
21 // Determine if assets should be (re)packed on startup
22 var packEnv = process.env['SS_PACK'];
23
24 options.packedAssets = packEnv || false;
25
26 options.liveReload = ['code', 'css', 'static', 'templates', 'views'];
27 options.startInBundle = false;
28 options.defaultEntryInit = 'require("/entry");';
29 options.entryModuleName = undefined;
30 options.urls = {
31 assets: '/assets/'
32 };
33 // in 0.5 these will be relative paths
34 options.dirs = {
35 client: '/client',
36 code: '/client/code',
37 system: '/client/code/system', // will be an array after load
38 css: '/client/css',
39 static: '/client/static',
40 assets: '/client/static/assets',
41 templates: '/client/templates',
42 views: '/client/views',
43 workers: '/client/workers'
44 };
45}
46
47setDefaultOptions(options);
48

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected