Skip to content

Commit

Permalink
gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimeGoose committed Jul 1, 2022
1 parent 1dfc92e commit 8ffa917
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build
dev


.DS_Store
# Logs
Expand Down
20 changes: 20 additions & 0 deletions dev/dev.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {F122UDP} from '../src/F1_22_UDP';


const f122 = new F122UDP({address: "192.168.88.114"});
f122.start();

f122.on("participants",data => {
var header = data.m_header;
var playerIndex = data.m_header.m_playerCarIndex;
var player = data.m_participants[playerIndex];
console.log(player);

});


// ony for library development purposes
// process exit on ctrl+c
process.on('SIGINT', () => {
process.exit(1);
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "f1-22-udp",
"version": "1.1.3",
"version": "1.1.4",
"main": "build/src/F1_22_UDP.js",
"types": "build/src/F1_22_UDP.d.ts",
"files": [
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"scripts": {
"prepublishOnly": "npm run build",
"start": "npm run build && node build/dev/index.js",
"start": "npm run build && node build/dev/dev.js",
"build": "tsc",
"build:dev": "tsc --watch",
"build-prod": "tsc && npm run uglify",
Expand Down
6 changes: 0 additions & 6 deletions src/F1_22_UDP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,3 @@ export class F122UDP extends EventEmitter {
// process.exit(0);
}
}

// ony for library development purposes
// // process exit on ctrl+c
// process.on('SIGINT', () => {
// // process.exit(1);
// });

0 comments on commit 8ffa917

Please sign in to comment.