-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Flox/Nix dev env tooling dependencies (Node, NPM, Yarn, NCU, etc.)
- Loading branch information
1 parent
70a093d
commit 0ee0b48
Showing
5 changed files
with
490 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
run/ | ||
cache/ | ||
lib/ | ||
log/ | ||
NPM_PREFIX/ | ||
NPM_CACHE/ | ||
YARN_CACHE/ |
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,4 @@ | ||
{ | ||
"name": "ace", | ||
"version": 1 | ||
} |
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,282 @@ | ||
{ | ||
"lockfile-version": 1, | ||
"manifest": { | ||
"version": 1, | ||
"install": { | ||
"nodejs_22": { | ||
"pkg-path": "nodejs_22" | ||
}, | ||
"yarn": { | ||
"pkg-path": "yarn" | ||
} | ||
}, | ||
"vars": { | ||
"CLICOLOR": "1", | ||
"FLOX_DISABLE_METRICS": "true" | ||
}, | ||
"hook": { | ||
"on-activate": "echo \"##################################################\";\necho \"########## FLOX ACTIVATE...\";\n\nPWD=$(pwd);\necho \"-----> PWD: ${PWD}\";\n\n#_FLOX_ENV_LOG_DIR\nFLOX_ENV_DIR=\"${FLOX_ENV_CACHE}/..\"\necho \"-----> FLOX_ENV_DIR: ${FLOX_ENV_DIR}\";\n\necho \"=====> NODE VERSION: $(node --version)\";\nWHICH_NODE=$(which node);\necho \".....> NODE WHICH: ${WHICH_NODE}\";\nls -alshF --color=auto \"${WHICH_NODE}\";\n\necho \"=====> NPM VERSION (init): $(npm --version)\";\nWHICH_NPM=$(which npm);\necho \".....> NPM WHICH: ${WHICH_NPM}\";\nls -alshF --color=auto \"${WHICH_NPM}\";\n\necho \"=====> YARN VERSION: $(yarn --version)\";\nWHICH_YARN=$(which yarn);\necho \".....> YARN WHICH: ${WHICH_YARN}\";\nls -alshF --color=auto \"${WHICH_YARN}\";\n\necho \"-----> NPM CONFIG PREFIX (init): $(npm config get prefix)\";\necho \"-----> NPM_CONFIG_PREFIX (init): ${NPM_CONFIG_PREFIX}\";\n\necho \"-----> NPM CONFIG CACHE (init): $(npm config get cache)\"\necho \"-----> NPM_CONFIG_CACHE (init): ${NPM_CONFIG_CACHE}\";\n\nexport YARN_CACHE_DIR=\"${FLOX_ENV_DIR}/YARN_CACHE\";\nexport YARN_CACHE_FOLDER=\"${YARN_CACHE_DIR}\";\nyarn config set cache-folder \"${YARN_CACHE_DIR}\";\n\necho \"-----> YARN CACHE DIR: $(yarn cache dir)\";\necho \"-----> YARN_CACHE_DIR: ${YARN_CACHE_DIR}\";\necho \"-----> YARN_CACHE_FOLDER: ${YARN_CACHE_FOLDER}\";\n\n# envName=\"${_FLOX_ACTIVE_ENVIRONMENTS##:*}\";\n#echo \"${envName}\";\n#export NPM_CONFIG_PREFIX=\"/tmp/${envName}-npm\";\n\nexport NPM_CONFIG_PREFIX=\"${FLOX_ENV_DIR}/NPM_PREFIX\";\necho \"-----> NPM CONFIG PREFIX: $(npm config get prefix)\";\necho \"-----> NPM_CONFIG_PREFIX: ${NPM_CONFIG_PREFIX}\";\n#### rm -rf \"$NPM_CONFIG_PREFIX\";\nmkdir -p \"$NPM_CONFIG_PREFIX\";\nls -alshF --color=auto \"$NPM_CONFIG_PREFIX\";\nls -alshF --color=auto \"$NPM_CONFIG_PREFIX/bin\";\nls -alshF --color=auto \"$NPM_CONFIG_PREFIX/lib\";\nls -alshF --color=auto \"$NPM_CONFIG_PREFIX/lib/node_modules\";\n\nexport NPM_CONFIG_CACHE=\"${FLOX_ENV_DIR}/NPM_CACHE\";\necho \"-----> NPM CONFIG CACHE: $(npm config get cache)\"\necho \"-----> NPM_CONFIG_CACHE: ${NPM_CONFIG_CACHE}\";\n#### rm -rf \"$NPM_CONFIG_CACHE\";\nmkdir -p \"$NPM_CONFIG_CACHE\";\nls -alshF --color=auto \"$NPM_CONFIG_CACHE\";\n\necho \"-----> NODE_PATH (init): ${NODE_PATH}\";\nexport NODE_PATH=\"$NPM_CONFIG_PREFIX/lib/node_modules${NODE_PATH:+:$NODE_PATH}\";\necho \"-----> NODE_PATH: ${NODE_PATH}\";\n\nexport PATH=\"$NPM_CONFIG_PREFIX/bin:$PATH\";\n\nnpm install -g npm\nnpm install -g npm-check-updates\n" | ||
}, | ||
"profile": { | ||
"common": "echo \"##################################################\";\necho \"########## FLOX PROFILE COMMON (${SHELL})...\";\n\nPWD=$(pwd);\necho \"-----> PWD: ${PWD}\";\n\necho \"=====> NODE VERSION: $(node --version)\";\nWHICH_NODE=$(which node);\necho \".....> NODE WHICH: ${WHICH_NODE}\";\nls -alshF --color=auto \"${WHICH_NODE}\";\n\necho \"=====> NPM VERSION: $(npm --version)\";\nWHICH_NPM=$(which npm);\necho \".....> NPM WHICH: ${WHICH_NPM}\";\nls -alshF --color=auto \"${WHICH_NPM}\";\n\necho \"=====> YARN VERSION: $(yarn --version)\";\nWHICH_YARN=$(which yarn);\necho \".....> YARN WHICH: ${WHICH_YARN}\";\nls -alshF --color=auto \"${WHICH_YARN}\";\n\necho \"-----> NPM CONFIG PREFIX: $(npm config get prefix)\";\necho \"-----> NPM_CONFIG_PREFIX: ${NPM_CONFIG_PREFIX}\";\n\necho \"-----> NPM CONFIG CACHE: $(npm config get cache)\";\necho \"-----> NPM_CONFIG_CACHE: ${NPM_CONFIG_CACHE}\";\n\necho \"-----> YARN CACHE DIR: $(yarn cache dir)\";\necho \"-----> YARN_CACHE_DIR: ${YARN_CACHE_DIR}\";\necho \"-----> YARN_CACHE_FOLDER: ${YARN_CACHE_FOLDER}\";\n\necho \"=====> NCU VERSION: $(ncu --version)\";\nWHICH_NCU=$(which ncu);\necho \".....> NCU WHICH: ${WHICH_NCU}\";\nls -alshF --color=auto \"${WHICH_NCU}\";\n\necho \"=====> GIT VERSION: $(git --version)\";\nWHICH_GIT=$(which git);\necho \".....> GIT WHICH: ${WHICH_GIT}\";\nls -alshF --color=auto \"${WHICH_GIT}\";\n\nENV=$(env);\necho \"-----> ENV: ${ENV}\";\necho \"||||||||||||||||||||||||||\";\n\necho \"-----> DEBUG: ${DEBUG}\";\n\necho \"-----> USER: ${USER}\";\necho \"-----> USERNAME: ${USERNAME}\";\n\necho \"-----> NODE_ENV: ${NODE_ENV}\";\n\ngit branch\ngit status\n" | ||
}, | ||
"options": { | ||
"systems": [ | ||
"aarch64-darwin", | ||
"aarch64-linux", | ||
"x86_64-darwin", | ||
"x86_64-linux" | ||
], | ||
"allow": { | ||
"licenses": [] | ||
}, | ||
"semver": {} | ||
} | ||
}, | ||
"packages": [ | ||
{ | ||
"attr_path": "nodejs_22", | ||
"broken": false, | ||
"derivation": "/nix/store/ghzk28xlqjdjqyicfng40r4hyglr7nxm-nodejs-22.10.0.drv", | ||
"description": "Event-driven I/O framework for the V8 JavaScript engine", | ||
"install_id": "nodejs_22", | ||
"license": "MIT", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "nodejs-22.10.0", | ||
"pname": "nodejs_22", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "nodejs-22.10.0", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"libv8": "/nix/store/6rgrpzdbylr432xa1r4mi9wc5i2bgvw0-nodejs-22.10.0-libv8", | ||
"out": "/nix/store/3r50cvcf5d7fahnkx4nkr2nk3h377h4s-nodejs-22.10.0" | ||
}, | ||
"system": "aarch64-darwin", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "nodejs_22", | ||
"broken": false, | ||
"derivation": "/nix/store/59bhgby39hvvss9a3dmzz3pa4mch6fqq-nodejs-22.10.0.drv", | ||
"description": "Event-driven I/O framework for the V8 JavaScript engine", | ||
"install_id": "nodejs_22", | ||
"license": "MIT", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "nodejs-22.10.0", | ||
"pname": "nodejs_22", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "nodejs-22.10.0", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"libv8": "/nix/store/3df03syl7rz631377l76mjvbizrnl26c-nodejs-22.10.0-libv8", | ||
"out": "/nix/store/fxx7iihgsj0ysdvz09wsazi9ih6g1ss8-nodejs-22.10.0" | ||
}, | ||
"system": "aarch64-linux", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "nodejs_22", | ||
"broken": false, | ||
"derivation": "/nix/store/8qc98kwvbnakhirfb6w8x38qnwdi25p8-nodejs-22.10.0.drv", | ||
"description": "Event-driven I/O framework for the V8 JavaScript engine", | ||
"install_id": "nodejs_22", | ||
"license": "MIT", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "nodejs-22.10.0", | ||
"pname": "nodejs_22", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "nodejs-22.10.0", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"libv8": "/nix/store/qs45lfyf8rzgh1ghb1g2m9pa50njwxcx-nodejs-22.10.0-libv8", | ||
"out": "/nix/store/vh70nd2rjh0nzfqsn4iwibz1s07f4fhv-nodejs-22.10.0" | ||
}, | ||
"system": "x86_64-darwin", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "nodejs_22", | ||
"broken": false, | ||
"derivation": "/nix/store/wxa0y02xqvkr220dgbgjnncyqp4pr4br-nodejs-22.10.0.drv", | ||
"description": "Event-driven I/O framework for the V8 JavaScript engine", | ||
"install_id": "nodejs_22", | ||
"license": "MIT", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "nodejs-22.10.0", | ||
"pname": "nodejs_22", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "nodejs-22.10.0", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"libv8": "/nix/store/j0nfkz29q3iigzl6ly1a75bivd1bsqc3-nodejs-22.10.0-libv8", | ||
"out": "/nix/store/0xvgzkl74v6jrh79ibh7ss770dh4hb69-nodejs-22.10.0" | ||
}, | ||
"system": "x86_64-linux", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "yarn", | ||
"broken": false, | ||
"derivation": "/nix/store/29jq3h1xvi33nid9na3bimxaff8bf67z-yarn-1.22.22.drv", | ||
"description": "Fast, reliable, and secure dependency management for javascript", | ||
"install_id": "yarn", | ||
"license": "BSD-2-Clause", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "yarn-1.22.22", | ||
"pname": "yarn", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "1.22.22", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"out": "/nix/store/0hmmpszg5wfrr43kvlk2cxjqpll0dh2z-yarn-1.22.22" | ||
}, | ||
"system": "aarch64-darwin", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "yarn", | ||
"broken": false, | ||
"derivation": "/nix/store/vkm27crcfnsh8jvrvpi4bs2k67mb9b2z-yarn-1.22.22.drv", | ||
"description": "Fast, reliable, and secure dependency management for javascript", | ||
"install_id": "yarn", | ||
"license": "BSD-2-Clause", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "yarn-1.22.22", | ||
"pname": "yarn", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "1.22.22", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"out": "/nix/store/vmx0di4y3m8amqwsfgyccf8zs8kml06q-yarn-1.22.22" | ||
}, | ||
"system": "aarch64-linux", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "yarn", | ||
"broken": false, | ||
"derivation": "/nix/store/rxkhv6b9iarrklhib18vnr8sj5428bxr-yarn-1.22.22.drv", | ||
"description": "Fast, reliable, and secure dependency management for javascript", | ||
"install_id": "yarn", | ||
"license": "BSD-2-Clause", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "yarn-1.22.22", | ||
"pname": "yarn", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "1.22.22", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"out": "/nix/store/nbaa0rip3xw6l3bmnc2k2fm071pzvzwv-yarn-1.22.22" | ||
}, | ||
"system": "x86_64-darwin", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "yarn", | ||
"broken": false, | ||
"derivation": "/nix/store/7bxc3x8jz6jbrg5gi2qlz1cffzgrba3a-yarn-1.22.22.drv", | ||
"description": "Fast, reliable, and secure dependency management for javascript", | ||
"install_id": "yarn", | ||
"license": "BSD-2-Clause", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"name": "yarn-1.22.22", | ||
"pname": "yarn", | ||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", | ||
"rev_count": 710087, | ||
"rev_date": "2024-11-19T11:04:08Z", | ||
"scrape_date": "2024-11-21T04:00:36Z", | ||
"stabilities": [ | ||
"staging", | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "1.22.22", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"out": "/nix/store/hlf55dc9jjm9xhhjx29ll65ya1rzlmal-yarn-1.22.22" | ||
}, | ||
"system": "x86_64-linux", | ||
"group": "toplevel", | ||
"priority": 5 | ||
} | ||
] | ||
} |
Oops, something went wrong.