Skip to content

Commit

Permalink
symlink modules/ to node_modules/ for local development, but in verce…
Browse files Browse the repository at this point in the history
…l copy instead of symlink without a build since we commit build output
  • Loading branch information
trusktr committed Nov 1, 2023
1 parent c486fb8 commit b80361e
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.DS_Store
node_modules/
modules/
/modules
121 changes: 97 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"// Deploy happens when we push to origin/main, the build.yml file deploys to GitHub Pages.": "",
"start": "npm run build && npm run dev",
"dev": "node --experimental-import-meta-resolve ./dev-server.mjs",
"build": "npm run clean && npm run dist:copy && node ./build-api-docs.mjs && cpr node_modules modules",
"build": "npm run clean && npm run dist:copy && node ./build-api-docs.mjs && symlink-dir node_modules modules",
"build:vercel": "cpr node_modules modules",
"clean": "rimraf \"./api/**/!(.gitkeep)\" \"./guide/includes/**/!(.gitkeep)\"",
"test": "npm run prettier:check",
"prettier": "prettier . --write",
Expand All @@ -24,6 +25,7 @@
"@lume/live-code": "^0.4.0",
"@lume/three-projected-material": "^0.3.0",
"@lume/variable": "^0.10.0",
"cpr": "^3.0.1",
"docsify": "^4.9.4",
"docsify-copy-code": "^2.1.0",
"docsify-pagination": "^2.4.0",
Expand All @@ -45,10 +47,10 @@
"devDependencies": {
"@lume/cli": "lume/cli#v0.9",
"browser-sync": "^2.27.11",
"cpr": "^3.0.1",
"mkdirp": "^1.0.4",
"prettier": "3.0.3",
"readem": "^0.2.7",
"rimraf": "^3.0.2"
"rimraf": "^3.0.2",
"symlink-dir": "^5.2.0"
}
}

0 comments on commit b80361e

Please sign in to comment.