MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / updateComponentMap

Function updateComponentMap

scripts/generate.js:105–119  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

103
104
105function updateComponentMap(name) {
106 let numSpace = 1;
107 if (name.length < 26) {
108 numSpace = 26 - name.length;
109 }
110
111 let spaces = '';
112 for (let i = 0; i < numSpace; i++) {
113 spaces += ' ';
114 }
115
116 return (
117 `export let ${name}${spaces}= require('components/${name}/${name}.example');\n`
118 );
119}
120
121// Begin generation script
122

Callers 1

generate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected