added beta task runner, and updated README

This commit is contained in:
Eric Rowell
2013-07-27 23:26:06 -07:00
parent e5c52a92f0
commit 7e660d0587
2 changed files with 21 additions and 3 deletions

View File

@@ -116,6 +116,23 @@ module.exports = function(grunt) {
dest: 'dist/kinetic-dev.js'
}]
},
beta: {
options: {
variables: {
version: '<%= pkg.version %>-beta',
date: '<%= grunt.template.today("yyyy-mm-dd") %>',
nodeParams: '<%= grunt.file.read("doc-includes/NodeParams.txt") %>',
containerParams: '<%= grunt.file.read("doc-includes/ContainerParams.txt") %>',
shapeParams: '<%= grunt.file.read("doc-includes/ShapeParams.txt") %>'
},
prefix: '@@'
},
files: [{
src: ['dist/kinetic-v<%= pkg.version %>-beta.js'],
dest: 'dist/kinetic-v<%= pkg.version %>-beta.js'
}]
},
prod1: {
options: {
variables: {
@@ -199,6 +216,7 @@ module.exports = function(grunt) {
// Tasks
grunt.registerTask('dev', ['clean', 'concat:dev', 'replace:dev']);
grunt.registerTask('beta', ['clean', 'concat:beta', 'replace:beta']);
grunt.registerTask('full', ['clean', 'concat:prod', 'uglify', 'replace:prod1', 'replace:prod2', 'replace:prod3']);
grunt.registerTask('test', ['concat:test']);
grunt.registerTask('hint', ['clean', 'concat:dev', 'replace:dev', 'jshint']);