copy from RedHatInsights/insights-frontend-starter-app template

Copied removing unused parts, and includes some initial changes.
This commit is contained in:
sanne raymaekers 2020-03-27 10:55:52 +01:00
parent d9ba8a2f02
commit f93d36b972
26 changed files with 19546 additions and 0 deletions

View file

@ -0,0 +1,14 @@
const { resolve } = require('path');
const config = require('@redhat-cloud-services/frontend-components-config');
const { config: webpackConfig, plugins } = config({
rootFolder: resolve(__dirname, '../'),
debug: true,
https: false,
port: 8002,
});
module.exports = {
...webpackConfig,
plugins
};

View file

@ -0,0 +1,11 @@
const { resolve } = require('path');
const config = require('@redhat-cloud-services/frontend-components-config');
const { config: webpackConfig, plugins } = config({
rootFolder: resolve(__dirname, '../')
});
module.exports = {
...webpackConfig,
plugins
};

10
config/setupTests.js Normal file
View file

@ -0,0 +1,10 @@
import { configure, mount, render, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
configure({ adapter: new Adapter() });
global.shallow = shallow;
global.render = render;
global.mount = mount;
global.React = React;

View file

@ -0,0 +1,11 @@
const { resolve } = require('path');
const config = require('@redhat-cloud-services/frontend-components-config');
const { config: webpackConfig, plugins } = config({
rootFolder: resolve(__dirname, '../')
});
module.exports = {
...webpackConfig,
plugins
};