Skip to content

Commit c368fc4

Browse files
committed
v1.0.0
1 parent 251818f commit c368fc4

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
v1.0.0:
2+
date: 2016-03-04
3+
changes:
4+
- use predefined logger format with colored http status.
5+
- update deps and docs.
6+
- HTTP2 support.
7+
- other fixes.
18
v0.11.2:
29
date: 2015-08-03
310
changes:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# grunt-contrib-connect v0.11.2 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-connect.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-connect) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/3bp93hbs2rd5lwfd/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-connect/branch/master)
1+
# grunt-contrib-connect v1.0.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-connect.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-connect) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/3bp93hbs2rd5lwfd/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-connect/branch/master)
22

33
> Start a connect web server
44
55

66

77
## Getting Started
8-
This plugin requires Grunt `>=0.4.0`
98

109
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
1110

@@ -38,9 +37,9 @@ The port on which the webserver will respond. The task will fail if the specifie
3837

3938
#### protocol
4039
Type: `String`
41-
Default: `'http'`
40+
Default: `'http'`, `'http2'`
4241

43-
May be `'http'`, `'https'` or `'http2'`.
42+
May be `'http'`, `'http2'` or `'https'`.
4443

4544
#### hostname
4645
Type: `String`
@@ -298,15 +297,15 @@ grunt.registerTask('connect', 'Start a custom static web server.', function() {
298297
#### Support for HTTPS / HTTP2
299298

300299
A default certificate authority, certificate and key file are provided and pre-
301-
configured for use when `protocol` has been set to `https` or `http2`.
300+
configured for use when `protocol` has been set to `https`.
302301

303302
NOTE: No passphrase set for the certificate.
304303
If you are getting warnings in Google Chrome, add 'server.crt' (from 'node_modules/tasks/certs')
305304
to your keychain.
306305
In OS X, after you add 'server.crt', right click on the certificate,
307306
select 'Get Info' - 'Trust' - 'Always Trust', close window, restart Chrome.
308307

309-
For HTTPS livereload with [grunt-contrib-watch](https://github.com/gruntjs/grunt-contrib-watch)
308+
For HTTPS / HTTP2 livereload with [grunt-contrib-watch](https://github.com/gruntjs/grunt-contrib-watch)
310309
see the last example [here](https://github.com/gruntjs/grunt-contrib-watch#optionslivereload).
311310

312311
###### Advanced HTTPS / HTTP2 config
@@ -377,6 +376,7 @@ grunt.registerTask('jasmine-server', 'start web server for jasmine tests in brow
377376

378377
## Release History
379378

379+
* 2016-03-04   v1.0.0   use predefined logger format with colored http status. update deps and docs. HTTP2 support. other fixes.
380380
* 2015-08-03   v0.11.2   documentation fixes.
381381
* 2015-08-01   v0.11.1   fixes debug logging.
382382
* 2015-07-30   v0.11.0   update to connect 3.
@@ -403,4 +403,4 @@ grunt.registerTask('jasmine-server', 'start web server for jasmine tests in brow
403403

404404
Task submitted by ["Cowboy" Ben Alman](http://benalman.com)
405405

406-
*This file was generated on Fri Oct 16 2015 18:58:27.*
406+
*This file was generated on Fri Mar 04 2016 21:32:37.*

docs/connect-examples.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ grunt.registerTask('connect', 'Start a custom static web server.', function() {
9999
});
100100
```
101101

102-
## Support for HTTPS
102+
## Support for HTTPS / HTTP2
103103

104104
A default certificate authority, certificate and key file are provided and pre-
105105
configured for use when `protocol` has been set to `https`.
@@ -110,10 +110,10 @@ to your keychain.
110110
In OS X, after you add 'server.crt', right click on the certificate,
111111
select 'Get Info' - 'Trust' - 'Always Trust', close window, restart Chrome.
112112

113-
For HTTPS livereload with [grunt-contrib-watch](https://github.com/gruntjs/grunt-contrib-watch)
113+
For HTTPS / HTTP2 livereload with [grunt-contrib-watch](https://github.com/gruntjs/grunt-contrib-watch)
114114
see the last example [here](https://github.com/gruntjs/grunt-contrib-watch#optionslivereload).
115115

116-
#### Advanced HTTPS config
116+
#### Advanced HTTPS / HTTP2 config
117117

118118
If the default certificate setup is unsuitable for your environment, OpenSSL
119119
can be used to create a set of self-signed certificates with a local ca root.
@@ -148,7 +148,7 @@ grunt.initConfig({
148148
connect: {
149149
server: {
150150
options: {
151-
protocol: 'https',
151+
protocol: 'https', // or 'http2'
152152
port: 8443,
153153
key: grunt.file.read('server.key').toString(),
154154
cert: grunt.file.read('server.crt').toString(),

docs/connect-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The port on which the webserver will respond. The task will fail if the specifie
1010
Type: `String`
1111
Default: `'http'`
1212

13-
May be `'http'` or `'https'`.
13+
May be `'http'`, `'http2'` or `'https'`.
1414

1515
## hostname
1616
Type: `String`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-contrib-connect",
33
"description": "Start a connect web server",
4-
"version": "0.11.2",
4+
"version": "1.0.0",
55
"author": {
66
"name": "Grunt Team",
77
"url": "http://gruntjs.com/"

0 commit comments

Comments
 (0)