Details

      Description

      When compiling/building an alloy project, it would be great if all folders within the app directory were automatically moved to the Resources directory. Currently only specified directories (controllers, models, etc) get moved.

      Moving all folders during the build would allow usage of normal commonjs patterns. Currently, the only way to use require is by placing exports within the assets directory, where it doesn't seem to fit.

      Example:

      app

      --> controllers
      --> index.js
      --> models
      --> views
      --> utils
      --> math.js

      In stuff:
      exports.add = function(a, b)

      { return a + b }

      in index:
      var math = require('math');
      math.add(5, 3);

        Attachments

          Activity

            People

            • Assignee:
              tlukasavage Tony Lukasavage
              Reporter:
              joelongstreet Joe Longstreet
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration