Skip to content

Commit f296cbc

Browse files
committed
Use pyftpsync 2.0
1 parent 7e27454 commit f296cbc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Gruntfile.coffee

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#jshint node: true, camelcase: false
1+
#jshint node: true, camelcase: false
22
"use strict"
33
module.exports = (grunt) ->
44
grunt.initConfig
5-
pkg:
5+
pkg:
66
grunt.file.readJSON("package.json")
77

88
connect:
@@ -32,7 +32,9 @@ module.exports = (grunt) ->
3232

3333
upload:
3434
# FTP upload the demo files (requires https://github.com/mar10/pyftpsync)
35-
cmd: "pyftpsync --progress upload . ftp://www.wwwendt.de/tech/demo/jquery-contextmenu --delete-unmatched --omit dist,node_modules,.*,_*"
35+
stdin: true # Allow interactive console
36+
cmd: "pyftpsync --progress upload . ftp://www.wwwendt.de/tech/demo/jquery-contextmenu --delete-unmatched --exclude dist,node_modules,.*,_*"
37+
# cmd: "pyftpsync --progress upload . ftp://www.wwwendt.de/tech/demo/jquery-contextmenu --delete-unmatched --omit dist,node_modules,.*,_*"
3638

3739
jscs:
3840
src: ["jquery.ui-contextmenu.js", "test/tests.js"]
@@ -104,7 +106,7 @@ module.exports = (grunt) ->
104106
# "http://localhost:9999/test/index.html",
105107
# "http://localhost:9999/test/index-jquery-ui-1-10.html"
106108
]
107-
109+
108110
# username: process.env.SAUCE_USERNAME,
109111
# key: process.env.SAUCE_ACCESS_KEY,
110112
build: process.env.TRAVIS_JOB_ID
@@ -209,7 +211,7 @@ module.exports = (grunt) ->
209211
# Load "grunt*" dependencies
210212
for key of grunt.file.readJSON("package.json").devDependencies
211213
grunt.loadNpmTasks key if key isnt "grunt" and key.indexOf("grunt") is 0
212-
214+
213215
grunt.registerTask "server", ["connect:demo"]
214216
grunt.registerTask "dev", ["connect:dev", "watch:dev"]
215217
grunt.registerTask "test", ["jshint", "jscs", "qunit"]
@@ -222,7 +224,7 @@ module.exports = (grunt) ->
222224
grunt.registerTask "travis", ["test", "sauce"]
223225
grunt.registerTask "default", ["test"]
224226
grunt.registerTask "ci", ["test"] # Called by 'npm test'
225-
227+
226228
# "sauce",
227229
grunt.registerTask "build", ["exec:tabfix", "test", "uglify"]
228230
grunt.registerTask "upload", ["build", "exec:upload"]

0 commit comments

Comments
 (0)