Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Gulp task enhancements - template cache #853

Merged
merged 1 commit into from
Aug 28, 2015

Conversation

rhutchison
Copy link
Contributor

Orig: #704 - 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

lint is already referenced in build task.

missing env:prod

add client/server test tasks

Add template cache and autoprefixer.

Update .jshintrc
@rhutchison rhutchison mentioned this pull request Aug 26, 2015
15 tasks
@codydaig
Copy link
Member

LGTM

@vaucouleur
Copy link
Contributor

This is brillant 👍 thanks @rhutchison

Disabling the template cache is just a matter of removing 'templatecache' from the runSequence ? (for large web sites with lots of content)

@rhutchison
Copy link
Contributor Author

@vaucouleur correct. Glad you like it! Let me know your experience. I have not seen any downsides yet.

@vaucouleur
Copy link
Contributor

@rhutchison I tested it with a mobile phone client, just to make the test a little bit more interesting, and it works just fine. Instinctively I would have tried to leverage the browser cache, and have more of a "pay as you use/go" approach -- but it's not obvious whether this is actually (easily) doable. Your approach seems to be recommended elsewhere, and it's easy to disable it, so it's all good. Thanks !

@lirantal lirantal added this to the 0.4.x milestone Aug 27, 2015
@lirantal lirantal self-assigned this Aug 27, 2015
@lirantal
Copy link
Member

Great!

lirantal added a commit that referenced this pull request Aug 28, 2015
Gulp task enhancements - template cache
@lirantal lirantal merged commit 85d2a1a into meanjs:master Aug 28, 2015
@ilanbiala ilanbiala modified the milestones: 0.4.1, 0.4.x Aug 31, 2015
@rhutchison rhutchison deleted the task-enhancements branch September 16, 2015 02:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants