copy from RedHatInsights/insights-frontend-starter-app template
Copied removing unused parts, and includes some initial changes.
This commit is contained in:
parent
d9ba8a2f02
commit
f93d36b972
26 changed files with 19546 additions and 0 deletions
14
config/dev.webpack.config.js
Normal file
14
config/dev.webpack.config.js
Normal 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
|
||||
};
|
||||
11
config/prod.webpack.config.js
Normal file
11
config/prod.webpack.config.js
Normal 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
10
config/setupTests.js
Normal 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;
|
||||
11
config/test.webpack.config.js
Normal file
11
config/test.webpack.config.js
Normal 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
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue