Commit Graph

24 Commits

Author SHA1 Message Date
Austin Pray
7b54b36afd Adds get_path method to JsonManifest 2015-01-31 12:08:13 -06:00
Austin Pray
979b99f397 reconcile bower dependency versions with CDN url 2015-01-31 00:33:07 -06:00
Austin Pray
f93a1f2c8c Memoize asset_path function
Previously roots would do a file operation each time asset_path is
called. Now it will only parse the json manifest one time per program
execution.

Extract json reading to class that can be used to read bower.json
2015-01-30 23:25:55 -06:00
Austin Pray
c85d059239 Switches from livereload to browsersync
Formatting
Removes references to livereload
Removes enqueued livereload client
2015-01-28 09:22:05 -06:00
Austin Pray
d5d2d02459 Fixes livereload
If the environment is development -> try loading the livereload client
being served by `gulp watch`
2015-01-24 13:17:25 -06:00
Austin Pray
c95261e8a8 Merge branch '8.0.0' of github.com:roots/roots into fix-gulp-rev
Conflicts:
	gulpfile.js
	package.json
2015-01-24 11:41:59 -06:00
Ben Word
f4d64d23c9 Update PHP files to pass coding standards 2015-01-24 00:48:50 -06:00
Austin Pray
c60b9052bf Enhance asset revving
conditional asset revving based on --production
make assets.php respect new asset revving flow
2015-01-23 03:13:01 -06:00
Austin Pray
1f098c242b Safe console.log 2015-01-21 10:41:46 -06:00
Scott Walkinshaw
4467d41325 Improve Google Analytics conditional loading
The current logic for condtionally including the GA snippet is confusing
and bit inconsistent. In development you would see logging when the
snippet wasn't included but this wouldn't happen if you were a logged in
admin.

Now there's only two cases:

1. Production non admin user: GA snippet is loaded.
2. Anything else (development or admin user): log output
2015-01-20 23:35:01 -05:00
Austin Pray
c6a0f6eab9 Reworks asset revving
fixes https://github.com/roots/roots/issues/1266
2015-01-19 15:19:26 -06:00
Ben Word
67f3811a6d app.js -> main.js 2015-01-18 17:30:49 -06:00
Ben Word
95cbd1713d Use minified jQuery
See 3a4ae77b1e (commitcomment-9235183)
2015-01-18 17:08:38 -06:00
Ben Word
a903e08b86 Use short array syntax 2015-01-18 16:45:18 -06:00
Ben Word
203c4c39e0 Use short echo syntax, bump required PHP version to 5.4 2015-01-18 16:29:23 -06:00
Ben Word
587fbf6c35 Add namespace 2015-01-10 14:49:46 -06:00
Ben Word
030c084134 Rename to Sage 2015-01-09 20:52:29 -06:00
Ben Word
fcc685f9df Update to jQuery 1.11.2 2015-01-06 11:54:18 -06:00
Joe Fletcher
41e9f3ea68 update comments now that jQuery & Modernizr load in the footer 2014-12-05 14:34:11 -08:00
Austin Pray
44f69cf0a5 Fixes modernizr not being enqueued
https://github.com/roots/roots/issues/1223
https://github.com/roots/roots/issues/1223#issuecomment-65754009
2014-12-05 01:00:07 -06:00
Austin Pray
e2091ef880 Implement JSON file based asset pipeline
Adds manifest.json which contains all of the mappings for the assets
ref: https://github.com/roots/roots/pull/1138#issuecomment-62593715

Prune and update NPM deps
2014-11-24 12:42:41 -06:00
Austin Pray
75db78a9a1 Remove disparity between dev and prod gulp tasks
removes `gulp dev` in favor of `gulp`

adds `gulp --rev` to produce revved asset manifest

adds `gulp --tasks` to the readme

removes postinstall script
removes bower dep
2014-11-24 12:42:30 -06:00
Austin Pray
3a4ae77b1e Reorganizes asset file structure
Separates assets into
- Source assets: `assets`
- Compiled assets: `dist`

Edits assets.php to reflect changes

Removes '.min' from filenames

Fixes:
- removes 'clean' from build step.
2014-11-24 12:34:11 -06:00
Ben Word
e8822a2d67 Asset improvements (gulp)
Ref #1149 & https://github.com/roots/roots/blob/assets-improvements/lib/assets.php
2014-10-27 18:45:35 -05:00