-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add maven back & front build integration (#65)
- Add frontend-maven-plugin - Add url path mandatory parameter on both maven package and grunt build processes - Add 'dist' directory (front build folder) to war file - This was accomplished by adding this folder to the maven package lifecycle - Fix Spring filter to match API paths only (/api/v1/*) - Frontend filter will be done with frontend tools - Update Gruntfile.js - Update jsrev task to load requirejs components (controllers, services and directives) based on the specified path where the app will be deployed (for example, '/' or '/grupo1') - Fix some Gruntfile issues - Requirejs module packager not updated. See Notes (2) for more information - Update views paths on both routes.js and directives' templateUrl field - Update absolute paths ('/views/home.html') to relative paths ('views/home.html') - Update karma configuration file - Genereate symlink inside app's folder pointing to bower_components folder when running `karma start`. See Notes (1) for more information - Update README.md - Fix logger - It was on DEBUG level. jpascale changed this and mmercado approved its PR. We have to be careful about this changes. - Update WebConfig parameters for stage deploy - Exclude dependency from main's pom - This dependency is excluded to avoid the following warning from the Tomcat server: INFO:validateJarFile(/home/matias/Programs/apache-tomcat-7.0.68/ webapps/grupo1/WEB-INF/lib/javax.el-api-2.2.4.jar)- jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:javax/el/Expression.class Notes: (1) Genereate symlink inside app's folder pointing to bower_components folder when running `karma start`. Why do we need this? basePath is used as a starting path for all other paths inside this config file. For example, with the following config basePath: 'app', files: [{pattern: index.js}, {pattern: ../other.js}], port: 9876 the files that will be match will be '<project_path>/app/index.html' '<project_path>/other.html' However, the files will be served as: http://localhost:9876/base/index.js http://localhost:9876/absolute/absoultePathToProject/other.js Due to we need to set basePath to 'app' to be able to test directives with templateUrl, and to avoid the case of the 'other.js' example of above with bower_components, we need to make reference to the bower_components folder somehow. This 'somehow' was resolved to be a symlink. (2) Requirejs module packager not updated Test setting Gruntfile.js's requirejs:compile:options:modules also with the following values: {name:'controllers/BodyCtrl'}, {name: 'controllers/HomeCtrl'}, {name: 'controllers/LoginCtrl'} so as to compress all related files. However, this was causing some .js files to be merged with all of this files (like angular.js) and this increased each of these files sizes, doing the contrary effect that it was being looked for (speed up loading time). That's why it was decided to left the Gruntfile.js as it was.
- Loading branch information
1 parent
a925c47
commit 9c9fd70
Showing
25 changed files
with
277 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
$icon-font-path: "../bower_components/bootstrap-sass-official/assets/fonts/bootstrap/"; | ||
$fa-font-path: "/bower_components/font-awesome/fonts"; | ||
$icon-font-path: '../bower_components/bootstrap-sass-official/assets/fonts/bootstrap/'; | ||
$fa-font-path: '../bower_components/font-awesome/fonts'; | ||
// bower:scss | ||
@import 'bootstrap-sass-official/assets/stylesheets/_bootstrap.scss'; | ||
@import 'font-awesome/scss/font-awesome.scss'; | ||
@import 'bootstrap-sass-official/assets/stylesheets/bootstrap'; | ||
@import 'font-awesome/scss/font-awesome'; | ||
// endbower | ||
|
||
@import 'modules/variables/importer'; | ||
@import 'modules/common'; | ||
@import 'modules/_tables'; | ||
@import 'modules/tables'; | ||
@import 'modules/filters'; | ||
@import 'directives/navbar'; | ||
@import 'directives/sidebar'; | ||
@import 'directives/backdrop'; | ||
@import 'partials/index'; | ||
@import 'partials/home'; | ||
@import 'partials/students/_index'; |
Oops, something went wrong.