@taxcore/hackjs 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.editorconfig ADDED
@@ -0,0 +1,10 @@
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ insert_final_newline = true
6
+
7
+ [*.{js,json,yml}]
8
+ charset = utf-8
9
+ indent_style = space
10
+ indent_size = 2
package/.gitattributes ADDED
@@ -0,0 +1,4 @@
1
+ /.yarn/** linguist-vendored
2
+ /.yarn/releases/* binary
3
+ /.yarn/plugins/**/* binary
4
+ /.pnp.* binary linguist-generated
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # TAXCoreHackJS
@@ -0,0 +1,6 @@
1
+ export interface ServerPlugin {
2
+ OnServerStart(): void;
3
+ readonly name: string;
4
+ readonly guid: string;
5
+ }
6
+ export declare const plugins: ServerPlugin[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.plugins = void 0;
4
+ exports.plugins = [];
5
+ function Plugin() {
6
+ return function (target) {
7
+ exports.plugins.push(target);
8
+ };
9
+ }
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@taxcore/hackjs",
3
+ "version": "0.0.1",
4
+ "packageManager": "yarn@4.6.0",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "devDependencies": {
9
+ "@types/node": "^25.9.2",
10
+ "typescript": "^6.0.3"
11
+ },
12
+ "scripts": {
13
+ "build": "tsc"
14
+ },
15
+ "main": "dist/PluginSystem.js",
16
+ "types": "dist/PluginSystem.d.ts"
17
+
18
+ }
@@ -0,0 +1,15 @@
1
+
2
+
3
+ export interface ServerPlugin {
4
+ OnServerStart(): void;
5
+ readonly name: string;
6
+ readonly guid: string;
7
+ }
8
+
9
+ export const plugins: ServerPlugin[] = [];
10
+
11
+ function Plugin() {
12
+ return function(target: ServerPlugin){
13
+ plugins.push(target);
14
+ }
15
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "target": "es2020",
5
+ "rootDir": "src/",
6
+ "outDir": "dist/",
7
+ "declaration": true,
8
+ "experimentalDecorators": true
9
+ },
10
+ "exclude": [
11
+ "node_modules",
12
+ "dist/"
13
+ ]
14
+ }