-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
49 lines (42 loc) · 1.23 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
43
44
45
46
47
48
49
require('dotenv').config();
const del = require('del');
const { src, dest, series } = require('gulp');
const rooibosCli = require('rooibos-cli');
const rokuDeploy = require('roku-deploy');
const args = {
host: process.env.ROKU_DEV_TARGET,
username: process.env.ROKU_DEV_USERNAME,
password: process.env.ROKU_DEV_PASSWORD,
retainStagingFolder: true,
rootDir: 'src/',
files: [
'source/**/*',
'components/**/*',
'images/**/*',
'manifest'
],
};
async function cleanStaging() {
await del('./out');
}
async function pressHomeButton() {
await rokuDeploy.pressHomeButton(args.host, args.port);
}
async function deploy() {
await rokuDeploy.deploy(args);
}
async function prepareRooibos() {
let config = rooibosCli.createProcessorConfig({
projectPath: "out/.roku-deploy-staging",
outputPath: "source/tests/rooibos/",
testsFilePattern: [
"source/tests/*.spec.brs",
"!**/rooibosDist.brs",
"!**/rooibosFunctionMap.brs",
"!**/TestsScene.brs"
]
});
let processor = new rooibosCli.RooibosProcessor(config);
await processor.processFiles();
}
exports.deploy = series(pressHomeButton, cleanStaging, deploy)