Skip to content
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

Silent npm install #17

Open
mvogelgesang opened this issue Apr 17, 2024 · 0 comments
Open

Silent npm install #17

mvogelgesang opened this issue Apr 17, 2024 · 0 comments

Comments

@mvogelgesang
Copy link
Owner

Following the creation of a project directory, oc runs npm i to install all project dependencies. This should be achievable with the --silent flag. Current output is as follows, aiming to reduce total output to the terminal.

oc

===================================================
 __   __   __      __   __   ___      ___  __   __  
/  \ |__) / _`    /  ` |__) |__   /\   |  /  \ |__) 
\__/ |  \ \__>    \__, |  \ |___ /~~\  |  \__/ |  \
=================================================== 

Checking dependencies...
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
DevHub (enter 0 for default pboDevHub)
1) abc   3) hij  5) nop
2) def   4) klm  6) pboDevHub
#? 6
This script will create a new scratch org off of pboDevHub.

What is the alias for the org? This might be a Org62 case number (37711301-pushUpgrades), trailhead exercise, etc.
tmp

Scratch Definition (Enter 0 for default /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/pde.json)
1) /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/data_cloud.json
2) /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/default.json
3) /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/default_w_data.json
4) /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/eventMonitoring.json
5) /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/pde.json
6) /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/pde_community.json
#? 2
Scratch definition set: /opt/homebrew/opt/quick-org-creator/libexec/..scratchDefs/default.json

What folder should this go in? (Leave blank for default /Users/mvogelgesang/myfolder)
~/Develop/pboDevHub

Warning: Record types defined in the scratch org definition file will stop being capitalized by default in a future release.
Set the `org-capitalize-record-types` config var to `true` to enforce capitalization.
Creating Scratch Org... 
RequestId: 2SRHs000002ugLoOAI (https://pbocom5.my.salesforce.com/2SRHs000002ugLoOAI)
OrgId: 00D6s000000v44l 
Username: test-b40lrza0ek6y@example.com 
✓ Prepare Request
✓ Send Request
✓ Wait For Org
✓ Available
✓ Authenticate
✓ Deploy Settings
Done

Your scratch org is ready.
Scratch org creation done

Let's setup a namespace for the new scratch org. To store a list of namespaces, run oc namespace
Select a namespace from the list (enter 0 to not set a namespace):
1) mvpbo2
2) mvpbo
3) mvpbo3
#? 0
No namespace has been set for this project.

Setting target-org and generating project
target dir = /Users/mvogelgesang/myfolder
   create ../../myfolder/20240417_tmp/config/project-scratch-def.json
   create ../../myfolder/20240417_tmp/README.md
   create ../../myfolder/20240417_tmp/sfdx-project.json
   create ../../myfolder/20240417_tmp/.husky/pre-commit
   create ../../myfolder/20240417_tmp/.vscode/extensions.json
   create ../../myfolder/20240417_tmp/.vscode/launch.json
   create ../../myfolder/20240417_tmp/.vscode/settings.json
   create ../../myfolder/20240417_tmp/force-app/main/default/lwc/.eslintrc.json
   create ../../myfolder/20240417_tmp/force-app/main/default/aura/.eslintrc.json
   create ../../myfolder/20240417_tmp/scripts/soql/account.soql
   create ../../myfolder/20240417_tmp/scripts/apex/hello.apex
   create ../../myfolder/20240417_tmp/.forceignore
   create ../../myfolder/20240417_tmp/.gitignore
   create ../../myfolder/20240417_tmp/.prettierignore
   create ../../myfolder/20240417_tmp/.prettierrc
   create ../../myfolder/20240417_tmp/jest.config.js
   create ../../myfolder/20240417_tmp/package.json

Describe this goals for this project
evaluating install
Set Config
==========================
| Name       Value Success 
| ────────── ───── ─────── 
| target-org tmp   true    
Resetting the password
Successfully set the password "********" for user test-b40lrza0ek6y@example.com.
You can see the password again by running "sf org display user -o test-b40lrza0ek6y@example.com".
Installing dependencies
npm WARN deprecated @babel/plugin-proposal-dynamic-import@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.
npm WARN deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead

> salesforce-app@1.0.0 postinstall
> husky install

fatal: not a git repository (or any of the parent directories): .git
husky - git command not found, skipping install

added 830 packages, and audited 831 packages in 5s

158 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Creating pre-commit hook for Code Analyzer
Creating GitHub Action Workflow Rules
cp: /opt/homebrew/opt/quick-org-creator/libexec/../fileTemplates/workflows/.: No such file or directory
Creating a git repo locally and on GitHub
Initialized empty Git repository in /Users/mvogelgesang/myfolder/20240417_tmp/.git/
✓ Created repository mvogelgesang/20240417_tmp on GitHub
  https://github.com/mvogelgesang/20240417_tmp
✓ Added remote git@github.com:mvogelgesang/20240417_tmp.git
Opening the new org
Opening org 00D6s000000v44lEAA as user test-b40lrza0ek6y@example.com
Waiting to resolve the Lightning Experience-enabled custom domain...... done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant