renamed jquery.prompt

This commit is contained in:
Jaime Pillora
2013-04-04 13:13:08 +11:00
parent 255cca7e36
commit 8c0917498f
10 changed files with 637 additions and 3 deletions
+49
View File
@@ -0,0 +1,49 @@
fs = require("fs")
#global module:false
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('component.json')
banner:
"/** <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today(\"yyyy/mm/dd\") %>\n"+
" * <%= pkg.homepage %>\n" +
" * Copyright (c) <%= grunt.template.today(\"yyyy\") %> <%= pkg.author.name %> - MIT\n"+
" */"
coffee:
options:
bare: true
compile:
files:
'dist/<%= pkg.name %>.js': 'src/<%= pkg.name %>.coffee'
wrap:
dist:
src: ['dist/<%= pkg.name %>.js']
dest: '.'
wrapper: ["<%= banner %>\n(function(window,document,undefined) {\n","\n}(window,document));"]
uglify:
options:
stripBanners: true
banner: '<%= banner %>'
dist:
src: "dist/<%= pkg.name %>.js"
dest: "dist/<%= pkg.name %>.min.js"
watch:
scripts:
files: 'src/*.coffee'
tasks: 'default'
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.loadNpmTasks "grunt-contrib-uglify"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-wrap"
# Default task.
grunt.registerTask "default", "coffee wrap uglify".split(' ')