You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
angular-contenteditable/Gruntfile.coffee

56 lines
1.8 KiB
CoffeeScript

11 years ago
# global module:false
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
# Metadata.
pkg: grunt.file.readJSON 'package.json'
meta:
src: 'src/'
test: 'test/'
target: 'dist/'
banner: '/*! <%= pkg.title || 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.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n'
clean: target: src: ['<%= meta.target %>*js']
coffeelint:
src:
files: src: ['<%= meta.src %>**/*.coffee']
options: max_line_length: level: 'warn'
test:
files: src: ['<%= meta.src %>**/*.coffee']
options: max_line_length: level: 'warn'
11 years ago
coffee: src:
options: bare: true
files:
'<%= meta.target %>radians.js': [
'<%= meta.src %>**/*.coffee'
]
karma:
unit: configFile: 'config/karma-unit.coffee'
e2e: configFile: 'config/karma-e2e.coffee'
unit_ci:
configFile: 'config/karma-unit.coffee'
singleRun: true
e2e_ci:
configFile: 'config/karma-e2e.coffee'
singleRun: true
browsers: ['PhantomJS']
11 years ago
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-karma'
grunt.loadNpmTasks 'grunt-contrib-jshint'
11 years ago
grunt.registerTask 'test', ['karma']
11 years ago
grunt.registerTask 'lint', ['coffeelint']
grunt.registerTask 'build', ['clean', 'lint', 'coffee']
11 years ago
grunt.registerTask 'default', ['lint' , 'test', 'build', 'jshint']