Skip to content

Possibility to update the packagesMap config#21

Merged
flongo merged 1 commit intoariatemplates:masterfrom
flongo:external-packages-map
Jul 18, 2014
Merged

Possibility to update the packagesMap config#21
flongo merged 1 commit intoariatemplates:masterfrom
flongo:external-packages-map

Conversation

@flongo
Copy link
Copy Markdown
Collaborator

@flongo flongo commented Jul 17, 2014

Introduction of an API (noder.updatePackagesMap) that allows to update the packagesMap after noder has been already initialized.

flongo added a commit to flongo/noder-js that referenced this pull request Jul 17, 2014
Introduction of an API (`noder.updatePackagesMap`) that allows to update the packagesMap after noder has been already initialized.

Close ariatemplates#21
flongo added a commit to flongo/noder-js that referenced this pull request Jul 17, 2014
Introduction of an API (`noder.updatePackagesMap`) that allows to update the packagesMap after noder has been already initialized.

Close ariatemplates#21
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it is better to write it this way:

var map = this.toFile ? {} : configUtils.getPackagesMap(packaging, this.noderConfig, this.noderContext);

I don't understand why it would be needed to have 2 different variables map and outputMap, but maybe I am missing something, and I suppose there is no need to call getPackagesMap when toFile is provided.

@divdavem divdavem self-assigned this Jul 17, 2014
@divdavem
Copy link
Copy Markdown
Member

The travis build is failing because sources were probably not formatted with the grunt beautify task. Please use grunt beautify to reformat files.

doc/packaging.md Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note: there is an extra back-quote before the which badly formats part of this text.

flongo added a commit to flongo/noder-js that referenced this pull request Jul 17, 2014
Introduction of an API (`noder.updatePackagesMap`) that allows to update the packagesMap after noder has been already initialized.

Close ariatemplates#21
flongo added a commit to flongo/noder-js that referenced this pull request Jul 17, 2014
Introduction of an API (`noder.updatePackagesMap`) that allows to update the packagesMap after noder has been already initialized.

Close ariatemplates#21
@divdavem
Copy link
Copy Markdown
Member

🆗 f6eaa57 seems fine for me

Perhaps it would be good to add a test for updatePackagesMap?

flongo added a commit to flongo/noder-js that referenced this pull request Jul 17, 2014
Introduction of an API (`noder.updatePackagesMap`) that allows to update the packagesMap after noder has been already initialized.

Close ariatemplates#21
Introduction of an API (`noder.updatePackagesMap`) that allows to update the packagesMap after noder has been already initialized.

Close ariatemplates#21
@flongo flongo merged commit 8bb89a9 into ariatemplates:master Jul 18, 2014
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.

2 participants