Commit graph

199 commits

Author SHA1 Message Date
Miodec
80eb197cdc Merge branch 'master' into newtribemerge 2024-09-23 15:41:26 +02:00
Christian Fehmer
b06b9f73e5
refactor: rework rate limiting (@fehmer) (#5845)
!nuf
2024-09-09 10:39:08 +02:00
Nad Alaba
6a24dbb986
chore(PR labeler): fix workflow having read access only, when triggered from forks (@NadAlaba) (#5842)
* chore(PR labeler): fix workflow having read access only when triggered from forks (@NadAlaba)

* remove logging and add an example with scope

* use action instead of gh cli for security

* use action to read json (instead of echoing contents in shell) for security

* step.if needs the same variables

* don't let attacker choose the labels

* step.name starts in caps

* no need for variable if it's used once
2024-09-05 13:44:23 +02:00
Sanidhya Singh
1ba4be38d0
impr(PR labels): automatically label PRs "waiting for review/update" (@sanidhyas3s) (#5830)
!nuf
2024-08-29 14:17:04 +02:00
Jack
945db7d20c
impr(ci): add ability to run ci on draft pull requests (@miodec) (#5791)
* force ci

* trigger

* add force full ci

* blah

* full

* remove trigger
2024-08-15 00:49:34 +02:00
Christian Fehmer
ffb04f2af5
ci: skip semantic pr title for dependabot (@fehmer) (#5786) 2024-08-15 00:23:17 +02:00
Miodec
32a3d19779 revert: set dependabot to use pnpm
This reverts commit 4ccbdb16f1.
2024-08-14 13:34:05 +02:00
Miodec
4ccbdb16f1 chore: set dependabot to use pnpm 2024-08-14 13:30:24 +02:00
Christian Fehmer
f92c1023bb
ci: skip semantic pr title for dependabot (@fehmer) (#5776) 2024-08-14 12:05:13 +02:00
Miodec
083c18b8b9 Merge branch 'master' into newtribemerge 2024-08-09 11:08:04 +02:00
Christian Fehmer
b484d1545a
ci: fix prettier failing on removed files (@fehmer) (#5742) 2024-08-08 13:05:07 +02:00
Christian Fehmer
6c18504c83
ci: skip full checkout on pre-ci on pull requests (@fehmer) (#5738)
* ci: skip full checkout on pre-ci on pull requests (@fehmer)

* review comments

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-08-06 12:12:23 +02:00
Christian Fehmer
ffacc0a5f2
ci: skip cache download on prime-cache job (@fehmer) (#5737) 2024-08-06 11:58:52 +02:00
Miodec
749f2af10b fix(ci): errors when running on push
all files will be prettified now when running on push, only changed when running on PR

!nuf
2024-08-05 20:23:16 +02:00
Miodec
d8d8b335ec Merge branch 'master' into newtribemerge 2024-08-05 17:21:55 +02:00
Jack
3568818b44
ci: run time improvements (@miodec) (#5730)
* rebuild trigger

* sparse checkout

* trigger

* triggeeeer

* fix syntax

* checkout

* revert triggers

* build fail

* revert fail

* prettier on changed files

* prettier trigger?

* missing step, missing packages checkout

* broken prettier

* prettier fix

* revert

* remove unused steps

* only install prettier for the prettier step

* trigger

* revert

* be trigger

* exact version

* v7

* revert
2024-08-05 16:24:34 +02:00
Christian Fehmer
c6550eb8df
impr(ci): verify pr titles include author name (@rizwanmustafa) (#5707)
!nuf
2024-08-01 12:48:12 +02:00
Jack
2720c07664
chore: switch from npm to pnpm (#5690)
* pnpm

* v4, pnpm lock

* checkout, node setup

* cache dir

* path, name

* store path

* name

* setup pnpm, get store then check cache

* unnecessary if

* missing dependencies

* fix docker

* lock file name

* remove prop

* wip

* fix

* reduce image sizes

* save exact

* correct command

* lock

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-07-30 22:36:19 +02:00
Jack
1110248f7b
chore: upgrade node to 20.16.0 (#5688)
* nooOoOoOOoOoode

* ci

* nvm

* env is back baby, cache

* cache name, restore keys

* remove restore keys

* package lock

* conditional node setup

* unnecessary assertion

* update rule

* lock
2024-07-30 18:44:35 +02:00
Christian Fehmer
df8d799781
ci: build fe/be if packages changed (@fehmer) (#5674)
* ci: build fe/be if packages changed (@fehmer)

Changes in the contracts should trigger be/fe builds

* trigger

* trigger
2024-07-30 12:09:10 +02:00
Miodec
9d8aa990ab Merge branch master into newtribemerge 2024-07-28 19:14:00 +02:00
Jack
6554f0b2a9
ci: move pretty check to one job, stop the rest of the ci from running when prettier errors (#5670)
* move prettier to a separate job, write fixes

* remove from assets

* break formatting

* fix ci

* remove exit

* typo

* ci

* permission

* use a different action

* Fix prettier

* commit author

* break formatting

* Fix prettier

* unnecessary ref, remove comments

* commit message

* split steps

* break fe

* break fe src

* fix if

* fix prettier

* remove write

* rename job

* break fe

* revert permission change

* fix

* rename scripts

---------

Co-authored-by: Miodec <Miodec@users.noreply.github.com>
Co-authored-by: George The Bot <monkeytypegeorge@gmail.com>
2024-07-28 14:15:11 +02:00
Jack
daa930bcd8
ci: add prettier check in the assets job (#5668)
* Update _groups.json

test

* check pretty in assets step

* fix indentation
2024-07-28 11:32:53 +02:00
Christian Fehmer
ed4b072065
ci: optimize prime-cache checkout (@fehmer) (#5657)
* ci: optimize prime-cache checkout (@fehmer)

* capital c

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-07-26 13:18:42 +02:00
Jack
1d8930cb0d
docs: move files to docs folder (#5654)
* docs

* fix links
2024-07-25 18:21:20 +02:00
Jack
ac0e24e388
perf(ci): cache dependencies (#5653)
* add dependency cache

* ci trigger

* ci

* run scripts, no clean, ci trigger

* assets

* missing dependency

* ci, trigger

* trigger

* a

* typos

* ci

* flags

* ci

* trigger

* needs pre-ci

* ci, trigger

* v4, trigger

* update action versions

* revert test changes
2024-07-25 13:49:18 +02:00
Christian Fehmer
c856cf12f8
ci: configure dependabot (@fehmer) (#5642) 2024-07-24 12:04:08 +02:00
Jack
3e88ac2f12
refactor: restructure project to a true monorepo (#5626)
* split ts files

* packages

* nomore workspace?

* blah

* build, exports

* declaration

* blargh

* turrrrbo

* fix fontawesome paths

* allow file in eslint, fix ts errors

* optimise package, update tsconfig

* fix ts

* update turbo config

* eslint split

* fix imports

* fix types

* lock

* add turbo task

* script

* test task

* pretty scripts

* update prettier ignore

* no cache for tests

* lint task

* turbo

* no out

* depend on env

* fix mono breaking things

* odl

* fix version dependency of mongodb-memory-server

* Revert "fix version dependency of mongodb-memory-server"

This reverts commit 52ffac47b1.

* update vitest-mongodb

* release scripts

* update ci

* update dev script

* ignore issues around firebase config

* add check ts tasks

* import isaxioserror

* shared types package

* replace tsnodedev with tsx

* fix import

* shared types

* module

* backend imports

* declaration

* node version

* test code

* assert json

* verbatim

* type

* lodash

* ts ver

* fix fix fix?

* remove assert

* remove module and resolution

* cleanup

* tsconfig

* fix frontend

* remove unecessary props

* more unused

* remove skiplib

* declaration map, dev script

* remove install scripts

* fix regex

* move shared types to package

* dont include shared types

* remove path

* update scripts

* test code

* test code

* fix backend types

* fully fix backend

* fix frontend d.ts

* add .js to imports

* remove module

* revert add .js

* update tsconfig

* use bundler module resolution

* almost all frontend types

* mooore

* date fns

* fix backend docker

* fix ape keys

* fix type

* clean rimraf type

* fix shared-types in workspace

* fix import resolving

* fix docker builds

* ignore type problems on slim-select until new version is released

* turrrrbo

* fix npm ci

* fix lint task

* expose env variables needed by frontend build

* fix dependencies

* package-lock

* backend watch ts and lint

* add fe and be build scripts to root

* fix dev not building packages

* shared-types missing eslint

* move shared types back to dev-deps

* add packages to labeler

* add packages step to ci

* typo

* filter update

* remove concurrently from root

* add scripts

* abbreviate

* rename

* yeet

* fixed path

* test pkg

* consistent ordering

* rename

* Revert "backend imports"

This reverts commit d715198829.

* fix missing imports, remove last .js

* remove test package

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-07-22 15:08:11 +02:00
Christian Fehmer
29627fd0d5
ci: update ci-failure-comment workflow (@fehmer) (#5632) 2024-07-20 01:09:14 +02:00
Jack
8f4d291fcf
Revert "impr: use tsrest/zod for type-safety on both ends (@fehmer) (#5479)" (#5619)
This reverts commit 4c9e949f10.
2024-07-16 17:29:09 +02:00
Christian Fehmer
4c9e949f10
impr: use tsrest/zod for type-safety on both ends (@fehmer) (#5479)
!nuf
2024-07-16 15:24:06 +02:00
Miodec
51a862e282 Merge branch 'master' into newtribemerge 2024-06-03 17:09:37 +02:00
Christian Fehmer
0dab2ecd7e
impr: build docker images for linux/arm64 on release (#5369)
!nuf
2024-05-13 11:53:46 +02:00
Miodec
abfc08929c Merge branch 'master' into newtribemerge 2024-04-03 22:10:52 +02:00
Christian Fehmer
9432602727
impr: add selfhosting using docker only (fehmer) (#5170)
* impr: add selfhosting using docker only

* add recaptcha config and docs

* add documentation on the backend-configuration.json file, remove ---redacted--- from example config

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:02:13 +01:00
Miodec
f8021c47e7 Merge branch 'master' into newtribemerge 2024-03-04 16:20:50 +01:00
Miodec
2413fbaa4c ci: add recaptcha site key 2024-02-27 01:08:38 +01:00
Miodec
3bd4e49eae Merge branch 'master' into newtribemerge 2024-02-26 17:06:22 +01:00
Miodec
9e6b5c7ede ci: define types 2024-02-26 14:34:55 +01:00
Jack
8f6bfbb708
build: replace webpack with vite (#5096) 2024-02-22 02:24:20 +01:00
Miodec
d38fcbd8fb Merge branch 'master' into newtribemerge 2024-02-21 02:55:05 +01:00
Christian Fehmer
6cf2e4f5f5
chore: update node version to 18.19.1 (#5060) 2024-02-15 21:23:29 +01:00
Miodec
df1862c73b Merge branch 'master' into newtribemerge 2024-02-05 16:05:48 +01:00
Miodec
b69f057da6 only if not draft 2024-02-01 23:22:19 +01:00
Miodec
937db3b62d Merge branch 'master' into newtribemerge 2024-01-23 23:52:18 +01:00
Miodec
6886740201 chore: update template 2024-01-22 14:33:55 +01:00
Christian Fehmer
6aa7a72727
test: configure testing for frontend code (fehmer) (#4879)
* test: configure testing for frontend code

* remove test coverage thresholds, cleanup
2024-01-08 15:26:57 +01:00
Aaron
be641e2974
fix(ci): update formatting workflow commit message (unrealapex) (#4852)
* Renamed command line setting timer-progress bar

* Make account config input an `input` so it takes up less space

* Revert "Make account config input an `input` so it takes up less space"

* fix(ci): update formatting workflow commit message

ensure that commit message meets conventional commits specification

* tweak(ci): fix commit type

---------

Co-authored-by: Aaron <79121360+hazyboba@users.noreply.github.com>
2023-12-11 19:31:30 +01:00
Aaron
5e8e7dc3da
docs: fix pr template wording (unrealapex) (#4853) 2023-12-11 19:30:18 +01:00
aikoo7
46a39b8322
docs: made the the PR template more informative (aikooo7) (#4689)
* docs: added some checkboxes, a heading and a comment explaining it.

Why is this good?

- People usually don't do things unless they are asked to and also can
  happen that they just know it. Mostly the conventional commit
  messages.

* docs: added some comments about the ci checks and a bonus comment to
remove the "close #" if you are not using it.

* updated checks

* we are already talking about conventional commits in the checks section

* refactor: ensure language and theme comments are within checks also
move comment for visual changes to descriptions for screenshots

* refactor: moved "adding screenshots" to the checks section.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-10 13:59:37 +00:00