forked from spencermountain/compromise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
32 lines (26 loc) · 893 Bytes
/
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
banner: '/*! <%= pkg.name %> \n by @spencermountain\n <%= grunt.template.today("yyyy-mm-dd") %> */\n',
footer:""
},
dist: {
src: ['./lib/sentence.js', './lib/singularize.js', './lib/data/*.js','./lib/blacklist.js', './lib/recognizer.js', './lib/tokenizer.js', './lib/chunker.js', './lib/date_extractor.js', './lib/tagger.js'],
dest: './nlp.js'
}
},
uglify:{
do:{
src: ['./nlp.js'],
dest: './client_side/nlp.min.js'
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['concat','uglify']);
};