* refactor: Reorder tests without lambda Moves inner implementations of Answer and ArgumentMatcher to the top of the test classes. Also changes the lambda expression to a regular "pre java 8" expression in one of the tests. Resolves: BAEL-632 * feat: Create basic Monolithic JHipster project Commit just after creating a JHipster project, before making any modifications. Resolves: BAEL-137 * chore: Change the artifactId and name of the project From baeldung to jhipster-monolithic and JHipster Monolithic Application Relates to: BAEL-137 * feat: Create entities Post and Comment Relates to: BAEL-137 * feat: Fix Gatling configuration in pom.xml Relates to: BAEL-137 * feat: Add files for Continuous Integration Relates to: BAEL-137 * feat: Change pom.xml to conform to Baeldung standards - moved the <properties> element to the bottom of the file - excluded integration tests in the default surefire configuration - added a new profile, called integration, and added the integration tests there - added Java 8 in the <source> and <target> tags, under maven-compiler solves: BAEL-137 * chore: Add jhipster module to parent pom
66 lines
1.9 KiB
JavaScript
66 lines
1.9 KiB
JavaScript
const webpack = require('webpack');
|
|
const path = require('path');
|
|
const commonConfig = require('./webpack.common.js');
|
|
const writeFilePlugin = require('write-file-webpack-plugin');
|
|
const webpackMerge = require('webpack-merge');
|
|
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
|
|
const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
|
const ENV = 'dev';
|
|
const execSync = require('child_process').execSync;
|
|
const fs = require('fs');
|
|
const ddlPath = './target/www/vendor.json';
|
|
|
|
if (!fs.existsSync(ddlPath)) {
|
|
execSync('webpack --config webpack/webpack.vendor.js');
|
|
}
|
|
|
|
module.exports = webpackMerge(commonConfig({ env: ENV }), {
|
|
devtool: 'inline-source-map',
|
|
devServer: {
|
|
contentBase: './target/www',
|
|
proxy: [{
|
|
context: [
|
|
'/api',
|
|
'/management',
|
|
'/swagger-resources',
|
|
'/v2/api-docs',
|
|
'/h2-console'
|
|
],
|
|
target: 'http://127.0.0.1:8080',
|
|
secure: false
|
|
}]
|
|
},
|
|
output: {
|
|
path: path.resolve('target/www'),
|
|
filename: '[name].bundle.js',
|
|
chunkFilename: '[id].chunk.js'
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.ts$/,
|
|
loaders: [
|
|
'tslint-loader'
|
|
],
|
|
exclude: ['node_modules', new RegExp('reflect-metadata\\' + path.sep + 'Reflect\\.ts')]
|
|
}]
|
|
},
|
|
plugins: [
|
|
new BrowserSyncPlugin({
|
|
host: 'localhost',
|
|
port: 9000,
|
|
proxy: {
|
|
target: 'http://localhost:9060'
|
|
}
|
|
}, {
|
|
reload: false
|
|
}),
|
|
new ExtractTextPlugin('styles.css'),
|
|
new webpack.NoEmitOnErrorsPlugin(),
|
|
new webpack.NamedModulesPlugin(),
|
|
new writeFilePlugin(),
|
|
new webpack.WatchIgnorePlugin([
|
|
path.resolve('./src/test'),
|
|
])
|
|
]
|
|
});
|