update style across the project
The eslint updates require style changes in all components.
This commit is contained in:
parent
7959f2a563
commit
4fa71cede8
56 changed files with 5973 additions and 5177 deletions
|
|
@ -4,38 +4,46 @@ const { GitRevisionPlugin } = require('git-revision-webpack-plugin');
|
|||
const config = require('@redhat-cloud-services/frontend-components-config');
|
||||
|
||||
const webpackProxy = {
|
||||
useProxy: true,
|
||||
proxyVerbose: true,
|
||||
env: `${process.env.STAGE ? 'stage' : 'prod'}-${process.env.BETA ? 'beta' : 'stable'}`,
|
||||
appUrl: process.env.BETA ? '/beta/insights/image-builder' : '/insights/image-builder',
|
||||
useProxy: true,
|
||||
proxyVerbose: true,
|
||||
env: `${process.env.STAGE ? 'stage' : 'prod'}-${
|
||||
process.env.BETA ? 'beta' : 'stable'
|
||||
}`,
|
||||
appUrl: process.env.BETA
|
||||
? '/beta/insights/image-builder'
|
||||
: '/insights/image-builder',
|
||||
};
|
||||
|
||||
const { config: webpackConfig, plugins } = config({
|
||||
rootFolder: resolve(__dirname, '../'),
|
||||
debug: true,
|
||||
modules: [ 'image_builder' ],
|
||||
useFileHash: false,
|
||||
sassPrefix: '.imageBuilder, .image_builder',
|
||||
deployment: process.env.BETA ? 'beta/apps' : 'apps',
|
||||
...(process.env.PROXY ? webpackProxy : {})
|
||||
rootFolder: resolve(__dirname, '../'),
|
||||
debug: true,
|
||||
modules: ['image_builder'],
|
||||
useFileHash: false,
|
||||
sassPrefix: '.imageBuilder, .image_builder',
|
||||
deployment: process.env.BETA ? 'beta/apps' : 'apps',
|
||||
...(process.env.PROXY ? webpackProxy : {}),
|
||||
});
|
||||
|
||||
plugins.push(
|
||||
require('@redhat-cloud-services/frontend-components-config/federated-modules')({
|
||||
root: resolve(__dirname, '../'),
|
||||
useFileHash: false,
|
||||
moduleName: 'image_builder',
|
||||
exposes: {
|
||||
'./RootApp': resolve(__dirname, '../src/AppEntry.js'),
|
||||
},
|
||||
})
|
||||
require('@redhat-cloud-services/frontend-components-config/federated-modules')(
|
||||
{
|
||||
root: resolve(__dirname, '../'),
|
||||
useFileHash: false,
|
||||
moduleName: 'image_builder',
|
||||
exposes: {
|
||||
'./RootApp': resolve(__dirname, '../src/AppEntry.js'),
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
plugins.push(new DefinePlugin({
|
||||
COMMITHASH: JSON.stringify((new GitRevisionPlugin()).commithash()),
|
||||
}));
|
||||
plugins.push(
|
||||
new DefinePlugin({
|
||||
COMMITHASH: JSON.stringify(new GitRevisionPlugin().commithash()),
|
||||
})
|
||||
);
|
||||
|
||||
module.exports = {
|
||||
...webpackConfig,
|
||||
plugins
|
||||
...webpackConfig,
|
||||
plugins,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,26 +3,30 @@ const { resolve } = require('path');
|
|||
const { GitRevisionPlugin } = require('git-revision-webpack-plugin');
|
||||
const config = require('@redhat-cloud-services/frontend-components-config');
|
||||
const { config: webpackConfig, plugins } = config({
|
||||
rootFolder: resolve(__dirname, '../'),
|
||||
modules: [ 'image_builder' ],
|
||||
sassPrefix: '.imageBuilder, .image_builder',
|
||||
rootFolder: resolve(__dirname, '../'),
|
||||
modules: ['image_builder'],
|
||||
sassPrefix: '.imageBuilder, .image_builder',
|
||||
});
|
||||
|
||||
plugins.push(
|
||||
require('@redhat-cloud-services/frontend-components-config/federated-modules')({
|
||||
root: resolve(__dirname, '../'),
|
||||
moduleName: 'image_builder',
|
||||
exposes: {
|
||||
'./RootApp': resolve(__dirname, '../src/AppEntry.js'),
|
||||
},
|
||||
})
|
||||
require('@redhat-cloud-services/frontend-components-config/federated-modules')(
|
||||
{
|
||||
root: resolve(__dirname, '../'),
|
||||
moduleName: 'image_builder',
|
||||
exposes: {
|
||||
'./RootApp': resolve(__dirname, '../src/AppEntry.js'),
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
plugins.push(new DefinePlugin({
|
||||
COMMITHASH: JSON.stringify((new GitRevisionPlugin()).commithash()),
|
||||
}));
|
||||
plugins.push(
|
||||
new DefinePlugin({
|
||||
COMMITHASH: JSON.stringify(new GitRevisionPlugin().commithash()),
|
||||
})
|
||||
);
|
||||
|
||||
module.exports = {
|
||||
...webpackConfig,
|
||||
plugins
|
||||
...webpackConfig,
|
||||
plugins,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue