ente/web/packages/shared
Manav Rathi 26b162c8dc
[web] Allow running the build outside of a git repository
This was found useful by @Bramas when building a Dockerfile of the web app
itself. See https://github.com/ente-io/ente/pull/1065.

Now, the GIT_SHA environment variable can just be undefined if we're not in a
git repository, and the code using it deals with that case explicitly.

**Tested by**

Temporarily inverted the isDevBuild flag, tehn

1. Ran the build normally and verified that the SHA continued to appear in the logs.

2. Ran the build after copying to a standalone folder without an associated git
   repository and verified that the SHA was skipped without causing the build to
   fail.
2024-03-13 11:15:12 +05:30
..
apps Move into web/ 2024-03-01 12:21:07 +05:30
components Move into web/ 2024-03-01 12:21:07 +05:30
constants Update links to GitHub from within the apps 2024-03-03 18:08:11 +05:30
crypto Move into web/ 2024-03-01 12:21:07 +05:30
electron Remove CRASH_REPORTING key 2024-03-12 13:59:45 +05:30
error [web] Remove Sentry 2024-03-12 13:24:33 +05:30
events Move into web/ 2024-03-01 12:21:07 +05:30
hooks Move into web/ 2024-03-01 12:21:07 +05:30
logging [web] Allow running the build outside of a git repository 2024-03-13 11:15:12 +05:30
network Move into web/ 2024-03-01 12:21:07 +05:30
next [web] Remove Sentry 2024-03-12 13:24:33 +05:30
platform Move into web/ 2024-03-01 12:21:07 +05:30
promise Move into web/ 2024-03-01 12:21:07 +05:30
sentry [web] Remove Sentry 2024-03-12 13:24:33 +05:30
sleep Move into web/ 2024-03-01 12:21:07 +05:30
storage [web] Remove Sentry 2024-03-12 13:24:33 +05:30
themes Move into web/ 2024-03-01 12:21:07 +05:30
time Fix formatting issues 2024-03-06 15:51:26 +05:30
upload Move into web/ 2024-03-01 12:21:07 +05:30
user Move into web/ 2024-03-01 12:21:07 +05:30
utils Move into web/ 2024-03-01 12:21:07 +05:30
watchFolder Move into web/ 2024-03-01 12:21:07 +05:30
worker Move into web/ 2024-03-01 12:21:07 +05:30
.eslintrc.js Move into web/ 2024-03-01 12:21:07 +05:30
package.json [web] Remove Sentry 2024-03-12 13:24:33 +05:30
README.md Move into web/ 2024-03-01 12:21:07 +05:30
tsconfig.json Move into web/ 2024-03-01 12:21:07 +05:30

Deprecated in favor of @/utils and @/ui. Don't add new code here - we'll slowly be migrating existing code from here to those two packages.