Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
fix(app): order of script inclusions
Browse files Browse the repository at this point in the history
Plugins should be loaded before the application JS.

Fixes #278
  • Loading branch information
passy committed Jul 20, 2013
1 parent 2c45800 commit 9919b2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 10 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@ Generator.prototype.extraModules = function extraModules() {
}
};

Generator.prototype.appJs = function appJs() {
this.indexFile = this.appendFiles({
html: this.indexFile,
fileType: 'js',
optimizedPath: 'scripts/scripts.js',
sourceFileList: ['scripts/app.js', 'scripts/controllers/main.js'],
searchPath: ['.tmp', 'app']
});
};

Generator.prototype.createIndexHtml = function createIndexHtml() {
this.write(path.join(this.appPath, 'index.html'), this.indexFile);
};
Expand Down
5 changes: 0 additions & 5 deletions templates/common/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,5 @@

<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>

<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/app.js"></script>
<script src="scripts/controllers/main.js"></script>
<!-- endbuild -->
</body>
</html>

0 comments on commit 9919b2d

Please sign in to comment.