Showing with 9 additions and 17 deletions.
  1. +1 −2 LICENSE.txt
  2. +8 −14 grunt.js
  3. +0 −1 package.json
@@ -1,5 +1,4 @@
Copyright 2011, 2014 jQuery Foundation and other contributors,
https://jquery.org/
Copyright jQuery Foundation and other contributors, https://jquery.org/

This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
@@ -1,19 +1,16 @@
var config = require( "./lib/config" );
var path = require( "path" );
var path = require( "path" ),
rimraf = require( "rimraf" ),
config = require( "./lib/config" );

module.exports = function( grunt ) {

var async = grunt.utils.async;

grunt.loadNpmTasks( "grunt-wordpress" );
grunt.loadNpmTasks( "grunt-clean" );
grunt.loadNpmTasks( "grunt-jquery-content" );
grunt.loadNpmTasks( "grunt-check-modules" );

grunt.initConfig({
clean: {
wordpress: "dist/"
},
lint: {
grunt: "grunt.js",
src: [ "lib/**", "scripts/**" ]
@@ -22,12 +19,6 @@ grunt.initConfig({
grunt: { options: grunt.file.readJSON( ".jshintrc" ) },
src: { options: grunt.file.readJSON( ".jshintrc" ) }
},
watch: {
docs: {
files: "pages/**",
tasks: "docs"
}
},
test: {
files: [ "test/**/*.js" ]
},
@@ -42,6 +33,10 @@ grunt.initConfig({
}, config.wordpress )
});

grunt.registerTask( "clean", function() {
rimraf.sync( "dist" );
});

// We only want to sync the documentation, so we override wordpress-get-postpaths
// to only find pages. This ensures that we don't delete all of the plugin posts.
grunt.registerHelper( "wordpress-get-postpaths", function( fn ) {
@@ -113,8 +108,7 @@ grunt.registerTask( "sync-docs", function() {
// clean-all will delete EVERYTHING, including the plugin registery. This is
// useful only for development if you want a clean slate to test from.
grunt.registerTask( "clean-all", function() {
var rimraf = require( "rimraf" ),
retry = require( "./lib/retrydb" );
var retry = require( "./lib/retrydb" );

// clean repo checkouts
rimraf.sync( config.repoDir );
@@ -19,7 +19,6 @@
"grunt-wordpress": "1.2.1",
"grunt-check-modules": "0.1.0",
"grunt-jquery-content": "0.13.0",
"grunt-clean": "0.3.0",
"simple-log": "1.1.0"
}
}