Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-24041] CLI: Copy "hooks" directory to the packaged module #8519

Closed
wants to merge 4 commits into from

Conversation

hansemannn
Copy link
Collaborator

@hansemannn hansemannn commented Oct 15, 2016

@hansemannn hansemannn changed the title [MOD-2306] CLI: Copy "hooks" directory to the packaged module [TIMOB-24041] CLI: Copy "hooks" directory to the packaged module Oct 15, 2016
@@ -269,7 +269,7 @@ AndroidModuleBuilder.prototype.initialize = function initialize(next) {
this.templatesDir = path.join(this.platformPath, 'templates', 'build');
this.moduleIdSubDir = this.manifest.moduleid.split('.').join(path.sep);

['assets', 'documentation', 'example', 'platform', 'Resources'].forEach(function (folder) {
['assets', 'documentation', 'example', 'platform', 'Resources', 'hooks'].forEach(function (folder) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no point including 'hooks' here since you're overriding it on line 291.

this.assetsTemplateFile = path.join(this.templatesDir, 'module', 'default', 'template', 'iphone', 'Classes', '{{ModuleIdAsIdentifier}}ModuleAssets.m.ejs');
this.universalBinaryDir = path.join(this.projectDir, 'build');

['assets', 'documentation', 'example', 'platform', 'Resources'].forEach(function (folder) {
['assets', 'documentation', 'example', 'platform', 'Resources', 'hooks'].forEach(function (folder) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If you add 'hooks' here, you will override this.hooksDir above, so best not to do that.

@hansemannn
Copy link
Collaborator Author

Closing

@hansemannn hansemannn closed this Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants