Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .erb/configs/webpack.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import webpack from 'webpack';
import TsconfigPathsPlugins from 'tsconfig-paths-webpack-plugin';
import webpackPaths from './webpack.paths';
import { dependencies as externals } from '../../release/app/package.json';
// import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';

const configuration: webpack.Configuration = {
externals: [...Object.keys(externals || {})],
externals: [],

stats: 'errors-only',

Expand Down
17 changes: 4 additions & 13 deletions .erb/scripts/check-build-exists.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
// Check if the renderer and main bundles are built
// Check if the cloud bundle is built
import path from 'path';
import chalk from 'chalk';
import fs from 'fs';
import webpackPaths from '../configs/webpack.paths';

const mainPath = path.join(webpackPaths.distMainPath, 'main.js');
const rendererPath = path.join(webpackPaths.distRendererPath, 'renderer.js');
const cloudIndexPath = path.join(webpackPaths.distCloudPath, 'index.html');

if (!fs.existsSync(mainPath)) {
if (!fs.existsSync(cloudIndexPath)) {
throw new Error(
chalk.whiteBright.bgRed.bold(
'The main process is not built yet. Build it by running "npm run build:main"',
),
);
}

if (!fs.existsSync(rendererPath)) {
throw new Error(
chalk.whiteBright.bgRed.bold(
'The renderer process is not built yet. Build it by running "npm run build:renderer"',
'The app is not built yet. Build it by running "npm run build"',
),
);
}
54 changes: 0 additions & 54 deletions .erb/scripts/check-native-dep.js

This file was deleted.

20 changes: 0 additions & 20 deletions .erb/scripts/electron-rebuild.js

This file was deleted.

31 changes: 0 additions & 31 deletions .erb/scripts/notarize.js

This file was deleted.

1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ node_modules
# OSX
.DS_Store

release/app/dist
release/build
.erb/dll

Expand Down
6 changes: 1 addition & 5 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
"ignoreDependencies": [
"@nivo/core",
"@playwright/test",
"playwright",
"electron",
"electron-builder",
"electron-devtools-installer",
"electron-notarize"
"playwright"
],
"webpack": {
"entry": [".erb/configs/webpack.config.*.ts"]
Expand Down
Loading
Loading