clean catalogs
This commit is contained in:
parent
0a0ee24a2a
commit
41164ddeaf
2
app/.gitignore
vendored
2
app/.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
dist/
|
||||
engine.js
|
||||
assets/images/*.jpg
|
||||
|
@ -10,6 +10,6 @@
|
||||
<canvas id="game" width="400" height="600"></canvas>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="dist/game.js"></script>
|
||||
<script type="text/javascript" src="engine.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
import config from '../config.json'; // game configuration
|
||||
import gameData from '../gameData.json'; // game data
|
||||
import config from '../app/config.json'; // game configuration
|
||||
import gameData from '../app/gameData.json'; // game data
|
||||
|
||||
import { getMousePos, isInside } from './buttons.js';
|
||||
import { clearContext, getCenterH, getCenterV } from './draw.js';
|
@ -2,9 +2,10 @@
|
||||
"name": "quizEngine",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"main": "./js/engine.js",
|
||||
"scripts": {
|
||||
"build": "webpack",
|
||||
"start": "webpack serve",
|
||||
"build": "webpack --mode=production",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
|
@ -1,11 +1,15 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './js/index.js',
|
||||
context: path.resolve(__dirname, 'app'),
|
||||
mode: 'development',
|
||||
entry: './js/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'app/dist'),
|
||||
filename: 'game.js',
|
||||
path: path.resolve(__dirname, 'app'),
|
||||
filename: 'engine.js',
|
||||
},
|
||||
devServer: {
|
||||
contentBase: path.join(__dirname, 'app'),
|
||||
compress: false,
|
||||
port: 55555,
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user