MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / run

Method run

tools/mcmanifest.js:3168–3298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3166 return this.resolveSlash(value);
3167 }
3168 run() {
3169 // merge manifests
3170 var path = this.manifestPath;
3171 this.manifests = [];
3172 this.manifests.already = {};
3173 var manifest = this.parseManifest(this.manifestPath);
3174 manifest.directory = this.mainPath;
3175
3176 this.mergeNodeRed(this.manifests);
3177
3178 this.manifest = {
3179 config:{},
3180 creation:{},
3181 defines:{},
3182 dependency:[],
3183 data:{},
3184 modules:{},
3185 resources:{},
3186 ble:{},
3187 recipes:{},
3188 preload:[],
3189 strip:[],
3190 commonjs:[],
3191 errors:[],
3192 warnings:[],
3193 run:{},
3194 typescript: {compiler: "tsc", tsconfig: {compilerOptions: {}}},
3195 zephyrConfig:{},
3196 zephyrShields:{},
3197 zephyrOverlay:{},
3198 };
3199 this.manifests.forEach(manifest => this.mergeManifest(this.manifest, manifest));
3200
3201 this.mergeDependencies(this.manifests);
3202
3203 if (this.manifest.errors.length) {
3204 this.manifest.errors.forEach(error => { this.reportError(null, 0, error); });
3205 throw new Error("incompatible platform!");
3206 }
3207 if (this.manifest.warnings.length) {
3208 this.manifest.warnings.forEach(warning => { this.reportWarning(null, 0, warning); });
3209 }
3210
3211 // apply rules
3212 this.dataFiles = [];
3213 this.dataFiles.already = {};
3214 this.dataFolders = [];
3215 this.dataFolders.already = {};
3216
3217 this.jsFiles = [];
3218 this.jsFiles.already = {};
3219 this.jsFolders = [];
3220 this.jsFolders.already = {};
3221
3222 this.cFiles = [];
3223 this.cFiles.already = {};
3224 this.cFolders = [];
3225 this.cFolders.already = {};

Callers

nothing calls this directly

Calls 7

parseManifestMethod · 0.95
mergeNodeRedMethod · 0.95
mergeManifestMethod · 0.95
mergeDependenciesMethod · 0.95
reverseMethod · 0.80
processMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected