mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
use existing aliases in the requires
This commit is contained in:
parent
23dab7b6cf
commit
d63bea9571
@ -2,9 +2,11 @@ const React = require('react');
|
||||
const ReactRedux = require('react-redux');
|
||||
const ReactRouter = require('react-router');
|
||||
|
||||
const actions = require('../state/actions');
|
||||
const Home = require('./home/');
|
||||
const NotFound = require('./not-found/');
|
||||
const actions = require('@state/actions');
|
||||
const Home = require('@containers/home');
|
||||
const NotFound = require('@containers/not-found');
|
||||
const Header = require('@components/header');
|
||||
|
||||
|
||||
const {
|
||||
updateRouter
|
||||
|
@ -4,8 +4,8 @@ const ReactHotLoader = require('react-hot-loader');
|
||||
const ReactRedux = require('react-redux');
|
||||
const ReactRouter = require('react-router');
|
||||
|
||||
const App = require('./containers/app');
|
||||
const store = require('./state/store');
|
||||
const App = require('@containers/app');
|
||||
const store = require('@state/store');
|
||||
|
||||
const {
|
||||
IntlProvider
|
||||
|
@ -8,6 +8,6 @@ const {
|
||||
const APP = constantCase(process.env['APP_NAME']);
|
||||
|
||||
module.exports = {
|
||||
...require('./thunks'),
|
||||
...require('@state/thunks'),
|
||||
updateRouter: createAction(`${APP}/APP/UPDATE_ROUTER`)
|
||||
};
|
||||
|
@ -1,5 +1,6 @@
|
||||
const ReduxActions = require('redux-actions');
|
||||
const actions = require('../actions');
|
||||
|
||||
const actions = require('@state/actions');
|
||||
|
||||
const {
|
||||
handleActions
|
||||
|
@ -6,7 +6,7 @@ const {
|
||||
|
||||
module.exports = () => {
|
||||
return combineReducers({
|
||||
app: require('./app.js'),
|
||||
intl: require('./intl.js')
|
||||
app: require('@state/reducers/app'),
|
||||
intl: require('@state/reducers/intl')
|
||||
});
|
||||
};
|
||||
|
@ -4,4 +4,6 @@ const {
|
||||
handleActions
|
||||
} = ReduxActions;
|
||||
|
||||
module.exports = handleActions({}, require('../../intl'));
|
||||
module.exports = handleActions({
|
||||
'x': (state) => state // somehow handleActions needs at least one reducer
|
||||
}, require('@root/intl'));
|
||||
|
@ -1,10 +1,11 @@
|
||||
const createLogger = require('redux-logger');
|
||||
const createReducer = require('./reducers');
|
||||
const enableBatching = require('redux-batched-actions').enableBatching;
|
||||
const promiseMiddleware = require('redux-promise-middleware').default;
|
||||
const redux = require('redux');
|
||||
const thunk = require('redux-thunk').default;
|
||||
|
||||
const createReducer = require('@state/reducers');
|
||||
|
||||
const {
|
||||
createStore,
|
||||
compose,
|
||||
|
@ -1,3 +1,3 @@
|
||||
module.exports = {
|
||||
...require('./app')
|
||||
...require('@state/thunks/app')
|
||||
};
|
||||
|
@ -8,7 +8,6 @@ const Icon = ({
|
||||
iconSet = 'fa',
|
||||
style
|
||||
}) => {
|
||||
|
||||
const Component = require(`react-icons/lib/${iconSet}/${name}`);
|
||||
|
||||
const cn = classNames(
|
||||
|
Loading…
Reference in New Issue
Block a user