mirror of
https://github.com/videojs/video.js.git
synced 2025-04-17 12:06:22 +02:00
Merge pull request #1112 from seniorflexdeveloper/feature/grunt-connect
Grunt Connect
This commit is contained in:
commit
87ee28e6cb
@ -183,15 +183,24 @@ cp sandbox/index.html.example sandbox/index.html
|
|||||||
open sandbox/index.html
|
open sandbox/index.html
|
||||||
```
|
```
|
||||||
|
|
||||||
> #### NOTE: Testing Flash Locally in Chrome
|
|
||||||
> Chrome 21+ (as of 2013/01/01) doens't run Flash files that are local and loaded into a locally accessed page (file:///).
|
### Testing Locally
|
||||||
|
A simple Connect server is available via the Grunt plugin. The commands below will allow you to setup a test sandbox and begin development.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp sandbox/index.html.example sandbox/index.html
|
||||||
|
grunt connect
|
||||||
|
open http://localhost:9999/sandbox/index.html
|
||||||
|
```
|
||||||
|
|
||||||
|
> NOTES regarding local testing in Chrome 21+ (as of 2013/01/01)
|
||||||
|
> Flash files that are local and loaded into a locally accessed page (file:///) will NOT run.
|
||||||
> To get around this you can do either of the following:
|
> To get around this you can do either of the following:
|
||||||
>
|
>
|
||||||
> 1. Do your development and testing using a local HTTP server.
|
> 1. Do your development and testing using a local HTTP server. See Grunt commands above.
|
||||||
>
|
>
|
||||||
> 2. [Disable the version of Flash included with Chrome](http://helpx.adobe.com/flash-player/kb/flash-player-google-chrome.html#How_can_I_run_debugger_or_alternate_versions_of_Flash_Player_in_Google_Chrome) and enable a system-wide version of Flash instead.
|
> 2. [Disable the version of Flash included with Chrome](http://helpx.adobe.com/flash-player/kb/flash-player-google-chrome.html#How_can_I_run_debugger_or_alternate_versions_of_Flash_Player_in_Google_Chrome) and enable a system-wide version of Flash instead.
|
||||||
|
|
||||||
|
|
||||||
Commit and push changes as you go (using git directly). Write thorough descriptions of your changes in your commit messages.
|
Commit and push changes as you go (using git directly). Write thorough descriptions of your changes in your commit messages.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -71,6 +71,14 @@ module.exports = function(grunt) {
|
|||||||
files: [ 'src/**/*', 'test/unit/*.js', 'Gruntfile.js' ],
|
files: [ 'src/**/*', 'test/unit/*.js', 'Gruntfile.js' ],
|
||||||
tasks: 'dev'
|
tasks: 'dev'
|
||||||
},
|
},
|
||||||
|
connect: {
|
||||||
|
dev: {
|
||||||
|
options: {
|
||||||
|
port: 9999,
|
||||||
|
keepalive: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
copy: {
|
copy: {
|
||||||
minor: {
|
minor: {
|
||||||
files: [
|
files: [
|
||||||
@ -183,6 +191,7 @@ module.exports = function(grunt) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
grunt.loadNpmTasks('grunt-contrib-qunit');
|
grunt.loadNpmTasks('grunt-contrib-qunit');
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt-cli": "~0.1.0",
|
"grunt-cli": "~0.1.0",
|
||||||
"grunt": "~0.4",
|
"grunt": "~0.4",
|
||||||
|
"grunt-contrib-connect": "~0.7.1",
|
||||||
"grunt-contrib-jshint": "~0.4.3",
|
"grunt-contrib-jshint": "~0.4.3",
|
||||||
"grunt-contrib-watch": "~0.1.4",
|
"grunt-contrib-watch": "~0.1.4",
|
||||||
"grunt-contrib-qunit": "~0.2.1",
|
"grunt-contrib-qunit": "~0.2.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user