start
parent
e450db75aa
commit
c49dad2242
|
@ -4,6 +4,20 @@
|
||||||
<title>Getting Started</title>
|
<title>Getting Started</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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>
|
<script src="r3.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,8 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"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": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import {R3} from './r3.js'
|
import R3 from './r3.js'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
R3.System.Linking.start();
|
||||||
|
|
|
@ -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;
|
|
@ -0,0 +1,13 @@
|
||||||
|
class System {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
console.log('hi from system');
|
||||||
|
}
|
||||||
|
|
||||||
|
static start() {
|
||||||
|
console.log('starting a system');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export default System;
|
13
src/r3.js
13
src/r3.js
|
@ -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;
|
||||||
|
|
|
@ -5,5 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
filename: 'r3.js',
|
filename: 'r3.js',
|
||||||
path: path.resolve(__dirname, 'dist')
|
path: path.resolve(__dirname, 'dist')
|
||||||
}
|
},
|
||||||
|
mode: 'development',
|
||||||
|
devtool: 'inline-source-map'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue