UNPKG

1.9 kBJavaScriptView Raw
1// Bring in individual Gulp configurations
2require('./config/gulp/flags');
3require('./config/gulp/sass');
4require('./config/gulp/javascript');
5require('./config/gulp/images');
6require('./config/gulp/fonts');
7require('./config/gulp/build');
8require('./config/gulp/release');
9require('./config/gulp/test');
10
11var gulp = require('gulp');
12var dutil = require('./config/gulp/doc-util');
13
14gulp.task('default', function (done) {
15
16 dutil.logIntroduction();
17
18 dutil.logHelp(
19 'gulp',
20 'This task will output the currently supported automation tasks. (e.g. This help message.)'
21 );
22
23 dutil.logHelp(
24 'gulp no-cleanup [ task-name ]',
25 'Prefixing tasks with `no-cleanup ` will not remove the distribution directories.'
26 );
27
28 dutil.logHelp(
29 'gulp no-test [ task-name ]',
30 'Prefixing tasks with `no-test` will disable testing and linting for all supported tasks.'
31 );
32
33 dutil.logCommand(
34 'gulp clean-dist',
35 'This task will remove the distribution directories.'
36 );
37
38 dutil.logHelp(
39 'gulp build',
40 'This task is an alias for running `gulp sass javascript images fonts` and is the recommended task to build all assets.'
41 );
42
43 dutil.logCommand(
44 'gulp sass',
45 'This task will compile all the Sass files into distribution directories.'
46 );
47
48 dutil.logCommand(
49 'gulp javascript',
50 'This task will compile all the JavaScript files into distribution directories.'
51 );
52
53 dutil.logCommand(
54 'gulp images',
55 'This task will copy all the image files into distribution directories.'
56 );
57
58 dutil.logCommand(
59 'gulp fonts',
60 'This task will copy all the font files into distribution directories.'
61 );
62
63 dutil.logCommand(
64 'gulp release',
65 'This task will run `gulp build` and prepare a release directory.'
66 );
67
68 dutil.logCommand(
69 'gulp test',
70 'This task will run `gulp test` and run this repository\'s unit tests.'
71 );
72
73 done();
74
75});