Commit 20b99f26 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] add query string parameter feature for BS and release v2.1.0

parent 4bb569ae
......@@ -85,7 +85,7 @@ gulp
```
you will get a development environment with BrowserSync and some watchers that will automatically trigger tasks when you change sourcefiles. If you are not familliar with [BrowserSync](http://www.browsersync.io/), you should definitely check it out.
BrowserSync will basically start up a server and provide you with a URL which points to your project. If you are running a standalone project, BrowserSync will simply serve files from your project root. If you are running a TYPO3 project, BrowserSync will be set up with a proxy that tunnels request to your development URL. You can change this URL inside gulp/browser-sync.js. Apart from the livereload functionallity, BrowserSync offers some other cool features like syncing Mouse- and Keyboardevents. Since version 2.0.0, there is also a UI with a lot more to discover. You should read about this on the BrowserSync website.
BrowserSync will basically start up a server and provide you with a URL which points to your project. If you are running a standalone project, BrowserSync will simply serve files from your project root. If you are running a TYPO3 project, BrowserSync will be set up with a proxy that tunnels request to your development URL. You can change this URL inside gulp/browser-sync.js. BrowserSync will also disable the TYPO3 cache and the ([scriptmerger extension](http://typo3.org/extensions/repository/view/scriptmerger)) for every request, by setting query string parameters. Apart from the livereload functionallity, BrowserSync offers some other cool features like syncing Mouse- and Keyboardevents. Since version 2.0.0, there is also a UI with a lot more to discover. You should read about this on the BrowserSync website.
Once the default tasks started and BrowserSync is ready to serve your files, all changes you make to you CSS and JavaScript files will automatically injected into the browser, without reloading the site. Gulp will automatically figure out the extension you made changes to and pass the information to the corresponding task.
......@@ -114,7 +114,8 @@ Once the default tasks started and BrowserSync is ready to serve your files, all
* browser-sync
* [command: 'gulp browser-sync']
* BrowserSync starts a webserver with built-in code sync and action sync. Refer to
[the BrowserSync website](http://www.browsersync.io/) to learn more about it.
[the BrowserSync website](http://www.browsersync.io/) to learn more about it. BrowserSync will also add query string
parameters to every request that disable the TYPO4 cache and the ([scriptmerger extension](http://typo3.org/extensions/repository/view/scriptmerger)).
#### config files
The gulp-sgalinski generator will generate the following config files:
......@@ -157,6 +158,7 @@ on your ignorelist (.gitignore, .svnignore, etc.):
## Changelog
* 2015-02-22   v2.1.0   add cache and scriptmerger deactivation via query string params
* 2015-02-15   v2.0.0   get rid of compass + update browsersync + add global watcher
* 2015-01-19   v1.1.0   major changes to the scaffolded gulp tasks + massive README
* 2015-01-13   v1.0.0   add livereload as browsersync alternative [first stable version]
......
......@@ -8,7 +8,17 @@ gulp.task('browser-sync', function() {
server: {
baseDir: '.'
}<% } else { %>
proxy: '<%= devUrl %>'
proxy: '<%= devUrl %>',
middleware: function (req, res, next) {
var conjunction;
if (req.url.match(/\?/)) {
conjunction = '&';
} else {
conjunction = '?';
}
req.url = req.url + conjunction + "no_cache=1&disableScriptmerger=1";
next();
}
<% } %>
});
});
{
"name": "generator-gulp-sgalinski",
"version": "2.0.2",
"version": "2.1.0",
"description": "Yeoman generator",
"license": "MIT",
"main": "app/index.js",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment