Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom logger, seperated Webpack conf, Webpack for MainProc, new npm srcipt and more. #63

Merged
merged 4 commits into from
Jul 6, 2024

Conversation

nfnfgo
Copy link
Collaborator

@nfnfgo nfnfgo commented Jul 6, 2024

General:

  • Add custom logger mdItLogger
  • Replace all previous console usage with newly implemented mditLogger.
  • Add TypeScript support for useSettingsState()

About Webpack and Bundling:

  • Add webpack support for Main Process.
  • Add new command npm run dev.
  • Seperate dev and prod config for webpack.
  • Modified npm run release command. Now npm run build will be automatically runned before npm run release.

I have updated Github Action script to work with the new commands. And npm run dev command is recommand when doing development works.

Feature:

- Add custom logger `mdItLogger`
- Add TypeScript support for `useSettingsState()`

Modified:

- Replace all previous `console` usage with newly
implemented `mditLogger`.
@nfnfgo
Copy link
Collaborator Author

nfnfgo commented Jul 6, 2024

Plan to add "save log to a log file" support.

Using open external link function provided by LiteLoader plugin framework instead of the self-written one.
Modified:

- Now `npm run release` will automatically call `npm run build`.
- Also add a new command `npm run dev` to start webpack in dev mode.
- Now using seperated config file for webpack in dev and prod.

Update Github Action script to adapt this change.
This could be considered a perlimiary works for future dev on main process.
@nfnfgo nfnfgo marked this pull request as ready for review July 6, 2024 15:33
@nfnfgo
Copy link
Collaborator Author

nfnfgo commented Jul 6, 2024

Since there are multiple types of new features added, I would like to use rebase merge.

@nfnfgo nfnfgo merged commit e34e8c3 into v4 Jul 6, 2024
1 check passed
@nfnfgo nfnfgo changed the title feat: Add custom logger. Add TS support for settings state. Custom logger, seperated Webpack conf, Webpack for MainProc, new npm srcipt and more. Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant