- Remove Google fonts' "JetBrains Mono" as it didn't support variable
and add the variable ttf for it
Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
- Remove all webpack and babel related npm dependencies
- Add esbuild and esbuild-plugin-postcss2 as a dependency
- Add a custom `build.js` script to build css and js with esbuild
and copy static files to the priv/static directory
- Modify `config/dev.exs` to use that build script as a watcher instead
of webpack
- Modify `package.json` to use that build script in instead of webpack
- Modify `KetbinWeb.Endpoint` to serve the assets directory instead of
css and js directories from static
- Modify the `app.html.eex` layout to use `assets` directory instead of
separate css and js directories
Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
- Refactor `config/dev.exs` to use `config/dev.secret.exs` instead of
fetching the SMTP information from the environment and using hardcoded
database credentials. This is useful when different developers have
different database credentials and they use different SMTP adapters
- Add a sample `dev.secret.exs` in `config/dev.secret.sample.exs`. Also
gitignore the origin `dev.secret.exs` file
- Add instructions on how to setup the config file for development in
`README.md`
- Add `Plug.Swoosh.MailboxPreview` plug on "/mailbox" route in
development mode for easier development with e-mails
Signed-off-by: Akshit Garg <garg.akshit@gmail.com>