forked from OfficeDev/Microsoft-Teams-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
28 lines (22 loc) · 756 Bytes
/
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
// Copyright (c) Wictor Wilén. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
const gulp = require("gulp");
const package = require("./package.json");
const argv = require("yargs").argv;
const log = require("fancy-log");
const path = require("path");
const config = {};
// Set environment variables
const env = argv.env;
if (env === undefined) {
require("dotenv").config();
} else {
log(`Using custom .env: ${env}`);
require("dotenv").config({ path: path.resolve(process.cwd(), env) });
}
process.env.VERSION = package.version;
const core = require("yoteams-build-core");
// Initialize core build
core.setup(gulp, config);
// Add your custom or override tasks below