-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
37 lines (36 loc) · 1.27 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
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-sync');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: ['dist'],
sync: {
main: {
files: [
{
cwd: 'src',
src: ['**/*', '!**/*.ts'],
dest: 'dist',
},
],
verbose: false, // Default: false
pretend: false, // Don't do any disk operations - just write log. Default: false
failOnError: true, // Fail the task when copying is not possible. Default: false
// ignoreInDest: [
// '**/*.js'
// ], // Never remove js files from destination. Default: none
updateAndDelete: false, // Remove all files from dist that are not found in src. Default: false
compareUsing: 'md5', // compares via md5 hash of file contents, instead of file modification time. Default: "mtime"
},
},
exec: {
'generate-api-docs': {
command: `
ts-node -r tsconfig-paths/register src/exposes/ui/doc/ApiGenerator web &&
ts-node -r tsconfig-paths/register src/exposes/ui/doc/ApiGenerator mobile
`,
},
},
});
};