forked from chmac/nostr-map
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
23 changed files
with
4,766 additions
and
2,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,16 @@ jobs: | |
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
node-version: '20' | ||
|
||
- name: Write SHA into file | ||
run: echo "export const BUILD_SHA = \"${GITHUB_SHA}\";" > build.ts | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Prepare Yarn | ||
run: corepack prepare [email protected] --activate | ||
|
||
- name: Configure git to use HTTPS instead of SSH | ||
run: git config --global url."https://".insteadOf ssh:// | ||
|
@@ -32,4 +41,3 @@ jobs: | |
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules/ | |
dist/ | ||
.parcel-cache/ | ||
tmp/ | ||
.yarn/install-state.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
lts/hydrogen | ||
lts/iron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
nodeLinker: node-modules | ||
|
||
npmScopes: | ||
jsr: | ||
npmRegistryServer: "https://npm.jsr.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
FROM node:20 | ||
## | ||
# NOTE | ||
# This docker file doesn't work, somehow node_modules is not created by `yarn install` | ||
# We're not using this, so leaving it alone for now | ||
|
||
FROM node:22 | ||
|
||
WORKDIR /app | ||
|
||
COPY src package.json yarn.lock ./ | ||
COPY src /app/src/ | ||
COPY public /app/public/ | ||
COPY package.json yarn.lock ./ | ||
|
||
# bugfix, stop npm from using ssh even when https is specified | ||
RUN git config --global url."https://".insteadOf ssh:// | ||
|
||
RUN corepack enable | ||
|
||
RUN mkdir node_modules | ||
|
||
RUN yarn install | ||
|
||
CMD ["npm", "run", "start"] | ||
# RUN yarn build | ||
|
||
CMD ["yarn", "start"] | ||
|
||
EXPOSE 1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const BUILD_SHA = "dev"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"name": "nostr-map", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "NOSTR notes on maps", | ||
"source": "src/index.html", | ||
"repository": "[email protected]:chmac/nostr-map.git", | ||
"repository": "[email protected]:trustroots/nostr-map.git", | ||
"author": "Simon & Callum", | ||
"license": "AGPL-3.0-or-later", | ||
"private": false, | ||
"scripts": { | ||
"start": "parcel --no-cache src/index.html", | ||
"build": "yarn build:parcel && yarn build:copy-public", | ||
"build:parcel": "parcel build", | ||
"build:parcel": "parcel build --no-scope-hoist", | ||
"build:copy-public": "cp public/* dist/", | ||
"prettier": "prettier --write src/", | ||
"deploy:build": "parcel build --public-url /nostr-map", | ||
|
@@ -22,15 +21,26 @@ | |
"@types/dompurify": "^3.0.5", | ||
"@types/leaflet": "^1.9.0", | ||
"gh-pages": "^5.0.0", | ||
"parcel": "^2.8.3", | ||
"parcel": "^2.12.0", | ||
"prettier": "2.8.3" | ||
}, | ||
"dependencies": { | ||
"@henrygd/queue": "npm:@jsr/henrygd__queue@^1.0.6", | ||
"@nostrify/nostrify": "npm:@jsr/nostrify__nostrify@^0.30.0", | ||
"dompurify": "^3.1.4", | ||
"leaflet": "^1.9.3", | ||
"leaflet.sidepanel": "https://github.com/maxwell-ilai/Leaflet.SidePanel", | ||
"nostr-tools": "^1.2.1", | ||
"pluscodes": "^2.6.0", | ||
"process": "^0.11.10", | ||
"sweetalert2": "^11.11.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"@parcel/resolver-default": { | ||
"packageExports": true | ||
}, | ||
"alias": { | ||
"process": "process/browser.js", | ||
"buffer": "buffer" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.