Fix structure

This commit is contained in:
Paulo Gustavo Veiga 2021-10-02 18:37:42 -07:00
parent d53f13efd9
commit 32d803e271
19 changed files with 12 additions and 22 deletions

View File

@ -18,7 +18,7 @@ function mindplot() {
define(['raphael'], (Raphael) => {
global.Raphael = Raphael;
});
require('../test/javascript/static/test/raphael-plugins');
require('../test/playground/lib/raphael-plugins');
// Bootsrap for styles
require('./components/libraries/bootstrap/js/bootstrap.min');

View File

@ -1 +0,0 @@
../../../../../wise-editor/src/main/webapp/bootstrap/js/bootstrap.js

View File

@ -1 +0,0 @@
../../../../../core-js/target/classes/core.js

View File

@ -1 +0,0 @@
../../../../../wise-editor/src/main/webapp/js/jquery.js

View File

@ -1 +0,0 @@
../../../../../web2d/target/classes/web2d.svg-min.js

View File

@ -7,10 +7,9 @@
</head>
<body>
<div>
<h1>Testing</h1>
<h1>Mindplot Playground</h1>
<ul>
<li><a href="/layout">layout</a></li>
<li><a href="/palette">Palette</a></li>
</ul>
</div>
</body>

View File

@ -17,7 +17,7 @@
*/
const TestSuite = require('./TestSuite').default;
const Mindplot = require('../../../../lib/mindplot');
const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot();
const BalancedTestSuite = new Class({

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
const TestSuite = require('./TestSuite').default;
const Mindplot = require('../../../../lib/mindplot');
const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot();
const FreeTestSuite = new Class({

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
const TestSuite = require('./TestSuite').default;
const Mindplot = require('../../../../lib/mindplot');
const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot();
const SymmetricTestSuite = new Class({

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const Mindplot = require('../../../../lib/mindplot');
const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot();
const TestSuite = new Class({

View File

@ -1,4 +1,4 @@
const Mindplot = require('../../../../lib/mindplot');
const Mindplot = require('../../../lib/mindplot');
global.mindplot = Mindplot();
const TestSuite = require('./TestSuite').default;

View File

@ -1,4 +1,4 @@
const Mindplot = require('../../../../lib/mindplot');
const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot();
window.addEventListener('load', function (e) {

View File

@ -5,8 +5,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
/** @type {import('webpack').Configuration} */
module.exports = {
entry: {
palette: path.resolve(__dirname, './test/javascript/static/test/testPalette'),
layout: path.resolve(__dirname, './test/javascript/static/test/testLayout'),
palette: path.resolve(__dirname, './test/playground/lib/testPalette'),
layout: path.resolve(__dirname, './test/playground/lib/testLayout'),
},
output: {
path: path.resolve(__dirname, 'dist', 'test'),
@ -40,17 +40,12 @@ module.exports = {
plugins: [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({
template: 'test/javascript/static/index.html',
}),
new HtmlWebpackPlugin({
chunks: ['palette'],
filename: 'palette',
template: 'test/javascript/static/palette.html',
template: 'test/playground/index.html',
}),
new HtmlWebpackPlugin({
chunks: ['layout'],
filename: 'layout',
template: 'test/javascript/static/layout.html',
template: 'test/playground/layout.html',
}),
],
};