mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
cloudflare workers: wrangler output bundled JS
This commit is contained in:
2
.github/workflows/actions.yml
vendored
2
.github/workflows/actions.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env
|
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env
|
||||||
- run: cd app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/
|
- run: cd app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/
|
||||||
- run: cd serverless/aws && python create_lambda_function.py && cp lambda_function.zip ../../app/dist
|
- run: cd serverless/aws && python create_lambda_function.py && cp lambda_function.zip ../../app/dist
|
||||||
- run: cd serverless/cloudflare && npm install && npm run build && cp dist/worker.js ../../app/dist
|
- run: cd serverless/cloudflare && npm install && npm run build && cp dist/index.js ../../app/dist
|
||||||
- name: build_app
|
- name: build_app
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
"start": "wrangler dev",
|
"start": "wrangler dev",
|
||||||
"deploy": "wrangler publish",
|
"deploy": "wrangler publish",
|
||||||
"test": "node -r esbuild-runner/register src/index.test.ts",
|
"test": "node -r esbuild-runner/register src/index.test.ts",
|
||||||
"tsc": "tsc --watch"
|
"tsc": "tsc --watch",
|
||||||
|
"build": "wrangler publish --outdir dist --dry-run"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild-runner": "^2.2.2",
|
"esbuild-runner": "^2.2.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user