MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / getDefaultUnpackagedDist

Function getDefaultUnpackagedDist

tests/helpers/default-packager.js:157–171  ·  view source on GitHub ↗
(name, options)

Source from the content-addressed store, hash-verified

155 * @return {Object}
156 */
157function getDefaultUnpackagedDist(name, options) {
158 options = options || {};
159
160 const addonModules = Object.assign({}, DEFAULT_ADDON_MODULES, options.addonModules);
161 const nodeModules = options.nodeModules || DEFAULT_NODE_MODULES;
162 const application = Object.assign({}, DEFAULT_SOURCE, options.source);
163 const vendor = Object.assign({}, DEFAULT_VENDOR, options.vendor);
164
165 return {
166 'addon-modules': addonModules,
167 node_modules: nodeModules,
168 [name]: application,
169 vendor,
170 };
171}
172
173/*
174 * Validates that passed-in object has the following shape:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…