Switch to esbuild

This commit is contained in:
Bret Comnes 2023-01-17 11:54:48 -07:00
parent a9b4f04af1
commit f417d42694
No known key found for this signature in database
GPG Key ID: 3705F4634DC3A1AC
7 changed files with 21436 additions and 17413 deletions

View File

@ -8,7 +8,7 @@ on:
env: env:
FORCE_COLOR: 2 FORCE_COLOR: 2
node_version: lts/* node_version: 16
concurrency: # prevent concurrent deploys doing starnge things concurrency: # prevent concurrent deploys doing starnge things
group: deploy-to-neocities group: deploy-to-neocities

View File

@ -8,7 +8,7 @@ on:
required: true required: true
env: env:
node_version: lts/* node_version: 16
FORCE_COLOR: 2 FORCE_COLOR: 2
concurrency: # prevent concurrent releases concurrency: # prevent concurrent releases

View File

@ -12,7 +12,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
node: [lts/*] node: [16]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

38824
dist/index.js vendored

File diff suppressed because one or more lines are too long

8
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,22 +8,22 @@
}, },
"dependencies": { "dependencies": {
"@actions/core": "1.10.0", "@actions/core": "1.10.0",
"async-neocities": "2.1.4", "async-neocities": "2.1.5",
"minimatch": "5.1.2", "minimatch": "6.1.3",
"ms": "2.1.3", "ms": "2.1.3",
"pony-cause": "^2.1.4", "pony-cause": "^2.1.4",
"webassert": "3.0.2" "webassert": "3.0.2"
}, },
"devDependencies": { "devDependencies": {
"@siteup/cli": "^2.0.0", "@siteup/cli": "^2.0.0",
"@vercel/ncc": "^0.36.0",
"auto-changelog": "^2.0.0", "auto-changelog": "^2.0.0",
"browser-sync": "^2.27.7", "browser-sync": "^2.27.7",
"dependency-check": "^4.1.0", "dependency-check": "^4.1.0",
"gh-release": "^7.0.0", "gh-release": "^7.0.0",
"mkdirp": "^2.1.1", "mkdirp": "^2.1.1",
"npm-run-all2": "^6.0.0", "npm-run-all2": "^6.0.0",
"standard": "^17.0.0" "standard": "^17.0.0",
"esbuild": "^0.17.2"
}, },
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme", "homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
"keywords": [], "keywords": [],
@ -36,7 +36,7 @@
}, },
"scripts": { "scripts": {
"build": "npm run clean && run-p build:*", "build": "npm run clean && run-p build:*",
"build:action": "rm -rf dist && ncc build index.js -o dist -s", "build:action": "rm -rf dist && esbuild index.js --bundle --platform=node --target=node16 --sourcemap=external --outdir=dist",
"build:site": "siteup --src . --dest public", "build:site": "siteup --src . --dest public",
"clean": "rimraf public && mkdirp public", "clean": "rimraf public && mkdirp public",
"release": "git push --follow-tags && gh-release -y", "release": "git push --follow-tags && gh-release -y",