Initial commit

This commit is contained in:
2025-06-05 07:36:01 -07:00
committed by GitHub
commit 31ae08cd60
5 changed files with 62 additions and 0 deletions

16
.github/workflows/npm-publish.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- run: npm ci || npm install
- run: npm run bundle
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

20
.gitignore vendored Normal file
View File

@@ -0,0 +1,20 @@
# Dependencies
node_modules/
# Build artifacts
*.tgz
dist/
# Environment variables
.env
.env.local
# OS generated files
.DS_Store
Thumbs.db
# IDE files
.vscode/
.idea/
*.swp
*.swo

1
README.md Normal file
View File

@@ -0,0 +1 @@

1
index.js Normal file
View File

@@ -0,0 +1 @@

24
package.json Normal file
View File

@@ -0,0 +1,24 @@
{
"name": "",
"version": "0.1.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"bundle": "npx esbuild index.js --bundle --outfile=dist/index.js --platform=browser --target=es2022 --format=esm"
},
"author": "PlanetRenox",
"license": "",
"dependencies": {
},
"devDependencies": {
"esbuild": "^0.20.0"
},
"engines": {
"node": ">=18.0.0"
},
"files": [
"index.js",
"README.md"
]
}