forked from snowplow/snowplow-javascript-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
43 lines (38 loc) · 1.09 KB
/
Copy pathtest.js
File metadata and controls
43 lines (38 loc) · 1.09 KB
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
import { rollup } from 'rollup';
import { basePlugins } from './rollup';
import Docker from 'dockerode';
export const buildTestDetectors = async function () {
const detectors = await rollup({
input: 'tests/scripts/detectors.js',
plugins: basePlugins,
});
return await detectors.write({
name: 'detectors',
file: 'tests/pages/detectors.js',
format: 'iife',
});
};
export const buildTestHelpers = async function () {
const helpers = await rollup({
input: 'tests/scripts/helpers.js',
plugins: basePlugins,
});
return await helpers.write({
name: 'helpers',
file: 'tests/pages/helpers.js',
format: 'iife',
});
};
export const buildTestSnowplow = async function () {
const snowplow = await rollup({
input: 'src/js/init.js',
plugins: basePlugins,
});
return await snowplow.write({
file: 'tests/pages/snowplow.js',
format: 'iife',
});
};
export const pullSnowplowMicro = async function() {
return new Docker().pull('snowplow/snowplow-micro:1.1.0');
}