implementing source

This commit is contained in:
Jonas Pfalzgraf 2023-01-23 14:41:48 +01:00
parent 4d4e882e18
commit d903afab78
6 changed files with 10 additions and 10 deletions

View file

@ -47,4 +47,4 @@
"dependencies": { "dependencies": {
"@webcomponents/custom-elements": "^1.5.1" "@webcomponents/custom-elements": "^1.5.1"
} }
} }

View file

@ -1,4 +1,4 @@
import { Session } from "./classes/session.js" import { Session } from "./classes/session"
class App { class App {
@ -27,4 +27,4 @@ class App {
} }
} }
new App(); new App();

View file

@ -1,5 +1,5 @@
import { Session } from "./classes/session.js"; import { Session } from "./classes/session";
import { BasicButton } from "./components/button.js"; import { BasicButton } from "./components/button";
class Settings { class Settings {

View file

@ -10,8 +10,8 @@
// "allowJs": true, /* Allow javascript files to be compiled. */ // "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */ // "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */ "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true /* Generates corresponding '.map' file. */, "sourceMap": true /* Generates corresponding '.map' file. */,
// "outFile": "./public/js/app.js", /* Concatenate and emit output to single file. */ // "outFile": "./public/js/app.js", /* Concatenate and emit output to single file. */
"outDir": "./dist/js/" /* Redirect output structure to the directory. */, "outDir": "./dist/js/" /* Redirect output structure to the directory. */,
@ -26,7 +26,7 @@
"moduleResolution": "node", "moduleResolution": "node",
/* Strict Type-Checking Options */ /* Strict Type-Checking Options */
"strict": true /* Enable all strict type-checking options. */, "strict": true /* Enable all strict type-checking options. */,
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */ // "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */ // "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

View file

@ -1,7 +1,7 @@
const path = require('path'); const path = require('path');
module.exports = { module.exports = {
entry: './src/app.ts', entry: './src/background.ts',
mode: 'production', mode: 'production',
devtool: 'source-map', devtool: 'source-map',
module: { module: {

View file

@ -1,7 +1,7 @@
const path = require('path'); const path = require('path');
module.exports = { module.exports = {
entry: './src/app.ts', entry: './src/settings.ts',
mode: 'production', mode: 'production',
devtool: 'source-map', devtool: 'source-map',
module: { module: {