-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
38 lines (29 loc) · 1.19 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module.exports = function(grunt) {
// Load grunt-microlib config & tasks
var emberConfig = require('grunt-microlib').init.bind(this)(grunt);
grunt.loadNpmTasks('grunt-microlib');
// Custom phantomjs test task
this.registerTask('test:phantom', "Runs tests through the command line using PhantomJS", [
'buildNoVersion', 'tests']);
// Custom Node test task
this.registerTask('test', ['buildNoVersion', 'tests', 'connect', 'qunit']);
this.registerTask('default', ['buildNoVersion']);
this.registerTask('server', ['buildNoVersion', 'tests', 'connect', 'watch:server']);
var config = {
cfg: {
// Name of the project
name: 'rsvp-tools.js',
// Name of the root module (i.e. 'rsvp-tools' -> 'lib/rsvp-tools.js')
barename: 'rsvp-tools',
// Name of the global namespace to export to
namespace: 'rsvpTools'
},
env: process.env,
pkg: grunt.file.readJSON('package.json'),
browserify: require('./options/browserify.js')
};
// Merge config into emberConfig, overwriting existing settings
grunt.initConfig(grunt.util._.merge(emberConfig, config));
// Load custom tasks from NPM
grunt.loadNpmTasks('grunt-browserify');
};