-
Notifications
You must be signed in to change notification settings - Fork 4
Add Cloud Agent development environment configuration #12
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "name": "website-emberjs", | ||
| "install": "export NVM_DIR=\"$HOME/.nvm\" && . \"$NVM_DIR/nvm.sh\" && nvm install && nvm alias default \"$(cat .nvmrc)\" && export PATH=\"$(dirname \"$(nvm which \"$(cat .nvmrc)\")\"):$PATH\" && npm ci", | ||
| "terminals": [ | ||
| { | ||
| "name": "ember serve", | ||
| "command": "export NVM_DIR=\"$HOME/.nvm\" && . \"$NVM_DIR/nvm.sh\" && export PATH=\"$(dirname \"$(nvm which \"$(cat .nvmrc)\")\"):$PATH\" && exec node_modules/.bin/ember serve --port 4200" | ||
| } | ||
| ], | ||
| "ports": [4200] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 16 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🔵 Trivial | 🏗️ Heavy lift 🔎 Supported by static analysis🏁 Script executed: printf '%s\n' '--- .nvmrc ---'
cat -n .nvmrc
printf '%s\n' '--- package.json engines ---'
sed -n '55,75p' package.json
printf '%s\n' '--- .nvmrc references ---'
rg -n --hidden --glob '!node_modules' --glob '!dist' '\.nvmrc|Cloud Agent|cloud agent|engines' .Repository: RealDevSquad/website-emberjs Length of output: 1043 🌐 Web query:
💡 Result: The End-of-Life (EOL) date for Node.js 16 was officially set for September 11, 2023 [1][2]. Although Node.js 16 was initially scheduled to reach EOL at a later date, the Node.js project decided to bring the date forward to September 11, 2023, to align with the end of support for OpenSSL 1.1.1 [3]. This decision was made to avoid the security risks associated with maintaining the release line beyond the support lifecycle of its underlying OpenSSL dependency [3]. Official documentation confirms that Node.js 16 is no longer maintained and does not receive updates or security patches [1][4]. Citations:
Use a supported Node.js LTS release for the Cursor environment.
🤖 Prompt for AI AgentsSource: MCP tools |
||
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.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: RealDevSquad/website-emberjs
Length of output: 1303
🌐 Web query:
nvm-sh nvm documentation nvm which version not installed behavior dirname command substitution shell export PATH💡 Result:
nvm is a shell function sourced into your environment, not a standalone binary executable [1][2]. Consequently, commands like which nvm will not locate it [1]. Regarding nvm which behavior: When you run nvm which [version] to find the path to an installed Node.js version, nvm checks if that specific version is installed [3][4]. If the version is not found (or if it attempts to resolve via.nvmrc and fails), nvm outputs an error message starting with N/A and exits with a non-zero status code (typically 1) [5][3][4]. For the NVM_DIR initialization logic often seen in shell profiles: export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" This command uses shell parameter expansion and command substitution to dynamically set the NVM_DIR. - [ -z "${XDG_CONFIG_HOME-}" ]: Checks if the XDG_CONFIG_HOME environment variable is unset or empty. - If it is unset/empty, it defaults to ${HOME}/.nvm. - If it is set, it uses the directory defined by XDG_CONFIG_HOME/nvm. This is standard practice to ensure nvm correctly locates its installation directory while respecting XDG Base Directory specifications [6]. nvm manages the PATH environment variable dynamically [6]. When you switch Node.js versions using nvm use, the script modifies the PATH to prepend the directory containing the binary of the active Node.js version, ensuring that calls to node and npm resolve to the version managed by nvm [7][6].
Citations:
nvm which+.nvmrcvs.nvm which currentnvm-sh/nvm#3755🏁 Script executed:
Repository: RealDevSquad/website-emberjs
Length of output: 2975
🌐 Web query:
ember-cli 3.26.0 package.json bin ember shebang /usr/bin/env node💡 Result:
In ember-cli version 3.26.0, the package.json file defines the command-line executable via the bin field: "bin": { "ember": "./bin/ember" } This entry points to the file located at./bin/ember within the package [1]. The first line of the./bin/ember file is the shebang: #!/usr/bin/env node This shebang line is standard for Node.js executable scripts [2]. It instructs the operating system to use the env utility to locate the node executable in the user's PATH [2]. This approach is chosen for cross-platform compatibility because it allows the system to find the node interpreter regardless of its specific installation path (e.g., /usr/bin/node vs /usr/local/bin/node), whereas hardcoding a specific path would be less portable [2]. Once executed, the script manages the loading of the appropriate ember-cli version by attempting to resolve a locally installed version within the project (via package.json) or falling back to the globally installed version [3][4][5].
Citations:
Fail closed when the configured Node.js version is unavailable.
At
.cursor/environment.json:7, a failednvm which "$(cat .nvmrc)"is passed todirname, which can still succeed. The command can then start theember-clishim with an unrelatednodefromPATH.Run
nvm use "$(cat .nvmrc)"before starting Ember, or validate thenvm whichresult before exportingPATH.🤖 Prompt for AI Agents
Source: MCP tools