Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
markschwartzkopf committed Sep 30, 2023
0 parents commit 6807a87
Show file tree
Hide file tree
Showing 12 changed files with 6,592 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"globals": {
"__dirname": "readonly"
},
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0,
"no-prototype-builtins": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"no-mixed-spaces-and-tabs": 0
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
7 changes: 7 additions & 0 deletions .minify.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"js": {
"format": {
"ascii_only": true
}
}
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"prettier.singleQuote": true,
"prettier.tabWidth": 2,
"editor.detectIndentation": false,
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[xml]": {
"editor.defaultFormatter": "DotJoshJohnson.xml"
}
}
20 changes: 20 additions & 0 deletions build/inline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const fs = require('fs');

let mod = '';
if (process.argv[2]) mod = '.' + process.argv[2];
let html = fs
.readFileSync(__dirname + '/../dist/index' + mod + '.html')
.toString();
const js = fs.readFileSync(__dirname + '/../dist/bundle' + mod + '.js').toString();
/* const combinedBuffer =
Buffer.concat([
Buffer.from(html.slice(0, html.indexOf(' src=bundle.js')) + '>'),
js.slice(2),
Buffer.from('</script></html>')
]); */
html =
html.slice(0, html.indexOf(' src=bundle.js')) +
'>' +
js +
'</script></html>';
fs.writeFileSync(__dirname + '/../dist/obscameracontrol.html', html);
Loading

0 comments on commit 6807a87

Please sign in to comment.