Comments (3)
I agree, it would be desirable to avoid installing build dependencies globally. Do you have a solution in mind?
The original impetus for installing these dependencies globally is that I found it analogous to other projects requiring system packages in order to build (ie: I've used python projects that required the cairo
package to build). The analogy isn't perfect, so I'm happy to change based on feedback!
Fwiw, some build dependencies aren't npm packages (like hugo, wasm-opt, and flatc), so any solution would need to encompass these. And hugo installation would need to drop the dpkg
for this to work on fedora.
from pdx-tools.
It might be just my obsedancy speaking, but I don't like installing node packages, python modules using pip
globally and I am really trying to get as much of project dependencies installed without root permissions.
I've had success with following patch to justfile:
set -euxo pipefail
MY_TMP="$(mktemp -d)"
trap 'rm -rf -- "$MY_TMP"' EXIT
-
+
+ npm config set prefix '~/.local/'
+ mkdir -p ~/.local/bin
+
+ if [[ ! ":$PATH:" == *":$HOME/.local/bin/:"* ]]; then
+ echo 'export PATH=~/.local/bin/:$PATH' >> ~/.bashrc
+ export PATH=~/.local/bin/:$PATH
+ fi
+
npm install -g [email protected]
npm install -g @cloudflare/wrangler
The downside is that it works just for bash and not for other shells but as the justfile executes bash so I suppose this is not an issue.
The real issue is that https://github.com/gohugoio/hugo does not provide .rpm packaged binaries so I'll need to look into this one further.
from pdx-tools.
With devcontainer support added in #70 and subsequent patches, I think it is a decent state to close this issue. Happy to incorporate any further feedback to make contributions easier!
from pdx-tools.
Related Issues (20)
- Add options to display more elements in the tables. HOT 6
- Add a military table HOT 1
- Add a global table
- Make uploaded save private HOT 2
- Chrome broken timelapse recording HOT 1
- How to use VP9 in VideoEncoder HOT 3
- Provide way to see list of lucky nations HOT 1
- Map not getting rendered on Chrome and Firefox on MacOS with M1 chip HOT 9
- Map standalone not working HOT 4
- EU4 Crashes After Loading Melted Save w/ RNW HOT 3
- Help getting started: Victoria 3 local parsing HOT 3
- Show supported savegame version range HOT 4
- Mobile map can be broken by website zooming HOT 1
- Tooltips come up too often on mobile when moving/zooming
- Support HiDPI displays HOT 1
- Add support to analyze saves from cloud storage on mobile
- Add share button
- Website does not interact with browser addons for dark mode HOT 3
- Exporting map results in blank image for devices with small texture size HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdx-tools.