Verdaccio script and CI build w/ verdaccio packages (#2432)
* committing script for testing
* adding reset and clearing output file
* updating script for ci vs local
* forgot $
* fixing equality check
* adding registry set and cleanup
* getting rid of private for testing
* adding missing src in files package json for testing
* adding dist generation and prod website build to verdaccio script
* testing local change shows up in prod docs
* rough draft of circle config
* fixing config yml and updating script to rename verdaccio dist
* fixing path for verdaccio docs dist rename
* testing circle job on branch
* forgot to pass ci arg and removing button test onclick
* updating config and adding commit hash to dist folder
* replacing lsof with netstat for circle ci and adding git config
* fixing other ci errors
* blah
* fixing commit hash in verdaccio folder
* trying to debug make build memory
* more debugging
* limiting parcel works so make build doesnt get killed
* moving verdaccio into separate dist folder
* todos to fix the build
* test buildWebsite modifications
* cleanup
* rename verdaccio job to something docs_verdaccio
* fixing prod website build by omitting public url flag
* cleanup on error
* only revert last commit if publish has happened
* test git clone in circle
* test clone with github token
* attempt to properly install cloned repo and move build to dist
* test full run and deploy
* removing debug line in script and test that docs and app reflect new changes
* revert button change, confirmed it works
* seeing if it pulls latest for test app
* making change to toggle button for demo
* Revert "making change to toggle button for demo"
This reverts commit 4a10eec5ac56522e3eaa2c66cfe1d376d2af24bb.
* updating to only run on main
* testing comment
* fix comment call?
* fixing owner
* making verdaccio comment only run on prod again
* fixing comment formatting
* testing modification to azure deploy
* forgot a *
* updating verdaccio deploy destination path
done so we wont run into an issue where the workspace contains multiple non verdaccio things from upstream workflows
* fixing the destination url?
* finished testing, restore restriction to run on prod only
* reset yarn lock to main
* updating yarn lock
* fixing comment.js
* updating script
* exit gracefully and stop script
* testing merge updates
* testing with local app
* fixing scripts
* test size measurement
was gonna try packtracker but need to make sure it is ok to add it to our repo
* bumping node version again
* another node version test
* fixing homepage for test app
* adding link to test app size
* making script only run on main again
* adding text output for publish step
* making disk usage command output human readable
* fixing broken path
* finally got the lerna output fully in a file
* forgot to change file name back to publish.txt
* adding size comparison code
stopped storing the lerna publish output in favor of a script that goes through the verdaccio storage and measures the tarball size
* fixing build
* updating comment and testing size diff in ci
* forgot the .js
* keeping txt files at root until size comparison is done
* updating logic to have fallback stat link
* fixing build again
* ugh forgot to change the comment link to size-diff
* making numbers more readable
* restricting script run to main again
* updating error handling in verdaccio script
catching errors for commands that fail and dont return a proper exit or error code via set -e. Also adjusting it so cleanup only runs once on err or interrupts
* adding additional check to only comment verdaccio stuff on main
* using make build instead
* fixing rm -rf in script
was pointing to old version of bash locally, changed the shebang to point to correct path
* testing changes
* set globstar setting so ** is expanded
* reset so it runs on main only
* remove --no-scope-hoist
Co-authored-by: Rob Snow <rsnow@adobe.com>