Skip to content

Commit

Permalink
Bug/local dev issues (#1254)
Browse files Browse the repository at this point in the history
* Check for github sponsor response

* run loadMemberFiles on dev

* Add concurrently for watching changes to members files

* use `join` to protect from running on Windows systems

* cleanup

* use join in loadMemberFiles

* Add PNPM_FLAGS to example
  • Loading branch information
danieltott authored Oct 4, 2024
1 parent 103adbc commit 3fc1a83
Show file tree
Hide file tree
Showing 6 changed files with 304 additions and 29 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Local url:
URL='http://localhost:9000'
PNPM_FLAGS=--shamefully-hoist

# IMGIX:
# By default, imgix is disabled locally. Uncomment the following line to view images through imgix:
Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@
"preinstall": "npx only-allow pnpm",
"format": "npx prettier --write --ignore-unknown --list-different \"**/*\"",
"lint": "next lint",
"dev": "cross-env NODE_ENV=development pnpm netlify dev",
"build-member-files": "node scripts/loadMemberFiles.js",
"local-dev": "cross-env NODE_ENV=development pnpm netlify dev",
"build": "next build",
"start": "next start",
"prebuild": "node scripts/loadMemberFiles.js"
"prebuild": "pnpm build-member-files",
"watch": "npm-watch",
"dev": "pnpm build-member-files && concurrently \"pnpm watch\" \"pnpm local-dev\""
},
"watch": {
"build-member-files": "src/content/members/**/*.ts"
},
"dependencies": {
"@heroicons/react": "^2.1.5",
Expand All @@ -37,6 +43,7 @@
"markdown-it": "^13.0.2",
"mdast-util-toc": "^7.1.0",
"next": "15.0.0-rc.0",
"npm-watch": "^0.13.0",
"react": "19.0.0-rc-04bd67a4-20240924",
"react-dom": "19.0.0-rc-04bd67a4-20240924",
"react-leaflet": "^4.2.1",
Expand Down Expand Up @@ -67,6 +74,7 @@
"@types/require-dir": "^1.0.4",
"@types/sanitize-html": "^2.13.0",
"all-contributors-cli": "^6.26.1",
"concurrently": "^9.0.1",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"eslint-config-next": "15.0.0-rc.0",
Expand Down
Loading

0 comments on commit 3fc1a83

Please sign in to comment.