23 Commits

Author SHA1 Message Date
280d5a4137 Update branch [skip ci] 2024-09-15 15:39:32 +00:00
0c4aec4886 Actions: Update build branch name
All checks were successful
Build and Save Artifact / build (pull_request) Successful in 13s
2024-09-15 17:38:36 +02:00
56381e5c8f Build 2024-09-15 15:36:28 +00:00
6d5dd2125a Merge branch 'dev' of https://git.kozelkaricsi.hu/Cyanoure/NodeTest into dev
All checks were successful
Build and Save Artifact / build (pull_request) Successful in 14s
2024-09-15 17:35:50 +02:00
0d1725d93c Actions: build -> autobuild 2024-09-15 17:35:48 +02:00
ef603893d4 Merge branch 'main' into dev
All checks were successful
Build and Save Artifact / build (pull_request) Successful in 12s
2024-09-15 15:22:39 +00:00
f437c74634 Test commit
All checks were successful
Build and Save Artifact / build (pull_request) Successful in 13s
2024-09-15 17:19:02 +02:00
a1439f7c3d Test commit
All checks were successful
Build and Save Artifact / build (pull_request) Successful in 11s
2024-09-15 17:18:10 +02:00
7578ff60f0 Update Actions
All checks were successful
Build and Save Artifact / build (pull_request) Successful in 12s
2024-09-15 17:16:34 +02:00
02d87f88da Update Actions
Some checks failed
Build and Save Artifact / build (pull_request) Failing after 5s
2024-09-15 17:15:34 +02:00
0945bb417f Update Actions
Some checks failed
Build and Save Artifact / build (pull_request) Failing after 6s
2024-09-15 17:12:04 +02:00
44498fed29 Update Actions: Source branch name
Some checks failed
Build and Save Artifact / build (pull_request) Failing after 7s
2024-09-15 17:09:36 +02:00
8a4a11caf6 Actions: Other method for branch name
Some checks failed
Build and Save Artifact / build (pull_request) Failing after 6s
2024-09-15 17:06:27 +02:00
afb015fed1 Actions: Remove dev branch 2024-09-15 17:02:55 +02:00
849d2f96aa Merge pull request 'Remove default export' (#9) from dev into main
Reviewed-on: #9
2024-09-15 12:57:15 +00:00
32e046b048 Merge pull request 'Build' (#8) from dev into main
Reviewed-on: #8
2024-09-15 12:48:35 +00:00
54f2b9a45c Merge pull request 'Update' (#7) from dev into main
Reviewed-on: #7
2024-09-15 12:47:03 +00:00
9f86e667e1 Merge pull request 'Fix main file' (#6) from dev into main
Reviewed-on: #6
2024-09-15 12:44:24 +00:00
627d6c023e Merge pull request 'Module name' (#5) from dev into main
Reviewed-on: #5
2024-09-15 12:41:59 +00:00
74d3a2ba71 Merge pull request 'Idk? Build?' (#4) from dev into main
Reviewed-on: #4
2024-09-15 12:40:50 +00:00
d39bdaa95f Merge pull request 'TSUP' (#3) from dev into main
Reviewed-on: #3
2024-09-15 12:33:23 +00:00
a38767d4ea Merge pull request 'Move everything to root' (#2) from dev into main
Reviewed-on: #2
2024-09-15 11:55:58 +00:00
118db0b0fb Merge pull request 'TypeScript Module' (#1) from dev into main
Reviewed-on: #1
2024-09-15 11:51:34 +00:00
7 changed files with 81 additions and 4 deletions

View File

@ -4,7 +4,6 @@ on:
push: push:
branches: branches:
- main - main
- dev
pull_request: pull_request:
branches: branches:
- main - main
@ -24,16 +23,23 @@ jobs:
with: with:
node-version: '22' node-version: '22'
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
# Initialize build branch # Initialize build branch
- name: Initialize build branch - name: Initialize build branch
run: | run: |
SOURCE_BRANCH_NAME=${{ steps.extract_branch.outputs.branch }}
git config --global user.name 'Git Workflow Bot' git config --global user.name 'Git Workflow Bot'
git config --global user.email 'noreply@kozelkaricsi.hu' git config --global user.email 'noreply@kozelkaricsi.hu'
git fetch --all --unshallow git fetch origin
BRANCH_NAME="${GITHUB_REF_NAME}-build" git checkout ${SOURCE_BRANCH_NAME}
BRANCH_NAME="autobuild/${SOURCE_BRANCH_NAME}"
git fetch origin $BRANCH_NAME --unshallow || true # Allow failure if branch doesn't exist git fetch origin $BRANCH_NAME --unshallow || true # Allow failure if branch doesn't exist
git switch $BRANCH_NAME || git switch -c $BRANCH_NAME git switch $BRANCH_NAME || git switch -c $BRANCH_NAME
git merge ${GITHUB_REF_NAME} -m "Update branch [skip ci]" git merge ${SOURCE_BRANCH_NAME} -m "Update branch [skip ci]"
rm -rf dist rm -rf dist
# Install dependencies # Install dependencies

3
dist/index.d.mts vendored Normal file
View File

@ -0,0 +1,3 @@
declare function startTest(): void;
export { startTest };

3
dist/index.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
declare function startTest(): void;
export { startTest };

45
dist/index.js vendored Normal file
View File

@ -0,0 +1,45 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
startTest: () => startTest
});
module.exports = __toCommonJS(src_exports);
// src/test.ts
function test(i) {
console.log(`Hello, World! (#${i})`);
}
// src/index.ts
function startTest() {
console.log("Hello, World!");
let i = 0;
setInterval(() => {
i++;
test(i);
}, 1e3);
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
startTest
});
//# sourceMappingURL=index.js.map

1
dist/index.js.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../src/index.ts","../src/test.ts"],"sourcesContent":["import test from \"./test\";\n\nexport function startTest() {\n console.log(\"Hello, World!\");\n let i: number = 0;\n setInterval(() => {\n i++;\n test(i);\n }, 1000);\n}\n","export default function test(i: number) {\n console.log(`Hello, World! (#${i})`);\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ADAO,SAAS,YAAY;AACxB,UAAQ,IAAI,eAAe;AAC3B,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]}

18
dist/index.mjs vendored Normal file
View File

@ -0,0 +1,18 @@
// src/test.ts
function test(i) {
console.log(`Hello, World! (#${i})`);
}
// src/index.ts
function startTest() {
console.log("Hello, World!");
let i = 0;
setInterval(() => {
i++;
test(i);
}, 1e3);
}
export {
startTest
};
//# sourceMappingURL=index.mjs.map

1
dist/index.mjs.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../src/test.ts","../src/index.ts"],"sourcesContent":["export default function test(i: number) {\n console.log(`Hello, World! (#${i})`);\n}","import test from \"./test\";\n\nexport function startTest() {\n console.log(\"Hello, World!\");\n let i: number = 0;\n setInterval(() => {\n i++;\n test(i);\n }, 1000);\n}\n"],"mappings":";AAAe,SAAR,KAAsB,GAAW;AACpC,UAAQ,IAAI,mBAAmB,CAAC,GAAG;AACvC;;;ACAO,SAAS,YAAY;AACxB,UAAQ,IAAI,eAAe;AAC3B,MAAI,IAAY;AAChB,cAAY,MAAM;AACd;AACA,SAAK,CAAC;AAAA,EACV,GAAG,GAAI;AACX;","names":[]}