17 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Trim21
c3b9a6c6aa build: embed mmdb as pure js data (#782) 2024-08-14 05:48:02 +08:00
Trim21
2098c2e3f1 build(server): switch to esbuild (#701) 2023-12-11 17:15:11 +00:00
Jesse Chan
edbb9c1ea7 Revert "server: tests: remove db cleanup workaround"
This reverts commit 365d82755f.
2022-05-01 15:39:34 -07:00
Jesse Chan
365d82755f server: tests: remove db cleanup workaround 2022-05-01 14:58:50 -07:00
Jesse Chan
477919856b server: create production build with webpack directly 2021-11-28 22:48:22 -08:00
Jesse Chan
20fc3ac6a8 server: torrents: disallow comma in tag 2020-12-15 20:57:36 +08:00
Jesse Chan
20c33b8e05 testsetup: switch to development server 2020-12-10 23:48:58 +08:00
Jesse Chan
b80b2e6477 testsetup: print out temporary runtime directory at start 2020-12-02 22:34:12 +08:00
Jesse Chan
ef2db544be scripts: a script to quickly fire a fresh Flood-rTorrent env
npm run start:test:rtorrent
2020-12-02 20:33:29 +08:00
Jesse Chan
2d77aee64c run, scripts: remove unused files 2020-11-15 20:45:37 +08:00
Jesse Chan
6b42be395a prettier: simply use prettier CLI 2020-09-25 00:30:15 +08:00
Jesse Chan
f4f83f6efc prettier: format and check stylesheets 2020-08-14 13:44:35 +08:00
Jesse Chan
4ea381049a Update dependencies (non-breaking)
This change uses the best-effort approach to update dependencies.
Changelogs of each dependency have been manually reviewed and all
dependency that doesn't *actually* have BREAKING changes or have
minimal changes are bumped to their latest versions.

In most cases, the maintainers of those dependencies don't actually
understand semvar and inappropriately bumped major version for trivial,
non-breaking changes. In other cases, the minimum supported Node version
is upgraded, which is indeed breaking but that's not a concern for this
project as a recent Node version is always expected. Or, the dependency
does have certain breaking changes but those changes are not relevant to
functions used by this project.

Also bumped versions of dependencies if only minimal changes are required:

* autoprefixer: transform from "browsers" property to browserslist
* prettier: reformated sources after update

Signed-off-by: Jesse Chan <jc@linux.com>
2020-08-04 03:16:44 +08:00
John Furrow
92404918a0 Introduce Typescript & CSS Modules (#815)
* Adding typescript support

* Begins configuring webpack builds

* Fix lint warnings

* Updates react-router

* Fixes lint configuration

* Adds missing dependency

* Restores disabled performance hints

* Renames connectStores

* Types connectStores

* Uses correct envvars and fixes missing EOF newline

* Formats files

* Defaults props to empty object

* Ignores type definitions in eslint

* Another newline

* Adjusts script invocation

* Ignore jsdoc output

* Undoes the autoformatting of CSS module types

* Improves lint rules

* Finishes webpack config changes

* Updates deps

* Fixes lint errors and attempts to fix SVG icon generator

* Fixes SVG sprite generator

* Adds type for SVG imports

* Explicitly use babelrc in SVG loader

* Formats files

* Refactors prettier formatter, formats CSS module type defs

* Updates style types

* Uses nicer syntax in typed-css-modules-loader

* Removes unnecessary div

* optional property in package.json

* package-lock

* Fixes upstream lint errors

* Removes unused modules
2019-11-22 22:47:09 -08:00
John Furrow
dbedc6c7a5 Improves eslint rules (#785)
* Switch to airbnb's eslint

* Applies automatic fixes

* Clean up dependencies

* New lint rules

* Apply auto fixes

* Prettier

* Update prettier position in eslint config

* Aligns prettier and eslint

* Use partial configs for client and server directories

* Finalizes eslint config (for now)

* Applies all elsint fixes

* Removes duplciated config

* Fixes build & local dev

* Fix CI build
2019-05-02 22:21:47 -07:00
John Furrow
6dec5cddac Implements Prettier (#701)
* Adds and configures prettier

* Creates format script

* Runs prettier

* Adds npm scripts and checks for formatting in CI
2018-09-02 20:43:35 -07:00