-
Notifications
You must be signed in to change notification settings - Fork 2
/
.happo.js
41 lines (39 loc) · 1.27 KB
/
.happo.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
const { RemoteBrowserTarget } = require('happo.io');
const happoPluginTypescript = require('happo-plugin-typescript');
const happoPluginStorybook = require('happo-plugin-storybook');
const path = require('path');
module.exports = {
// It's good practice to never store API tokens directly in the config file.
// Here, we're using environment variables.
apiKey: process.env.HAPPO_API_KEY,
apiSecret: process.env.HAPPO_API_SECRET,
plugins: [
happoPluginTypescript(),
happoPluginStorybook(),
],
stylesheets: [path.resolve(__dirname,'.storybook')+'/happo.css'],
include: '**/*.story.js',
targets: {
'chrome-desktop': new RemoteBrowserTarget('chrome', {
viewport: '1024x768',
}),
'chrome-mobile': new RemoteBrowserTarget('chrome', {
viewport: '320x640',
}),
'internet-explorer-desktop': new RemoteBrowserTarget('internet explorer', {
viewport: '1024x768',
}),
'edge-desktop': new RemoteBrowserTarget('edge', {
viewport: '1024x768',
}),
'firefox-desktop': new RemoteBrowserTarget('firefox', {
viewport: '1024x768',
}),
'safari': new RemoteBrowserTarget('safari', {
viewport: '1024x768',
}),
'safari-mobile': new RemoteBrowserTarget('ios-safari', {
viewport: '320x640',
}),
},
};