This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the whole project. See the announcement in book/Refactorin…
…g.md
- Loading branch information
1 parent
9db965c
commit 4c31d26
Showing
146 changed files
with
7,598 additions
and
6,870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true, | ||
"printWidth": 130, | ||
"jsxBracketSameLine": true, | ||
"svelteSortOrder": "options-scripts-styles-markup", | ||
"svelteBracketNewLine": false, | ||
"bracketSameLine": true, | ||
"tabWidth": 2, | ||
"useTabs": true, | ||
"plugins": [ "prettier-plugin-svelte", "prettier-plugin-tailwindcss" ], | ||
"pluginSearchDirs": [ "." ], | ||
"overrides": [ | ||
{ | ||
"files": "*.svelte", | ||
"options": { | ||
"parser": "svelte" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# How and Why I refactored the whole project | ||
|
||
AutoEvent is an awesome project (in my opinion) but it was getting a little unorganized, and too dependent on bash (or wsl). | ||
So huhh i spent **1 week** coding new cross-platform build and packaging scripts. | ||
|
||
Notable changes: | ||
- The `npm run dev` command instead of `neu run` | ||
> Oh boy this was a lot of trouble to implement. I had to write my own neutralino and vite binary launcher, and debug for long hours. This process is better because it does not depend on the global installation of the **neu-cli**, and gives us a lot of possibilites to make the developpement process more convenient (like working `debug.log`, to log to the terminal) | ||
- The `npm run build` command instead of `./build all` | ||
> This was especially hard to implement, because I'm on MacOS and don't have a Windows or Linux machine to test on, so I had to see how others did it (you're welcome to clean up the code). The new build scripts remove the dependence on **WSL / Bash**. Those are also better because they directly install the **Windows version icon file into the exe** (oh boy). Overall, i'm pretty satisfied with the new scripts! | ||
- 😈 The codebase 😈 | ||
> Basically I changed the whole project architecture, to remove the double `node_modules` folder (yes, I know, why did I do that in the first place). | ||
Thanks for reading (please contribute lol we are short on Linux and Windows devs) | ||
|
||
# 👋 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { type Config } from "./scripts/build/ts/config-types" | ||
import { resolve as path } from "path" | ||
|
||
const BuildConfig: Config = { | ||
projectPath: path("./frontend/dist"), | ||
outDir: path("./dist"), | ||
appName: "Svelte Neutralino", | ||
description: "An app made with Vite, Svelte and NeutralinoJS", | ||
appBundleName: "SvelteNeutralino", | ||
appIdentifier: "ts.svelte.neutralino", | ||
mac: { | ||
architecture: ["universal","arm64","x64"], | ||
appIcon: path("./build/assets/mac.icns"), | ||
minimumOS: "10.13.0" | ||
}, | ||
win: { | ||
architecture: ["x64"], | ||
appIcon: path("./build/assets/win.ico"), | ||
// This feature currently doesn't work and takes more space. See https://github.com/neutralinojs/neutralinojs/issues/1120 | ||
embedResources: false, | ||
}, | ||
linux: { | ||
architecture: ["x64","arm64","armhf"], | ||
appIcon: path("./build/assets/linux.png"), | ||
appPath: "/usr/share/SvelteNeutralino", | ||
appIconPath: "/usr/share/SvelteNeutralino/icon.png" | ||
} | ||
} | ||
|
||
export default BuildConfig |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.