Commit 764b2856 by oriol

webpack

parent c1c2b680
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4,7 +4,9 @@
"description": "Killing Spree game",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npm run webpack",
"webpack": "webpack -d --watch"
},
"repository": {
"type": "git",
......@@ -14,7 +16,10 @@
"license": "ISC",
"dependencies": {
"doppler-slider-js": "^0.1.11",
"electron": "^1.6.11",
"express": "^4.15.3"
"express": "^4.15.3",
"webpack": "^3.10.0"
},
"devDependencies": {
"electron": "^1.7.10"
}
}
module.exports = {
entry: './js/main.js',
output: {
filename: './js/compiled.js'
},
};
\ No newline at end of file
......@@ -9,31 +9,7 @@
width:100%;height:100%;}
</style>
<script type="text/javascript" src="./js/header.js"></script>
<script type="text/javascript" src="./js/sono.js"></script>
<script type="text/javascript" src="./js/gyronorm.complete.js"></script>
<script type="text/javascript" src="./js/hammer.min.js"></script>
<script type="text/javascript" src="./js/soundObject.js"></script>
<script type="text/javascript" src="./js/timer.js"></script>
<script type="text/javascript" src="./js/insect.js"></script>
<script type="text/javascript" src="./js/settingsContainer.js"></script>
<script type="text/javascript" src="./js/inputHandler.js"></script>
<script type="text/javascript" src="./js/settingsLoader.js"></script>
<script type="text/javascript" src="./js/tts.js"></script>
<script type="text/javascript" src="./js/scrollingText.js"></script>
<script type="text/javascript" src="./js/menu.js"></script>
<script type="text/javascript" src="./js/menuItem.js"></script>
<script type="text/javascript" src="./js/keycodes.js"></script>
<script type="text/javascript" src="./js/util.js"></script>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/strings.js"></script>
<script type="text/javascript" src="./js/game.js"></script>
<script type="text/javascript" src="./js/soundSource.js"></script>
<script type="text/javascript" src="./js/input.js"></script>
<script type="text/javascript" src="./js/main.js"></script>
<script type="text/javascript" src="./js/compiled.js"></script>
</head>
<body role="application">
<div id="speech" aria-live="polite"></div>
......
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
throw new Error("Module parse failed: Unexpected token (3:0)\nYou may need an appropriate loader to handle this file type.\n| \"use strict\";\n| import soundObject\n| import sono\n| \n| //var strings=new Strings()");
/***/ })
/******/ ]);
\ No newline at end of file
"use strict";
var lang="english"
import soundObject
import sono
var strings=new Strings()
var tick=null;
var sKill;
var lang="english";
var sDeath;
var timeToLoad=0;
var sndProgress=null;
......
......@@ -222,4 +222,5 @@ class SoundObject {
}
}
var soundObject = new SoundObject();
\ No newline at end of file
var soundObject = new SoundObject();
export default className
\ No newline at end of file
electron d:\git\insect
\ No newline at end of file
electron F:\proj\killingspree
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment