51 Commits

Author SHA1 Message Date
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
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
1ba617e863 Update Actions
Some checks failed
Build and Save Artifact / build (push) Successful in 12s
Build and Save Artifact / build (pull_request) Failing after 6s
2024-09-15 17:02:26 +02:00
c06b06c748 Actions: New username
Some checks failed
Build and Save Artifact / build (push) Successful in 12s
Build and Save Artifact / build (pull_request) Failing after 6s
2024-09-15 16:54:54 +02:00
fad9d4279b Test commit
All checks were successful
Build and Save Artifact / build (push) Successful in 14s
2024-09-15 16:52:37 +02:00
d11bca611e Actions: Add unshallow to fetch
All checks were successful
Build and Save Artifact / build (push) Successful in 12s
2024-09-15 16:51:42 +02:00
d596c6caba Update Actions
Some checks failed
Build and Save Artifact / build (push) Failing after 7s
2024-09-15 16:45:57 +02:00
2990d65a63 Actions: Revert revert git merge command
Some checks failed
Build and Save Artifact / build (push) Failing after 9s
2024-09-15 16:42:17 +02:00
0110936f32 Test
Some checks failed
Build and Save Artifact / build (push) Failing after 6s
2024-09-15 16:41:35 +02:00
158d85d821 Actions: Redo merge command
All checks were successful
Build and Save Artifact / build (push) Successful in 11s
2024-09-15 16:40:41 +02:00
c3710d152e Actions: Remove -a from commit
Some checks failed
Build and Save Artifact / build (push) Failing after 5s
2024-09-15 16:39:29 +02:00
b6cbdce51f Move git config
Some checks failed
Build and Save Artifact / build (push) Failing after 6s
2024-09-15 16:37:20 +02:00
81baa4f3d4 Actions: --allow-unrelated-histories
Some checks failed
Build and Save Artifact / build (push) Failing after 6s
2024-09-15 16:36:21 +02:00
cff26ff339 Actions: Add "Nothing to commit" to prevent fail
Some checks failed
Build and Save Artifact / build (push) Failing after 5s
2024-09-15 16:33:40 +02:00
f37033a178 Update Actions as ChatGPT recommended
Some checks failed
Build and Save Artifact / build (push) Failing after 9s
2024-09-15 16:30:38 +02:00
da25dac794 Actions: Switch branch first
All checks were successful
Build and Save Artifact / build (push) Successful in 11s
2024-09-15 16:27:23 +02:00
cbcdb66417 Actions: Merge if branch exists
All checks were successful
Build and Save Artifact / build (push) Successful in 11s
2024-09-15 16:25:33 +02:00
bdd36603df Version bump
All checks were successful
Build and Save Artifact / build (push) Successful in 11s
2024-09-15 16:17:33 +02:00
cc86f845a2 Hello, World!
All checks were successful
Build and Save Artifact / build (push) Successful in 12s
2024-09-15 16:16:10 +02:00
1ae8cbeef5 Update Actions
All checks were successful
Build and Save Artifact / build (push) Successful in 11s
2024-09-15 16:12:38 +02:00
28e3afafae Update Actions - Fix upstream error
Some checks failed
Build and Save Artifact / build (push) Failing after 10s
2024-09-15 16:10:46 +02:00
76f4106fd7 Update Actions
Some checks failed
Build and Save Artifact / build (push) Failing after 9s
2024-09-15 16:09:39 +02:00
8b72c4d148 Build with actions
Some checks failed
Build and Save Artifact / build (push) Failing after 0s
2024-09-15 16:06:59 +02:00
974597fd16 Update actions
All checks were successful
Build and Save Artifact / build (push) Successful in 12s
2024-09-15 15:10:30 +02:00
c753270446 Actions
All checks were successful
Build and Save Artifact / build (push) Successful in 1m17s
2024-09-15 15:07:13 +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
aa3fe02fd1 Remove default export 2024-09-15 14:56:38 +02:00
32e046b048 Merge pull request 'Build' (#8) from dev into main
Reviewed-on: #8
2024-09-15 12:48:35 +00:00
d536f73f9f Build 2024-09-15 14:48:08 +02:00
54f2b9a45c Merge pull request 'Update' (#7) from dev into main
Reviewed-on: #7
2024-09-15 12:47:03 +00:00
a3630d485d Update 2024-09-15 14:46:30 +02:00
9f86e667e1 Merge pull request 'Fix main file' (#6) from dev into main
Reviewed-on: #6
2024-09-15 12:44:24 +00:00
2ab803c2b6 Fix main file 2024-09-15 14:43:39 +02:00
627d6c023e Merge pull request 'Module name' (#5) from dev into main
Reviewed-on: #5
2024-09-15 12:41:59 +00:00
5cb236e678 Module name 2024-09-15 14:41:33 +02:00
74d3a2ba71 Merge pull request 'Idk? Build?' (#4) from dev into main
Reviewed-on: #4
2024-09-15 12:40:50 +00:00
79e34f051d Idk? Build? 2024-09-15 14:40:14 +02:00
d39bdaa95f Merge pull request 'TSUP' (#3) from dev into main
Reviewed-on: #3
2024-09-15 12:33:23 +00:00
fca0f47fb0 TSUP 2024-09-15 14:32:53 +02: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
d89a0fefbe Move everything to root 2024-09-15 13:55:29 +02:00
12 changed files with 2650 additions and 381 deletions

67
.github/workflows/Build.yml vendored Normal file
View File

@ -0,0 +1,67 @@
name: Build and Save Artifact
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
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
- name: Initialize build branch
run: |
SOURCE_BRANCH_NAME=${{ steps.extract_branch.outputs.branch }}
git config --global user.name 'Git Workflow Bot'
git config --global user.email 'noreply@kozelkaricsi.hu'
git fetch origin
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 switch $BRANCH_NAME || git switch -c $BRANCH_NAME
git merge ${SOURCE_BRANCH_NAME} -m "Update branch [skip ci]"
rm -rf dist
# Install dependencies
- name: Install dependencies
run: npm install
# Build the project
- name: Run npm build
run: npm run build
# Commit build files
- name: Commit build files to build branch
run: |
git add -f dist
git commit -m "Build" || echo "Nothing to commit"
git push origin HEAD --force # Push to the current branch
# Upload the build directory as an artifact
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: |
./dist
./package.json

130
.gitignore vendored
View File

@ -1 +1,131 @@
# ---> Node
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env .env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

131
app/.gitignore vendored
View File

@ -1,131 +0,0 @@
# ---> Node
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

238
app/package-lock.json generated
View File

@ -1,238 +0,0 @@
{
"name": "app",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "app",
"version": "1.0.0",
"hasInstallScript": true,
"license": "ISC",
"devDependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
}
},
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
"integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/trace-mapping": "0.3.9"
},
"engines": {
"node": ">=12"
}
},
"node_modules/@jridgewell/resolve-uri": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
"integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
"dev": true,
"license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.9",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
"integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/resolve-uri": "^3.0.3",
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
"node_modules/@tsconfig/node10": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",
"integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==",
"dev": true,
"license": "MIT"
},
"node_modules/@tsconfig/node12": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
"integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
"dev": true,
"license": "MIT"
},
"node_modules/@tsconfig/node14": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
"integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
"dev": true,
"license": "MIT"
},
"node_modules/@tsconfig/node16": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "22.5.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz",
"integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"undici-types": "~6.19.2"
}
},
"node_modules/acorn": {
"version": "8.12.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz",
"integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==",
"dev": true,
"license": "MIT",
"bin": {
"acorn": "bin/acorn"
},
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/acorn-walk": {
"version": "8.3.4",
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",
"integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",
"dev": true,
"license": "MIT",
"dependencies": {
"acorn": "^8.11.0"
},
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/arg": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
"dev": true,
"license": "MIT"
},
"node_modules/create-require": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
"dev": true,
"license": "MIT"
},
"node_modules/diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
}
},
"node_modules/make-error": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
"dev": true,
"license": "ISC"
},
"node_modules/ts-node": {
"version": "10.9.2",
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",
"integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@cspotcode/source-map-support": "^0.8.0",
"@tsconfig/node10": "^1.0.7",
"@tsconfig/node12": "^1.0.7",
"@tsconfig/node14": "^1.0.0",
"@tsconfig/node16": "^1.0.2",
"acorn": "^8.4.1",
"acorn-walk": "^8.1.1",
"arg": "^4.1.0",
"create-require": "^1.1.0",
"diff": "^4.0.1",
"make-error": "^1.1.1",
"v8-compile-cache-lib": "^3.0.1",
"yn": "3.1.1"
},
"bin": {
"ts-node": "dist/bin.js",
"ts-node-cwd": "dist/bin-cwd.js",
"ts-node-esm": "dist/bin-esm.js",
"ts-node-script": "dist/bin-script.js",
"ts-node-transpile-only": "dist/bin-transpile.js",
"ts-script": "dist/bin-script-deprecated.js"
},
"peerDependencies": {
"@swc/core": ">=1.2.50",
"@swc/wasm": ">=1.2.50",
"@types/node": "*",
"typescript": ">=2.7"
},
"peerDependenciesMeta": {
"@swc/core": {
"optional": true
},
"@swc/wasm": {
"optional": true
}
}
},
"node_modules/typescript": {
"version": "5.6.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz",
"integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/undici-types": {
"version": "6.19.8",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
"dev": true,
"license": "MIT",
"peer": true
},
"node_modules/v8-compile-cache-lib": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
"dev": true,
"license": "MIT"
},
"node_modules/yn": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
}
}
}
}

2
data/.gitignore vendored
View File

@ -1,2 +0,0 @@
/*
!.gitignore

View File

@ -9,9 +9,6 @@ services:
echo "Starting the node..."; echo "Starting the node...";
npm start' npm start'
volumes: volumes:
- ./app/:/usr/project/app/:rw - ./:/usr/project/app/:rw
- ./.env:/usr/project/.env:ro
- ./example.env:/usr/project/example.env:ro
- ./data/:/usr/project/data/:rw
ports: ports:
- "${PORT}:${PORT}" - "${PORT}:${PORT}"

2430
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,15 @@
{ {
"name": "app", "name": "node-module-test",
"version": "1.0.0", "version": "1.0.1",
"main": "index.ts", "main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files":[
"dist"
],
"scripts": { "scripts": {
"start": "ts-node src/index.ts", "start": "ts-node src/index.ts",
"build": "tsc", "build": "tsup"
"postinstall": "npm run build"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
@ -13,6 +17,7 @@
"description": "", "description": "",
"devDependencies": { "devDependencies": {
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"tsup": "^8.2.4",
"typescript": "^5.6.2" "typescript": "^5.6.2"
} }
} }

View File

@ -1,6 +1,7 @@
import test from "./test"; import test from "./test";
export default function startTest() { export function startTest() {
console.log("Hello, World!");
let i: number = 0; let i: number = 0;
setInterval(() => { setInterval(() => {
i++; i++;

10
tsup.config.ts Normal file
View File

@ -0,0 +1,10 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs", "esm"], // Build for commonJS and ESmodules
dts: true, // Generate declaration file (.d.ts)
splitting: false,
sourcemap: true,
clean: true,
});