beta
cybafelo 2020-02-27 17:07:46 +01:00
parent e450db75aa
commit c49dad2242
8 changed files with 264 additions and 8 deletions

14
dist/index.html vendored
View File

@ -4,6 +4,20 @@
<title>Getting Started</title>
</head>
<body>
<div id="log">
</div>
<script>
(function () {
var logger = document.getElementById('log');
console.log = function (message) {
if (typeof message == 'object') {
logger.innerHTML += (JSON && JSON.stringify ? JSON.stringify(message) : message) + '<br />';
} else {
logger.innerHTML += message + '<br />';
}
}
})();
</script>
<script src="r3.js"></script>
</body>
</html>

197
dist/r3.js vendored

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,8 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --webpack-config.js"
"build": "webpack --webpack-config.js",
"watch": "webpack --webpack-config.js --watch"
},
"keywords": [],
"author": "",

View File

@ -1,4 +1,3 @@
import {R3} from './r3.js'
import R3 from './r3.js'
R3.System.Linking.start();

23
src/r3-system-linking.js Normal file
View File

@ -0,0 +1,23 @@
import System from './r3-system.js'
class LinkingSystem extends System {
constructor() {
super();
console.log('hi there from linking system');
}
static start() {
super.start();
console.log('starting linking system');
}
}
export default LinkingSystem;

13
src/r3-system.js Normal file
View File

@ -0,0 +1,13 @@
class System {
constructor() {
console.log('hi from system');
}
static start() {
console.log('starting a system');
}
}
export default System;

View File

@ -1,2 +1,11 @@
export function R3() {
};
import System from './r3-system.js'
import SystemLinking from './r3-system-linking.js'
function R3() {
}
R3.System = System;
R3.System.Linking = SystemLinking;
export default R3;

View File

@ -5,5 +5,7 @@ module.exports = {
output: {
filename: 'r3.js',
path: path.resolve(__dirname, 'dist')
}
},
mode: 'development',
devtool: 'inline-source-map'
}