Youen Toupin
3 years ago
7 changed files with 61 additions and 1 deletions
@ -0,0 +1,3 @@
|
||||
#!/bin/bash |
||||
cd src |
||||
../node_modules/typescript/bin/tsc |
@ -0,0 +1,14 @@
|
||||
{ |
||||
"name": "simulator", |
||||
"version": "1.0.0", |
||||
"lockfileVersion": 1, |
||||
"requires": true, |
||||
"dependencies": { |
||||
"typescript": { |
||||
"version": "4.4.3", |
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", |
||||
"integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==", |
||||
"dev": true |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,21 @@
|
||||
{ |
||||
"name": "simulator", |
||||
"version": "1.0.0", |
||||
"description": "Vehicle energy consumption and production simulator", |
||||
"main": "index.js", |
||||
"dependencies": {}, |
||||
"devDependencies": { |
||||
"typescript": "^4.4.3" |
||||
}, |
||||
"scripts": { |
||||
"test": "echo \"Error: no test specified\" && exit 1" |
||||
}, |
||||
"keywords": [ |
||||
"vehicle", |
||||
"energy", |
||||
"simulator", |
||||
"simulation" |
||||
], |
||||
"author": "vhelio", |
||||
"license": "ISC" |
||||
} |
@ -0,0 +1,3 @@
|
||||
document.addEventListener("DOMContentLoaded", function() { |
||||
document.getElementById('test').innerText = "Hello world!"; |
||||
}); |
@ -0,0 +1,11 @@
|
||||
{ |
||||
"compilerOptions": { |
||||
"module": "system", |
||||
"noImplicitAny": true, |
||||
"removeComments": true, |
||||
"preserveConstEnums": true, |
||||
"outFile": "../www/simulator.js", |
||||
"sourceMap": true |
||||
}, |
||||
"include": ["./**/*"] |
||||
} |
Loading…
Reference in new issue