Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Alloy 1.11.0
    • Fix Version/s: None
    • Component/s: Runtime
    • Labels:
    • Story Points:
      5

      Description

      Action:
      A config.json file with the following contents is added to the project:

      {
          "global": {
              "theme":"default",
              "dir": {
                  "template": "/"
              }
          },
          "env:development": {},
          "env:test": {},
          "env:production": {},
          "os:ios": {
              "theme":"ios"
          },
          "os:android": {
              "theme":"android"
          },
          "os:mobileweb":{
              "theme":"mobileweb"
          },
          "dependencies": {}
      }
      

      Expected result:
      Should result in alloy looking for templates in the root directory of the system.

      Actual result:
      An error is thrown of "Arguments to path.join must be strings" in the alloy compile due to the rest of the dir paths not being set in the config.json file. allow uses _.defaults and this does a "shallow" style clone rather then deep.

      lo-dash has a fix for this already (well... provided a workaround, the community has made modules from this workaround) ... sadly underscore has not yet fixed this as far as I can tell. Creating a workaround for underscore should not be difficult though

      Example use case:
      Wanting to override the alloy templates for a project, and so wanting to change the template directory for the project to a custom one

        Attachments

          Activity

            People

            • Assignee:
              skypanther Tim Poulsen
              Reporter:
              mattapperson me@gmail.com
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration