Commit 74aa3eb7 authored by Dave Methvin's avatar Dave Methvin

Fix build until next grunt rc, disable compare_size.

parent a3055f3d
...@@ -22,13 +22,14 @@ module.exports = function( grunt ) { ...@@ -22,13 +22,14 @@ module.exports = function( grunt ) {
files: distpaths files: distpaths
}, },
selector: { selector: {
"src/selector.js": [ destFile: "src/selector.js",
"src/sizzle-jquery.js", apiFile: "src/sizzle-jquery.js",
"src/sizzle/sizzle.js" srcFile: "src/sizzle/sizzle.js"
]
}, },
build: { build: {
"dist/jquery.js": [ all:{
dest: "dist/jquery.js",
src: [
"src/intro.js", "src/intro.js",
"src/core.js", "src/core.js",
"src/callbacks.js", "src/callbacks.js",
...@@ -56,6 +57,7 @@ module.exports = function( grunt ) { ...@@ -56,6 +57,7 @@ module.exports = function( grunt ) {
"src/exports.js", "src/exports.js",
"src/outro.js" "src/outro.js"
] ]
}
}, },
jshint: { jshint: {
...@@ -143,13 +145,13 @@ module.exports = function( grunt ) { ...@@ -143,13 +145,13 @@ module.exports = function( grunt ) {
}); });
// Build src/selector.js // Build src/selector.js
grunt.registerMultiTask( "selector", "Build src/selector.js", function() { grunt.registerTask( "selector", "Build src/selector.js", function() {
var name = this.file.dest, var cfg = grunt.config("selector"),
files = this.file.src, name = cfg.destFile,
sizzle = { sizzle = {
api: grunt.file.read( files[0] ), api: grunt.file.read( cfg.apiFile ),
src: grunt.file.read( files[1] ) src: grunt.file.read( cfg.srcFile )
}, },
compiled, parts; compiled, parts;
...@@ -241,13 +243,14 @@ module.exports = function( grunt ) { ...@@ -241,13 +243,14 @@ module.exports = function( grunt ) {
"build", "build",
"Concatenate source (include/exclude modules with +/- flags), embed date/version", "Concatenate source (include/exclude modules with +/- flags), embed date/version",
function() { function() {
// Concat specified files. // Concat specified files.
var compiled = "", var compiled = "",
modules = this.flags, modules = this.flags,
optIn = !modules["*"], optIn = !modules["*"],
explicit = optIn || Object.keys(modules).length > 1, explicit = optIn || Object.keys(modules).length > 1,
name = this.file.dest, name = this.data.dest,
src = this.file.srcRaw, src = this.data.src,
deps = {}, deps = {},
excluded = {}, excluded = {},
version = grunt.config( "pkg.version" ), version = grunt.config( "pkg.version" ),
...@@ -479,7 +482,7 @@ module.exports = function( grunt ) { ...@@ -479,7 +482,7 @@ module.exports = function( grunt ) {
grunt.loadNpmTasks("grunt-contrib-uglify"); grunt.loadNpmTasks("grunt-contrib-uglify");
// Default grunt // Default grunt
grunt.registerTask( "default", [ "update_submodules", "selector", "build:*:*", "jshint", "uglify", "dist:*", "compare_size" ] ); grunt.registerTask( "default", [ "update_submodules", "selector", "build:*:*", "jshint", "uglify", "dist:*" ] );
// Short list as a high frequency watch task // Short list as a high frequency watch task
grunt.registerTask( "dev", [ "selector", "build:*:*", "jshint" ] ); grunt.registerTask( "dev", [ "selector", "build:*:*", "jshint" ] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment