-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js stack refactoring #4255
Merged
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5a86de6
Create node.profile
glitsj16 000a3f6
Create node-gyp.profile
glitsj16 65ce781
refactor npm as redirect
glitsj16 c493bad
Create npx.profile
glitsj16 65d01b9
Create nvm.profile
glitsj16 b56cb36
Create semver.profile
glitsj16 33905d8
refactor yarn as redirect
glitsj16 be51cf3
collect node.js stack configuration in common profile
glitsj16 2666c7a
add ~/.nvm to node section
glitsj16 f6ef2b2
account for node-gyp python dependency
glitsj16 678f3d8
read-only ~/.nvm for node.js stack
glitsj16 7d6f6f5
blacklist ~/.nvm for node.js stack
glitsj16 0f3088a
move env var comment cfr. profile.template
glitsj16 59eba46
Delete node-gyp.profile
glitsj16 65e2626
Delete npx.profile
glitsj16 5fa4e2a
Delete semver.profile
glitsj16 0a8a5fc
add node and nvm to new profiles section
glitsj16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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,15 @@ | ||
# Firejail profile for node-gyp | ||
# Description: Node.js native addon build tool | ||
quiet | ||
# This file is overwritten after every install/update | ||
# Persistent local customizations | ||
include node-gyp.local | ||
# Persistent global definitions | ||
include globals.local | ||
|
||
# Allow python (blacklisted by disable-interpreters.inc) | ||
include allow-python2.inc | ||
include allow-python3.inc | ||
|
||
# Redirect | ||
include nodejs-common.profile |
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,11 @@ | ||
# Firejail profile for node | ||
# Description: Evented I/O for V8 javascript | ||
quiet | ||
# This file is overwritten after every install/update | ||
# Persistent local customizations | ||
include node.local | ||
# Persistent global definitions | ||
include globals.local | ||
|
||
# Redirect | ||
include nodejs-common.profile |
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
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,10 @@ | ||
# Firejail profile for npx | ||
# Description: Execute npm package binaries | ||
quiet | ||
# Persistent local customizations | ||
include npx.local | ||
# Persistent global definitions | ||
include globals.local | ||
|
||
# Redirect | ||
include nodejs-common.profile |
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,13 @@ | ||
# Firejail profile for nvm | ||
# Description: Node Version Manager - Simple bash script to manage multiple active node.js versions | ||
quiet | ||
# This file is overwritten after every install/update | ||
# Persistent local customizations | ||
include nvm.local | ||
# Persistent global definitions | ||
include globals.local | ||
|
||
ignore noroot | ||
|
||
# Redirect | ||
include nodejs-common.profile |
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,10 @@ | ||
# Firejail profile for semver | ||
rusty-snake marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Description: The semantic version parser used by npm | ||
quiet | ||
# Persistent local customizations | ||
include semver.local | ||
# Persistent global definitions | ||
include globals.local | ||
|
||
# Redirect | ||
include nodejs-common.profile |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe prefer
read-write
? IDKThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that
read-write
sounds a lot more logical than theignore blah
construct. Just checked and I used it in git-cola, gnome-{logs,system-log} and yelp too apparently. Can't remember why OTOH but I'll change it after testing it gives the same result. That'll be over the weekend though, I'm clocking off for today. Thanks for the suggestions, much appreciated. And enjoy the weekend!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW: The only case where
ignore read-only
should be used instead ofread-write
are redirect profiles [and .locals] IMHO.