molekilla / rutha

Rutha - HapiJS AngularJS Stack
MIT License
48 stars 9 forks source link

Angular controller's bug #17

Closed rbonillajr closed 9 years ago

rbonillajr commented 9 years ago

the definition of the controller makes in alphabetical order.

Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined

molekilla commented 9 years ago

Fix is in concat and uglify, in rutha-grunt-tasks-ui

module.exports = {
    options: {
      separator: ';',
    },
    dev: {
      src: ['src/app/app.js',
      'src/app/common/**/*.js',
      'src/app/**/*.js'],
      dest: 'dist/app.js',
    },
    build: {
      src: ['src/app/app.js',
      'src/app/common/**/*.js',
      'src/app/**/*.js'],
      dest: 'dist/app.js'
    }
  };
module.exports = {
  dev: {
    options: {
      sourceMap: true,
      sourceMapIncludeSources: true,
      sourceMapName: 'dist/sourcemap.map',
      mangle: false
    },
    files: {
      'dist/app.js': ['dist/app.js']
    }
  },
  build: {
    options: {
      sourceMap: true,
      sourceMapIncludeSources: true,
      sourceMapName: 'dist/sourcemap.map'
    },
    files: {
      'dist/app.js': ['dist/app.js']
    }
  }
};