Skip to content

Commit

Permalink
Drop 'miqApp' webpack compile-time alias
Browse files Browse the repository at this point in the history
Signed-off-by: Vojtech Szocs <vojtech.szocs@gmail.com>
  • Loading branch information
vojtechszocs committed Nov 15, 2017
1 parent cbef26d commit 999b07d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Expand Up @@ -22,7 +22,6 @@
"sendDataWithRx": false,
"vanillaJsAPI": false, // local: miq_api.js
"ManageIQ": false, // local: mig_global.js
"miqApp": false, // alias: ManageIQ.angular.app
"Promise": false, // bower: es6-shim
"_": false, // bower: lodash
"__": false, // local: i18n.js
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/miq-redux/test-helper.ts
Expand Up @@ -2,7 +2,7 @@ import { IModule } from 'angular';

import { rootReducer, addReducer, clearReducers, applyReducerHash } from './reducer';

const app: IModule = miqApp;
const app: IModule = ManageIQ.angular.app;

// allow unit-testing specific module exports
if (jasmine) {
Expand Down
5 changes: 0 additions & 5 deletions app/javascript/packs/custom-typings.ts
Expand Up @@ -3,11 +3,6 @@
*/
declare const ManageIQ: any;

/**
* Compile-time global, alias for `ManageIQ.angular.app`.
*/
declare const miqApp: any;

/**
* Runtime global, available when running tests with Jasmine.
*/
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/packs/miq-redux-common.ts
Expand Up @@ -5,7 +5,7 @@ import { addReducer, applyReducerHash } from '../miq-redux/reducer';
import { ReduxStore, ReduxApi } from '../miq-redux/redux-typings';
import '../miq-redux/test-helper';

const app: IModule = miqApp;
const app: IModule = ManageIQ.angular.app;

const initialState = {};

Expand Down
3 changes: 0 additions & 3 deletions config/webpack/shared.js
Expand Up @@ -44,9 +44,6 @@ module.exports = {

plugins: [
new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(env))),
new webpack.DefinePlugin({
miqApp: 'ManageIQ.angular.app'
}),
new ExtractTextPlugin(env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css'),

// Workaround for angular/angular#11580
Expand Down

0 comments on commit 999b07d

Please sign in to comment.