Skip to content

armgit / ente

Public Imported from GitHub
0

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

[desktop] Fix yarn build

Manav Rathi267ad0d11fa0
diff --git a/desktop/.gitignore b/desktop/.gitignore
index 698041e5ac..862e526da7 100644
--- a/desktop/.gitignore
+++ b/desktop/.gitignore
@@ -1,12 +1,18 @@
# Node
node_modules/
-# electron-builder
-dist/
-
# macOS
.DS_Store
+# Editors
+.vscode/
+
# Local env files
.env
.env.*.local
+
+# tsc transpiles src/**/*.ts and emits the generated JS into app/
+app/
+
+# electron-builder
+dist/
diff --git a/desktop/.prettierignore b/desktop/.prettierignore
index 602eea6572..c2ed1358c4 100644
--- a/desktop/.prettierignore
+++ b/desktop/.prettierignore
@@ -1,3 +1 @@
thirdparty/
-public/
-*.md
diff --git a/desktop/README.md b/desktop/README.md
index 0cc67408ba..51f4e0247a 100644
--- a/desktop/README.md
+++ b/desktop/README.md
@@ -14,7 +14,7 @@ To know more about Ente, see [our main README](../README.md) or visit
>
> We moved a few things around when switching to a monorepo recently, so this
> folder might not build with the instructions below. Hang tight, we're on it,
-> will fix things if.
+> and will fix.
Fetch submodules
@@ -31,7 +31,7 @@ yarn install
Run the app
```sh
-yarn start
+yarn dev
```
To recompile automatically using electron-reload, run this in a separate
diff --git a/desktop/package.json b/desktop/package.json
index d8ffdb64fe..8c8b51bfb9 100644
--- a/desktop/package.json
+++ b/desktop/package.json
@@ -8,13 +8,13 @@
"scripts": {
"build": "yarn build-renderer && yarn build-main",
"build-main": "yarn install && tsc",
- "build-renderer": "cd ui && yarn install && yarn export:photos",
+ "build-renderer": "cd ../web && yarn install && yarn build:photos",
+ "dev": "concurrently \"yarn dev-main\" \"yarn dev-renderer\"",
+ "dev-main": "yarn build-main && electron app/main.js",
+ "dev-renderer": "cd ../web && yarn install && yarn dev:photos",
"postinstall": "electron-builder install-app-deps",
"lint": "yarn prettier --check . && eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"lint-fix": "yarn prettier --write . && eslint --fix .",
- "start": "concurrently \"yarn start-main\" \"yarn start-renderer\"",
- "start-main": "yarn build-main && electron app/main.js",
- "start-renderer": "cd ui && yarn install && yarn dev:photos",
"test-release": "cross-env IS_TEST_RELEASE=true yarn build && electron-builder --config.compression=store",
"watch": "tsc -w"
},
diff --git a/desktop/tsconfig.json b/desktop/tsconfig.json
index 283ef57b4e..606062ceeb 100644
--- a/desktop/tsconfig.json
+++ b/desktop/tsconfig.json
@@ -5,11 +5,13 @@
"esModuleInterop": true,
"noImplicitAny": true,
"sourceMap": true,
+ /* Emit the generated JS into app/ */
"outDir": "app",
"baseUrl": "src",
"paths": {
"*": ["node_modules/*"]
}
},
- "include": ["src/**/*"]
+ /* transpile all ts files in src/ */
+ "include": ["src/**/*.ts"]
}
diff --git a/web/.gitignore b/web/.gitignore
index adcd3d8806..f07d932590 100644
--- a/web/.gitignore
+++ b/web/.gitignore
@@ -1,14 +1,17 @@
# Node
node_modules/
-# Next.js
-.next/
-out/
-next-env.d.ts
-
# macOS
.DS_Store
+# Editors
+.vscode/
+
# Local env files
.env
.env.*.local
+
+# Next.js
+.next/
+out/
+next-env.d.ts