From eb97f823b079a7a6f803111285c2a8bcfba924d6 Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Wed, 22 May 2024 14:28:22 -0400 Subject: [PATCH] replace makefile with deno tasks --- deno.json | 11 ++++ deno.lock | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++ jsr.json | 5 -- makefile | 7 --- mod.ts | 5 ++ src/index.js | 5 -- 6 files changed, 189 insertions(+), 17 deletions(-) create mode 100644 deno.json create mode 100644 deno.lock delete mode 100644 jsr.json delete mode 100644 makefile create mode 100644 mod.ts delete mode 100644 src/index.js diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..e70fef4 --- /dev/null +++ b/deno.json @@ -0,0 +1,11 @@ +{ + "name": "@n2geoff/um", + "version": "0.4.1", + "exports": "./mod.ts", + "tasks": { + "dev": "deno run --watch mod.ts", + "format": "deno run -A npm:rollup mod.ts --file dist/um.js --format esm", + "minify": "deno run -A npm:terser dist/um.js -c -o dist/um.min.js --source-map url", + "build": "deno task format && deno task minify" + } +} \ No newline at end of file diff --git a/deno.lock b/deno.lock new file mode 100644 index 0000000..dab5420 --- /dev/null +++ b/deno.lock @@ -0,0 +1,173 @@ +{ + "version": "3", + "packages": { + "specifiers": { + "npm:rollup": "npm:rollup@4.18.0", + "npm:terser": "npm:terser@5.31.0" + }, + "npm": { + "@jridgewell/gen-mapping@0.3.5": { + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dependencies": { + "@jridgewell/set-array": "@jridgewell/set-array@1.2.1", + "@jridgewell/sourcemap-codec": "@jridgewell/sourcemap-codec@1.4.15", + "@jridgewell/trace-mapping": "@jridgewell/trace-mapping@0.3.25" + } + }, + "@jridgewell/resolve-uri@3.1.2": { + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dependencies": {} + }, + "@jridgewell/set-array@1.2.1": { + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dependencies": {} + }, + "@jridgewell/source-map@0.3.6": { + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", + "dependencies": { + "@jridgewell/gen-mapping": "@jridgewell/gen-mapping@0.3.5", + "@jridgewell/trace-mapping": "@jridgewell/trace-mapping@0.3.25" + } + }, + "@jridgewell/sourcemap-codec@1.4.15": { + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dependencies": {} + }, + "@jridgewell/trace-mapping@0.3.25": { + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dependencies": { + "@jridgewell/resolve-uri": "@jridgewell/resolve-uri@3.1.2", + "@jridgewell/sourcemap-codec": "@jridgewell/sourcemap-codec@1.4.15" + } + }, + "@rollup/rollup-android-arm-eabi@4.18.0": { + "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==", + "dependencies": {} + }, + "@rollup/rollup-android-arm64@4.18.0": { + "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==", + "dependencies": {} + }, + "@rollup/rollup-darwin-arm64@4.18.0": { + "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==", + "dependencies": {} + }, + "@rollup/rollup-darwin-x64@4.18.0": { + "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==", + "dependencies": {} + }, + "@rollup/rollup-linux-arm-gnueabihf@4.18.0": { + "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==", + "dependencies": {} + }, + "@rollup/rollup-linux-arm-musleabihf@4.18.0": { + "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==", + "dependencies": {} + }, + "@rollup/rollup-linux-arm64-gnu@4.18.0": { + "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==", + "dependencies": {} + }, + "@rollup/rollup-linux-arm64-musl@4.18.0": { + "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==", + "dependencies": {} + }, + "@rollup/rollup-linux-powerpc64le-gnu@4.18.0": { + "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==", + "dependencies": {} + }, + "@rollup/rollup-linux-riscv64-gnu@4.18.0": { + "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==", + "dependencies": {} + }, + "@rollup/rollup-linux-s390x-gnu@4.18.0": { + "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==", + "dependencies": {} + }, + "@rollup/rollup-linux-x64-gnu@4.18.0": { + "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==", + "dependencies": {} + }, + "@rollup/rollup-linux-x64-musl@4.18.0": { + "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==", + "dependencies": {} + }, + "@rollup/rollup-win32-arm64-msvc@4.18.0": { + "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==", + "dependencies": {} + }, + "@rollup/rollup-win32-ia32-msvc@4.18.0": { + "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==", + "dependencies": {} + }, + "@rollup/rollup-win32-x64-msvc@4.18.0": { + "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==", + "dependencies": {} + }, + "@types/estree@1.0.5": { + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dependencies": {} + }, + "acorn@8.11.3": { + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dependencies": {} + }, + "buffer-from@1.1.2": { + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dependencies": {} + }, + "commander@2.20.3": { + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dependencies": {} + }, + "fsevents@2.3.3": { + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dependencies": {} + }, + "rollup@4.18.0": { + "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", + "dependencies": { + "@rollup/rollup-android-arm-eabi": "@rollup/rollup-android-arm-eabi@4.18.0", + "@rollup/rollup-android-arm64": "@rollup/rollup-android-arm64@4.18.0", + "@rollup/rollup-darwin-arm64": "@rollup/rollup-darwin-arm64@4.18.0", + "@rollup/rollup-darwin-x64": "@rollup/rollup-darwin-x64@4.18.0", + "@rollup/rollup-linux-arm-gnueabihf": "@rollup/rollup-linux-arm-gnueabihf@4.18.0", + "@rollup/rollup-linux-arm-musleabihf": "@rollup/rollup-linux-arm-musleabihf@4.18.0", + "@rollup/rollup-linux-arm64-gnu": "@rollup/rollup-linux-arm64-gnu@4.18.0", + "@rollup/rollup-linux-arm64-musl": "@rollup/rollup-linux-arm64-musl@4.18.0", + "@rollup/rollup-linux-powerpc64le-gnu": "@rollup/rollup-linux-powerpc64le-gnu@4.18.0", + "@rollup/rollup-linux-riscv64-gnu": "@rollup/rollup-linux-riscv64-gnu@4.18.0", + "@rollup/rollup-linux-s390x-gnu": "@rollup/rollup-linux-s390x-gnu@4.18.0", + "@rollup/rollup-linux-x64-gnu": "@rollup/rollup-linux-x64-gnu@4.18.0", + "@rollup/rollup-linux-x64-musl": "@rollup/rollup-linux-x64-musl@4.18.0", + "@rollup/rollup-win32-arm64-msvc": "@rollup/rollup-win32-arm64-msvc@4.18.0", + "@rollup/rollup-win32-ia32-msvc": "@rollup/rollup-win32-ia32-msvc@4.18.0", + "@rollup/rollup-win32-x64-msvc": "@rollup/rollup-win32-x64-msvc@4.18.0", + "@types/estree": "@types/estree@1.0.5", + "fsevents": "fsevents@2.3.3" + } + }, + "source-map-support@0.5.21": { + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dependencies": { + "buffer-from": "buffer-from@1.1.2", + "source-map": "source-map@0.6.1" + } + }, + "source-map@0.6.1": { + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dependencies": {} + }, + "terser@5.31.0": { + "integrity": "sha512-Q1JFAoUKE5IMfI4Z/lkE/E6+SwgzO+x4tq4v1AyBLRj8VSYvRO6A/rQrPg1yud4g0En9EKI1TvFRF2tQFcoUkg==", + "dependencies": { + "@jridgewell/source-map": "@jridgewell/source-map@0.3.6", + "acorn": "acorn@8.11.3", + "commander": "commander@2.20.3", + "source-map-support": "source-map-support@0.5.21" + } + } + } + }, + "remote": {} +} diff --git a/jsr.json b/jsr.json deleted file mode 100644 index e9e529b..0000000 --- a/jsr.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "@n2geoff/um", - "version": "0.4.0", - "exports": "./src/index.js" - } \ No newline at end of file diff --git a/makefile b/makefile deleted file mode 100644 index f74ec1c..0000000 --- a/makefile +++ /dev/null @@ -1,7 +0,0 @@ -build: - bunx rollup src/index.js --file dist/um.js --format esm - -minify: - bunx terser dist/um.js -c -o dist/um.min.js --source-map url - -all: build minify diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..c164ad9 --- /dev/null +++ b/mod.ts @@ -0,0 +1,5 @@ +import h from "./src/tag.js"; +import app from "./src/app.js"; + +export {app}; +export {h}; \ No newline at end of file diff --git a/src/index.js b/src/index.js deleted file mode 100644 index fc75276..0000000 --- a/src/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import h from "./tag.js"; -import app from "./app.js"; - -export {app}; -export {h};