-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Closes #8] Update to support Underscore 1.6.0
- Using same version as Underscore so it's easy to know what version you're going against (will use revision for UKO-specific fixes) - Fixed nuspec KO version - Updated Grunt - Added tests for new functions
- Loading branch information
1 parent
3223717
commit 91cde1b
Showing
11 changed files
with
114 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/*global module:false*/ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
jslint: { | ||
client: { | ||
src: [ | ||
'src/**/*.js' | ||
] | ||
} | ||
}, | ||
|
||
concat: { | ||
options: { | ||
stripBanners: true, | ||
banner: '// <%= pkg.name %> - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
'<%= pkg.homepage ? "// " + pkg.homepage + "\\n" : "" %>' + | ||
'// Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;' + | ||
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n' | ||
}, | ||
dist: { | ||
src: ['src/underscore-ko.js'], | ||
dest: 'build/<%= pkg.name %>-<%= pkg.version %>.js', | ||
nonull: true | ||
} | ||
}, | ||
|
||
min: { | ||
dist: { | ||
src: ['build/<%= pkg.name %>-<%= pkg.version %>.js'], | ||
dest: 'build/<%= pkg.name %>-<%= pkg.version %>.min.js' | ||
} | ||
}, | ||
|
||
clean: ['build/*.js', 'build/*.nupkg'], | ||
|
||
shell: { | ||
nuget: { | ||
command: 'tools\\nuget pack UnderscoreKO.nuspec -Version <%= pkg.version %> -Output build', | ||
stdout: true | ||
} | ||
} | ||
}); | ||
|
||
// Exec task | ||
grunt.loadNpmTasks('grunt-shell'); | ||
grunt.loadNpmTasks('grunt-jslint'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-min'); | ||
grunt.loadNpmTasks('grunt-jasmine-node'); | ||
|
||
// Default task. | ||
grunt.registerTask('default', ['clean', 'concat', 'min', 'shell']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.