Returns a tree with all javascript for this addon. @private @method processedAddonJsFiles @param {Tree} the tree to preprocess @return {Tree} Processed javascript file tree
(inputTree)
| 1240 | @return {Tree} Processed javascript file tree |
| 1241 | */ |
| 1242 | processedAddonJsFiles(inputTree) { |
| 1243 | let preprocessedAddonJS = this._addonPreprocessTree('js', inputTree); |
| 1244 | |
| 1245 | let processedAddonJS = this.preprocessJs(preprocessedAddonJS, '/', this.name, { |
| 1246 | annotation: `processedAddonJsFiles(${this.name})`, |
| 1247 | registry: this.registry, |
| 1248 | treeType: 'addon', |
| 1249 | }); |
| 1250 | |
| 1251 | if (registryHasPreprocessor(this.registry, 'js')) { |
| 1252 | return this._addonPostprocessTree('js', processedAddonJS); |
| 1253 | } |
| 1254 | |
| 1255 | throw new SilentError( |
| 1256 | `Addon files were detected in \`${this._treePathFor('addon')}\`, but no JavaScript ` + |
| 1257 | `preprocessor was found for \`${this.name}\`. Please make sure to add a preprocessor ` + |
| 1258 | '(most likely `ember-cli-babel`) to `dependencies` (NOT `devDependencies`) in ' + |
| 1259 | `\`${this.name}\`'s \`package.json\`.` |
| 1260 | ); |
| 1261 | }, |
| 1262 | |
| 1263 | /** |
| 1264 | Returns the module name for this addon. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…