forked from garden-io/garden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.ts
33 lines (29 loc) · 901 Bytes
/
gulpfile.ts
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
/*
* Copyright (C) 2018-2022 Garden Technologies, Inc. <[email protected]>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
const gulp = require("gulp")
const checkLicense = require("gulp-license-check")
const sources = [
"core/src/**/*.ts",
"core/test/**/*.ts",
"core/src/**/*.pegjs",
"dashboard/src/**/*.ts*",
"dashboard/src/**/*.scss",
"plugins/**/*.ts",
"sdk/**/*.ts",
]
const licenseHeaderPath = "support/license-header-js.txt"
process.env.FORCE_COLOR = "true"
gulp.task("check-licenses", () =>
gulp.src(sources, { ignore: ["**/*.d.ts", "**/node_modules/**/*", "core/src/lib/**/*"] })
.pipe(checkLicense({
path: licenseHeaderPath,
blocking: true,
logInfo: false,
logError: true,
})),
)