diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/.jshintrc | 13 | ||||
-rw-r--r-- | build/release/changelog-shell | 32 | ||||
-rw-r--r-- | build/release/release.js | 37 | ||||
-rw-r--r-- | build/tasks/build.js | 7 | ||||
-rw-r--r-- | build/tasks/testswarm.js | 26 |
5 files changed, 53 insertions, 62 deletions
diff --git a/build/.jshintrc b/build/.jshintrc deleted file mode 100644 index 9e6abf31d..000000000 --- a/build/.jshintrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "curly": true, - "eqnull": true, - "eqeqeq": true, - "expr": true, - "noarg": true, - "node": true, - "onevar": true, - "smarttabs": true, - "strict": false, - "trailing": true, - "undef": true -} diff --git a/build/release/changelog-shell b/build/release/changelog-shell index 9c9df9350..9f0f9b436 100644 --- a/build/release/changelog-shell +++ b/build/release/changelog-shell @@ -24,54 +24,86 @@ DELETE EVERYTHING ABOVE THE FOLLOWING LINE ## Build + ## Core & Utilities ### UI Core + ### Mouse + ### Widget Factory + ### Position + ## Interactions ### Draggable + ### Droppable + ### Resizable + ### Selectable + ### Sortable + ## Widgets ### Accordion + ### Autocomplete + ### Button + ### Datepicker + ### Dialog + +### Menu + + ### Progressbar + ### Slider + +### Spinner + + ### Tabs + +### Tooltip + + ## Effects + ### Individual effects + ## CSS Framework + ## Demos + ## Website + ### Download Builder diff --git a/build/release/release.js b/build/release/release.js index 77430d8d1..0e41702e9 100644 --- a/build/release/release.js +++ b/build/release/release.js @@ -1,5 +1,7 @@ #!/usr/bin/env node -/*global cat:true cd:true cp:true echo:true exec:true exit:true ls:true*/ +/*global cat:true cd:true echo:true exec:true exit:true*/ + +"use strict"; var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime, fs = require( "fs" ), @@ -41,9 +43,6 @@ walk([ section( "gathering contributors" ), gatherContributors, - section( "generating quick download" ), - generateQuickDownload, - section( "updating trac" ), updateTrac, confirm @@ -261,34 +260,6 @@ function gatherContributors() { echo( "Stored contributors in " + contributorsPath.cyan + "." ); } -function generateQuickDownload() { - var config, - downloadDir = repoDir + "/node_modules/download.jqueryui.com", - filename = "jquery-ui-" + newVersion + ".custom.zip", - destination = baseDir + "/" + filename; - - cd( downloadDir ); - - // Update jQuery UI version for download builder - config = JSON.parse( cat( "config.json" ) ); - config.jqueryUi = newVersion; - JSON.stringify( config ).to( "config.json" ); - - // Generate quick download - // TODO: Find a way to avoid having to clone jquery-ui inside download builder - if ( exec( "grunt prepare build" ).code !== 0 ) { - abort( "Error generating quick download." ); - } - cp( downloadDir + "/release/" + filename, destination ); - // cp() doesn't have error handling, so check for the file - if ( ls( destination ).length !== 1 ) { - abort( "Error copying quick download." ); - } - - // Go back to repo directory for consistency - cd( repoDir ); -} - function updateTrac() { echo( newVersion.cyan + " was tagged at " + tagTime.cyan + "." ); echo( "Close the " + newVersion.cyan + " Milestone with the above date and time." ); @@ -423,7 +394,7 @@ function abort( msg ) { function walk( methods ) { var method = methods.shift(); - function next( error ) { + function next() { if ( methods.length ) { walk( methods ); } diff --git a/build/tasks/build.js b/build/tasks/build.js index 3f3dd31c5..18e427a56 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -1,6 +1,9 @@ module.exports = function( grunt ) { -var path = require( "path" ); +"use strict"; + +var path = require( "path" ), + fs = require( "fs" ); grunt.registerTask( "manifest", "Generate jquery.json manifest files", function() { var pkg = grunt.config( "pkg" ), @@ -143,7 +146,7 @@ grunt.registerMultiTask( "zip", "Create a zip file for release", function() { opts: { cwd: 'dist' } - }, function( err, result ) { + }, function( err ) { if ( err ) { grunt.log.error( err ); done(); diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index 34c17d4f6..f76c5570d 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -1,6 +1,7 @@ -/*jshint node: true */ module.exports = function( grunt ) { +"use strict"; + var versions = { "git": "git", "1.8": "1.8.0 1.8.1 1.8.2", @@ -9,26 +10,23 @@ var versions = { }, tests = { "Accordion": "accordion/accordion.html", - "Accordion_deprecated": "accordion/accordion_deprecated.html", "Autocomplete": "autocomplete/autocomplete.html", "Button": "button/button.html", "Core": "core/core.html", - //"datepicker/datepicker.html", - //"dialog/dialog.html", - //"draggable/draggable.html", - //"droppable/droppable.html", + "Datepicker": "datepicker/datepicker.html", + "Dialog": "dialog/dialog.html", + "Draggable": "draggable/draggable.html", + "Droppable": "droppable/droppable.html", "Effects": "effects/effects.html", "Menu": "menu/menu.html", "Position": "position/position.html", - "Position_deprecated": "position/position_deprecated.html", "Progressbar": "progressbar/progressbar.html", - //"resizable/resizable.html", - //"selectable/selectable.html", - //"slider/slider.html", - //"sortable/sortable.html", + "Resizable": "resizable/resizable.html", + "Selectable": "selectable/selectable.html", + "Slider": "slider/slider.html", + "Sortable": "sortable/sortable.html", "Spinner": "spinner/spinner.html", "Tabs": "tabs/tabs.html", - "Tabs_deprecated": "tabs/tabs_deprecated.html", "Tooltip": "tooltip/tooltip.html", "Widget": "widget/widget.html" }; @@ -53,9 +51,9 @@ function submit( commit, tests, configFile, version, done ) { authToken: config.authToken, jobName: 'jQuery UI ' + version + '#<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>', runMax: config.runMax, - "runNames[]": Object.keys(tests), + "runNames[]": Object.keys( tests ), "runUrls[]": testUrls, - "browserSets[]": ["popular"] + "browserSets[]": [ "popular-no-ie6" ] }); } |