feat: remove path alias.

feat: remove Webpack and depend on nodemon.
feat: refactoring expenses.
feat: optimize system users with caching.
feat: architecture tenant optimize.
This commit is contained in:
Ahmed Bouhuolia
2020-09-15 00:51:39 +02:00
parent ad00f140d1
commit a22c8395f3
293 changed files with 3391 additions and 1637 deletions

View File

@@ -1,52 +0,0 @@
const path = require('path');
const nodeExternals = require('webpack-node-externals');
function resolve(dir) {
return path.join(__dirname, '.', dir);
}
module.exports = {
mode: 'development',
entry: [
'@/server.js',
],
target: 'node',
devtool: 'inline-cheap-module-source-map',
externals: [nodeExternals()],
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: 'dist/',
// use absolute paths in sourcemaps (important for debugging via IDE)
devtoolModuleFilenameTemplate: '[absolute-resource-path]',
devtoolFallbackModuleFilenameTemplate: '[absolute-resource-path]?[hash]',
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'~': path.resolve(__dirname, 'tests'),
},
extensions: [ '.tsx', '.ts', '.js' ],
},
module: {
rules: [
// {
// test: /\.(js)$/,
// loader: 'eslint-loader',
// enforce: 'pre',
// include: [resolve('src'), resolve('test')],
// options: {
// // eslint-disable-next-line global-require
// formatter: require('eslint-friendly-formatter'),
// // emitWarning: !config.dev.showEslintErrorsInOverlay
// },
// },
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
};