Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Move to electron-webpack #10

Merged
merged 36 commits into from
May 6, 2018
Merged

Move to electron-webpack #10

merged 36 commits into from
May 6, 2018

Conversation

Gum-Joe
Copy link
Owner

@Gum-Joe Gum-Joe commented Jan 20, 2018

After electron-compile stopped working (electron-userland/electron-compile#287), we decided to move to using electron-webpack. After some issues (electron-userland/electron-webpack#83), we managed to get the app running.

Currently working on making packages separate to tara itself as they aren't in the webpack bundle.

🚑 Fixed issues encountered (mainly TypeScript ones) in changing to electron-webpack.
👕 Added a tsconfig.json
🎨 Got electron-webpack to run app, see electron-userland/electron-webpack#83
🐛 Now need to get packages working, going to compile on a per package bases.
🎨 Using source-map as devtool
🎨 Using sindresorhus/require-fool-webpack to solve webpack/webpack-dev-server#212
This is done as the webpack build will not include access to certain files, as well as being unable to parse next gen syntax directly
🎨 Added shared code to tara-core
Added:
- config
- constants
- extensions installer (chrome)
- logger
- plugin-client & plugin-init
- plugins
🎨 Moved all non-tara-core references in packages and tara to pointing to tara-core (i.e. ../logger.ts to tara-core/lib/logger
🎨 Got HTML working
📦 Fix node-sass build issues
🚑 Need to change Array.concat for rest spread
🚑 Error: react not found needs to be fixed (with help from @loopmode)
📦 Fixed missing packages thanks to @loopmode
🚀 Starting work on docker to isolate running
🚀 Added Docker
🚀 Added build script (scripts/bui;d.sh
🚑 Fixed react-scroll-box install issue
@Gum-Joe
Copy link
Owner Author

Gum-Joe commented Feb 20, 2018

Unable to merge or add new features until #12 is resolved.

@Gum-Joe Gum-Joe added building and removed plugins labels Feb 20, 2018
🎨 Use default HTML template after electron-userland/electron-webpack#101 and the findings of @loopmode
🚑 This closes #12
🎨 However, this caused themes to stop working as they were imported with our custom HTML.
      Thus, the theme API has been setup to load with a wrapper <Theme /> and use <style> tags (thanks to @loopmode)
      The theme is now directly required and compiled in the window, rather then the tara:// protocol.
:art: Furthermore, the theme api has been partially refactored to allow custom HTML components to be inserted for i.e. filters
      Use it by setting tara.html to a compiled JSX file in package.json
:bug: In order to make the updated theme API easier to debug, the layout is not loaded in the commit.
:art: Added reducer to store theme CSS & HTML
:art: Separated theme compiler into a separate file (src/renderer/boot/compile-theme.js) to avoid duplication of code so that tara://theme.scss could still be used.
      Now using async & await for it.

:rocket: Due to us being unable to give tara cli options, the --debug option is now automatically enabled when NODE_ENV=development
:rocket: Updated scripts/build.sh to also compile one-fluent-theme as it has custom HTML
:shirt: A few linter config tweaks & code changes due to it
🎨 Now using promises for stat.
🐛 FFI will not compile, stopping modules from being installed
🎨 Got tara to display files again
🐛 TODO: solve browsing.  Can't double click or use address bar
🎨 Removed /explorer/dir/home route
🎨 Fixed where default dir setting is
@Gum-Joe
Copy link
Owner Author

Gum-Joe commented Apr 17, 2018

Now working on #13

Gum-Joe added 2 commits April 17, 2018 19:27
🎨 Attempts to fix address bar.  Redoing file-explorer, see #13
🎨 Begin explorer redev (#13)
:folder: Moved old files in old dirs
:rocket: Updated config to only use explorer
:art: Created react root, added redux container
:art: Added file listing
:bug: Errors in stats need to be handled
Gum-Joe added 6 commits April 18, 2018 19:32
💄 Finished explorer react component generator
🎨 Started adding address bar
🚑 💄 Fixed a few theme issues due to rewrite
🐛 File shortening need to be implemented
🎨 Started adding navigation
🎨 Added address bar navigation
🎨 Added double click navigation
💄 Fixed explorer styling issues
🐛 Not all files are listed (some dirs such as home dir in Users and Program Files are missing)
🐛 Need to add back and forth button to address bar
🐛 Clicking off address bar to escape does not work
🚑 No apparent breaking navigation issues (app doesn't crash browsing)
🚑 Fixed issue where not all dirs were shown by only displaying index errors, not throw err;
🐛 Files remain selected when chdir()
🐛 Back and forward buttons need implmenting.  Can be done with https://github.com/omnidan/redux-undo.
PR ready for merger.  Will solve back and forth in main branch
…edo-explorer

🎨 Redo explorer for move to webpack
🐛 Still need to add navigation (back and forth buttons), but explorer is (hopefully) faster and the code is easier to understand.
🎨 tara-address-bar is now obsolete.
🎨 Navigation now works, using redux-undo
🎨 Fix off-click issue with address bar
💄 Made position of address bar align correctly
🐛 All that is left is to make right click work and then should be able to merge
🚀 🚑 Fix was to add tara-right-click-menu to plugin config (package.json)
🚑 Closes #15
🎨 Code optimisations (DRY) on plugin-init.ts
🎨 Added explainer comment to plugin finder
🎨 Moved tara-file-operations JSX to TSX for better complication
🎨 Updated file-operations index.ts to use async/await
@Gum-Joe
Copy link
Owner Author

Gum-Joe commented May 6, 2018

853b8f5 fixed #15. Though right-click-menu not working (right click not coming up), going to merge.

@Gum-Joe Gum-Joe merged commit 64ea23b into master May 6, 2018
@Gum-Joe Gum-Joe mentioned this pull request May 6, 2018
43 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants