mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
35 lines
692 B
CoffeeScript
35 lines
692 B
CoffeeScript
module.exports = (grunt) ->
|
|
|
|
# Project configuration.
|
|
grunt.initConfig
|
|
coffee:
|
|
server:
|
|
expand: true,
|
|
flatten: false,
|
|
cwd: 'app/coffee',
|
|
src: ['**/*.coffee'],
|
|
dest: 'app/js/',
|
|
ext: '.js'
|
|
|
|
server_tests:
|
|
expand: true,
|
|
flatten: false,
|
|
cwd: 'test/unit/coffee',
|
|
src: ['**/*.coffee'],
|
|
dest: 'test/unit/js/',
|
|
ext: '.js'
|
|
|
|
mochaTest:
|
|
unit:
|
|
options:
|
|
reporter: process.env.MOCHA_RUNNER || "spec"
|
|
grep: grunt.option("grep")
|
|
require: 'coffee-script/register'
|
|
src: ['test.coffee']
|
|
|
|
|
|
grunt.loadNpmTasks 'grunt-contrib-coffee'
|
|
grunt.loadNpmTasks 'grunt-mocha-test'
|
|
|
|
grunt.registerTask 'test:unit', ['mochaTest:unit']
|
|
|