Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Cleanup build options #74

Merged
merged 1 commit into from
Jan 10, 2017
Merged

Cleanup build options #74

merged 1 commit into from
Jan 10, 2017

Conversation

jasonLaster
Copy link
Contributor

  • switch to using an implicit bundleName over just using "bundle" or passing in an explicit one
  • drop library name
  • cleanup some code

res.send(Mustache.render(tplFile, {
isDevelopment: isDevelopment(),
dir: getValue("dir") || "ltr",
bundleName: getValue("title").toLocaleLowerCase() || "bundle",
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't it break if the config does not specify a title ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@nchevobbe The or should fall back to bundle.

Copy link
Member

Choose a reason for hiding this comment

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

I was thinking getValue("title") is undefined if there isn't a title entry in the configuration, hence, doing .toLocaleLowerCase() on undefined would have throw.
I'll check and open a PR if there's such issue

@jasonLaster
Copy link
Contributor Author

sorry if i missed something @nchevobbe

@nchevobbe
Copy link
Member

sorry if i missed something @nchevobbe

nope, sounds good, I didn't saw that you fixed it :)

@clarkbw clarkbw deleted the build-opts branch January 20, 2017 19:48
nchevobbe added a commit that referenced this pull request Jun 5, 2017
allow window rep title customization from grip
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.

None yet

3 participants