Add shortcuts

This commit is contained in:
Manav Rathi 2024-02-22 12:22:07 +05:30
parent 46720e8fcd
commit aabdab1a13
3 changed files with 10 additions and 2 deletions

View file

@ -40,11 +40,13 @@ The app is deployed to [web.ente.io](https://web.ente.io)
1. Clone this repository with `git clone https://github.com/ente-io/photos-web.git`
2. Pull in all submodules with `git submodule update --init --recursive`
3. Install dependencies with `yarn install`
4. Finally, run the development server with `yarn dev:photos`
4. Finally, run the development server with `yarn dev`
Open [http://localhost:3000](http://localhost:3000) to see the live app (with
hot reload).
`yarn dev` runs the photos app. To run the auth app, do `yarn dev:auth`.
<br/>
## 🙋 Help

View file

@ -15,10 +15,14 @@ full list of such aliases. The two common patterns are `dev:<app-name>` for
running a local development server, and `build:<app-name>` for creating a
production build.
> Tip: `yarn dev` is a shorcut for `yarn dev:photos`
Note that yarn does not automatically update `node_modules` if you switch to a
branch that has added or modified dependencies. So if you encounter unexpected
errors on switching branches, make sure that your `node_modules` is up to date
by running `yarn install` first (tip: `yarn` is a shortcut for `yarn install`).
by running `yarn install` first.
> `yarn` is a shortcut for `yarn install`
To add a local package as a dependency, use `<package-name>@*`. The "*" here
denotes any version.

View file

@ -7,10 +7,12 @@
"packages/*"
],
"scripts": {
"build": "yarn build:photos",
"build:accounts": "yarn workspace accounts next build",
"build:auth": "yarn workspace auth next build",
"build:cast": "yarn workspace cast next build",
"build:photos": "yarn workspace photos next build",
"dev": "yarn dev:photos",
"dev:accounts": "yarn workspace accounts next dev",
"dev:auth": "yarn workspace auth next dev",
"dev:cast": "yarn workspace cast next dev",