1
- # jshint node: true, camelcase: false
1
+ # jshint node: true, camelcase: false
2
2
" use strict"
3
3
module .exports = (grunt ) ->
4
4
grunt .initConfig
5
- pkg :
5
+ pkg :
6
6
grunt .file .readJSON (" package.json" )
7
7
8
8
connect :
@@ -32,7 +32,9 @@ module.exports = (grunt) ->
32
32
33
33
upload :
34
34
# 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,.*,_*"
36
38
37
39
jscs :
38
40
src : [" jquery.ui-contextmenu.js" , " test/tests.js" ]
@@ -104,7 +106,7 @@ module.exports = (grunt) ->
104
106
# "http://localhost:9999/test/index.html",
105
107
# "http://localhost:9999/test/index-jquery-ui-1-10.html"
106
108
]
107
-
109
+
108
110
# username: process.env.SAUCE_USERNAME,
109
111
# key: process.env.SAUCE_ACCESS_KEY,
110
112
build : process .env .TRAVIS_JOB_ID
@@ -209,7 +211,7 @@ module.exports = (grunt) ->
209
211
# Load "grunt*" dependencies
210
212
for key of grunt .file .readJSON (" package.json" ).devDependencies
211
213
grunt .loadNpmTasks key if key isnt " grunt" and key .indexOf (" grunt" ) is 0
212
-
214
+
213
215
grunt .registerTask " server" , [" connect:demo" ]
214
216
grunt .registerTask " dev" , [" connect:dev" , " watch:dev" ]
215
217
grunt .registerTask " test" , [" jshint" , " jscs" , " qunit" ]
@@ -222,7 +224,7 @@ module.exports = (grunt) ->
222
224
grunt .registerTask " travis" , [" test" , " sauce" ]
223
225
grunt .registerTask " default" , [" test" ]
224
226
grunt .registerTask " ci" , [" test" ] # Called by 'npm test'
225
-
227
+
226
228
# "sauce",
227
229
grunt .registerTask " build" , [" exec:tabfix" , " test" , " uglify" ]
228
230
grunt .registerTask " upload" , [" build" , " exec:upload" ]
0 commit comments