forked from grommet/grommet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.babel.js
33 lines (26 loc) · 846 Bytes
/
gulpfile.babel.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
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import gulp from 'gulp';
import fs from 'fs';
import coveralls from 'gulp-coveralls';
import grommetToolbox from 'grommet-toolbox';
import gulpDist from './gulpfile-grommet-dist';
import gulpRelease from './gulpfile-grommet-release';
grommetToolbox(gulp);
gulpDist(gulp);
gulpRelease(gulp);
gulp.task('coveralls', () => {
var lcovPath = './coverage/lcov.info';
fs.exists(lcovPath, function(exists) {
if (exists) {
gulp.src(lcovPath).pipe(coveralls());
} else {
console.error('Could not find lcov report file.');
process.exit(1);
}
});
});
gulp.task('dev', () =>
console.error(
'Running "gulp dev" at Grommet root folder is not supported. To test Grommet components locally clone the grommet-docs repo into your project.'
)
);