forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
42 lines (36 loc) · 1.06 KB
/
gulpfile.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
// Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license
require('babel-register');
const del = require('del');
const gulp = require('gulp');
const path = require('path');
const runSequence = require('run-sequence');
const paths = require('./scripts/helpers/paths');
require('./scripts/helpers/lodash-overwrite');
require('./scripts/gulp/accessibility');
require('./scripts/gulp/generate-examples');
require('./scripts/gulp/generate-tokens-components');
require('./scripts/gulp/lint');
require('./scripts/gulp/styles');
// NOTE: Don't remove reports on purpose.
// This exception is already fixed on the remove-website branch.
gulp.task('clean', () => del.sync([
paths.generated,
paths.tmp,
paths.dist,
paths.logs,
paths.build,
// paths.reports, OMITTED FOR NOW
paths.html,
path.join(paths.designTokens, 'dist')
]));
gulp.task('build', callback => {
runSequence(
'clean',
[
'generate:tokens:all',
'generate:examples'
],
'styles',
callback);
});