-
Notifications
You must be signed in to change notification settings - Fork 2k
Gulp task enhancements - template cache #704
Conversation
…r enabling GooglePlus API - Fixes meanjs#535
@ilanbiala please review |
LGTM. |
1b3b291
to
5a15f92
Compare
@@ -9,7 +9,7 @@ | |||
"curly": false, // Require {} for every new block or scope. | |||
"eqeqeq": true, // Require triple equals i.e. `===`. | |||
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` | |||
"latedef": true, // Prohibit variable use before definition. | |||
"latedef": "nofunc", // Prohibit variable use before definition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "nofunc" mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to ignore function declarations - jshint/jshint#941
Taken from angular-styleguide
c943a28
to
e1ca1aa
Compare
@rhutchison squash? |
@ilanbiala Wanted to give you time to review. You want it down to 1 commit? |
Yes please. |
6cf9955
to
ce5fca6
Compare
@ilanbiala ready for final review |
@rhutchison I like the idea and the implementation seems fine, but I'm trying to figure out how much the performance actually increases. Is there any way for you to maybe test a couple pages and see if it is indeed faster and by how much? |
it will avoid the html download on every page load, so the rendering is much quicker. The performance will be based on the client internet connection/speed. |
Ok, until we remove Grunt, will this cause issues in the JS? |
@rhutchison since this only adds features and doesn't break anything, I'm moving this to 0.4.x and if it's ready for 0.4.0 in the next few days I'll move it back and merge, but there really isn't much rush to shove it out. |
Fix the Google OAuth Redirect Bug - meanjs#535
ce5fca6
to
4e41dc5
Compare
@lirantal @ilanbiala I tested 'grunt prod' with these changes. I didn't notice any issues. |
LGTM |
@rhutchison yeah of course it will be pretty much ok since most of the change is on gulp. Also, why do we need |
template cache will look for all of the html files in the application and then compile them in to javascript statements and minify with the app, so all of the html is downloaded with the app. If you look at network traffic when you are using the app, whenever you change state, you will see the html is fetched, which will slow down the initial state load. What angular does is when the html is fetched from the server, it is put in template cache. This does that step at build time (on production). |
so basically template cache means all the HTML templates for Angular actually downloaded when the app first loads so that it doesn't need to go and download them later on? |
Link to editorconfig.org from CONTRIBUTING.md
Added Deploy To Bluemix button to the README
[fix] Was storing a 6 char password in plain text [fixes meanjs#829]
Correct <br /> Tags and set Title
…l not be mapped. Username will be generated from first initial of first name and last name. .jshint latedef set to nofunc.
current implementation does double redirect due to '#!'
local.example.js still has old fb auth callback
[Bug] Previous State (History)
mask exception route for 404 responses.
…links Refreshing the M.E.A.N links and description in the homepage
Added Auth Interceptor tests cleaned up test Update routes
remove data prefix from attributes. fix tests
Unauthorized client side routing
Facebook authentication
client-side form validation with ng-messages.
lint is already referenced in build task. missing env:prod add client/server test tasks Add template cache and autoprefixer. Update .jshintrc
4c007e3
to
1fa9776
Compare
Reopening against master |
These are updates to gulp build automation.
Gulp Template Cache
Added angular-templatecache to cache templates for prod environment and combine with application.min.js. No more html files loaded in prod.
Auto Prefixer
As of bootstrap 3.2, vendor prefixes are deprecated in favor of autoprefixer.
Ref: https://github.com/twbs/bootstrap/blob/master/less/mixins/vendor-prefixes.less#L3