-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathGruntfile.js
69 lines (66 loc) · 2.59 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = function ( grunt ) {
grunt.loadNpmTasks('grunt-terser');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
terser: {
options: {
mangle: false
},
main: {
files: {
'dist/cer-transformers.js': [ 'src/cer-transformers.js' ],
'dist/constants.js': [ 'src/constants.js' ],
'dist/feature.js': [ 'src/feature.js' ],
'dist/load-cer-meta-model.js': [ 'src/load-cer-meta-model.js' ],
'dist/load-core-model.js': [ 'src/load-core-model.js' ],
'dist/load-negation-model.js': [ 'src/load-negation-model.js' ],
'dist/load-pos-model.js': [ 'src/load-pos-model.js' ],
'dist/load-ner-model.js': [ 'src/load-ner-model.js' ],
'dist/load-sa-model.js': [ 'src/load-sa-model.js' ],
'dist/load-sbd-model.js': [ 'src/load-sbd-model.js' ],
'dist/model.js': [ 'src/model.js' ],
'dist/negation-setter.js': [ 'src/negation-setter.js' ],
'dist/ner-transformers.js': [ 'src/ner-transformers.js' ],
'dist/pos-setter.js': [ 'src/pos-setter.js' ],
'dist/pos-transformers.js': [ 'src/pos-transformers.js' ],
'dist/pos-updater.js': [ 'src/pos-updater.js' ],
'dist/read-core-model.js': [ 'src/read-core-model.js' ],
'dist/sa-setter.js': [ 'src/sa-setter.js' ],
'dist/sbd-setter.js': [ 'src/sbd-setter.js' ],
'dist/sbd-transformers.js': [ 'src/sbd-transformers.js' ],
'dist/token-categories.js': [ 'src/token-categories.js' ],
'dist/porter-stemmer.js': [ 'src/porter-stemmer.js' ],
'dist/wn-adjective-exceptions.js': [ 'src/wn-adjective-exceptions.js' ],
'dist/wn-noun-exceptions.js': [ 'src/wn-noun-exceptions.js' ],
'dist/wn-verb-exceptions.js': [ 'src/wn-verb-exceptions.js' ],
'dist/lemmatize.js': [ 'src/lemmatize.js' ],
'dist/syllables.js': [ 'src/syllables.js' ],
'dist/readability-stats.js': [ 'src/readability-stats.js' ],
}
}
},
copy: {
files: {
expand: true,
flatten: true,
src: [ 'src/languages/cur/models/**' ],
dest: 'dist/languages/cur/models',
filter: 'isFile'
}
},
watch: {
scripts: {
files: [ 'src/*.js' ],
tasks: [ 'terser', 'copy' ],
options: {
spawn: false,
},
},
},
});
// Default task(s).
grunt.registerTask( 'default', [ 'terser', 'copy' ] );
};