Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add shortcuts

Manav Rathiaabdab1a13d3
diff --git a/README.md b/README.md
index fe7cb71b99..7cf20b013c 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/docs/dev.md b/docs/dev.md
index 2949b3f357..764c5240e9 100644
--- a/docs/dev.md
+++ b/docs/dev.md
@@ -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.
diff --git a/package.json b/package.json
index 5642c5a820..d49cdf9a8f 100644
--- a/package.json
+++ b/package.json
@@ -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",