Showing with 16 additions and 37 deletions.
  1. +1 −2 LICENSE.txt
  2. +2 −3 README.md
  3. +11 −29 grunt.js
  4. +2 −3 package.json
@@ -1,5 +1,4 @@
Copyright 2012, 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,6 +1,5 @@
jquerymobile.com
================
# jquerymobile.com

### Build
## Building and Deploying

To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/).
@@ -1,33 +1,12 @@
var rimraf = require( "rimraf" );

module.exports = function( grunt ) {
"use strict";
grunt.loadNpmTasks( "grunt-clean" );
grunt.loadNpmTasks( "grunt-html" );
grunt.loadNpmTasks( "grunt-wordpress" );
grunt.loadNpmTasks( "grunt-jquery-content" );

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

grunt.initConfig({
clean: {
folder: "dist/"
},
htmllint: {
resources: "resources/**/*.html"
},
jshint: {
options: {
undef: true,
node: true
}
},
lint: {
grunt: "grunt.js"
},
watch: {
pages: {
files: "page/**/*.html",
tasks: "deploy"
}
},
"build-pages": {
all: grunt.file.expandFiles( "pages/**" )
},
@@ -39,8 +18,11 @@ grunt.initConfig({
}, grunt.file.readJSON( "config.json" ) )
});

grunt.registerTask( "default", "lint" );
grunt.registerTask( "build-wordpress", "check-modules clean lint build-pages build-resources");
grunt.registerTask( "deploy", "wordpress-deploy" );
grunt.registerTask( "clean", function() {
rimraf.sync( "dist" );
});

grunt.registerTask( "build", "build-pages build-resources" );
grunt.registerTask( "build-wordpress", "check-modules clean build" );

};
@@ -22,11 +22,10 @@
],
"dependencies": {
"grunt": "0.3.17",
"grunt-clean": "0.3.0",
"grunt-html": "0.1.1",
"grunt-wordpress": "1.2.1",
"grunt-jquery-content": "0.13.0",
"grunt-check-modules": "0.1.0"
"grunt-check-modules": "0.1.0",
"rimraf": "2.2.8"
},
"devDependencies": {},
"keywords": []