Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Added an error incase the component.json file is missing the "name" attribute #241

Closed
wants to merge 1 commit into from

Conversation

vicapow
Copy link

@vicapow vicapow commented Jan 23, 2013

otherwise, the build process seems to run fine but build.js will have

    require.register("undefined/index.js", function(exports, require, module){

@@ -47,6 +47,8 @@ program.parse(process.argv);

var conf = require(path.resolve('component.json'));

if(!conf.name) throw new Error("This component is missing a name.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we handle this recursively (in component/builder.js), not just the root conf, and maybe something like <path-to-component.json> "name" missing

@vicapow
Copy link
Author

vicapow commented Jan 23, 2013

okay. to do this I have to edit the component-builder package but I can't seem to find it on github. where can I find the repo?

@vicapow
Copy link
Author

vicapow commented Jan 23, 2013

ah! nm. here it is. https://github.com/component/builder.js

@vicapow
Copy link
Author

vicapow commented Jan 23, 2013

submitted a pull request to component/builder.js

componentjs/builder.js#65

@vicapow vicapow closed this Jan 23, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants