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

Add a table of drop rates for every item #68

Open
wants to merge 1,033 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1033 commits
Select commit Hold shift + click to select a range
8c90f70
feat: rules page
kenos1 Jan 14, 2024
11c8ffa
enhance: throwable viewbox adjustments
kenos1 Jan 14, 2024
a209a81
pin image goofies
kenos1 Jan 14, 2024
bddca49
"i love css!" said the old man
kenos1 Jan 15, 2024
2dd6c0d
Update flint_stone.md
sawq375 Jan 15, 2024
952aee4
Merge pull request #37 from sawq375/patch-1
kenos1 Jan 15, 2024
f11dbb3
fix: undefined tier
Compositr Jan 15, 2024
9739df2
lint: gh actions complaining
Compositr Jan 15, 2024
36f6661
enhance: better grenade article or smth
1092384 Jan 15, 2024
88abab0
Revert "enhance: better grenade article or smth"
1092384 Jan 15, 2024
e9c1f8a
feat: armory article, obstacles tommorow hopefully
1092384 Jan 15, 2024
dbd484c
fix: spellcheck moment
1092384 Jan 15, 2024
b20f702
Update flues.md
failingapbio Jan 15, 2024
9cf4b76
Merge pull request #38 from Lolol4572/patch-1
kenos1 Jan 15, 2024
1f68bf5
Update vector.md
failingapbio Jan 15, 2024
ea24491
Merge pull request #39 from Lolol4572/patch-2
kenos1 Jan 15, 2024
e6ba850
chore: update suroi
kenos1 Jan 15, 2024
d0988cc
fix: properly centre button icon
Compositr Jan 16, 2024
9d3f1e3
fix: v0.15.0 goofies
Compositr Jan 16, 2024
0d171ae
add armory to obstacle articles
1092384 Jan 16, 2024
b9ffe40
enhance: merged barrel articles
1092384 Jan 16, 2024
b4962d2
feat: grenade crate info in crates article
1092384 Jan 16, 2024
65b801b
feat: tear gas crate article
1092384 Jan 16, 2024
fb22d66
fix: spellcheck
1092384 Jan 16, 2024
63f45cc
feat: m1117 article
1092384 Jan 16, 2024
1d07140
feat: bunk bed article
1092384 Jan 16, 2024
9afb239
wip: grenade boosting section
kenos1 Jan 16, 2024
8a800de
lint: thank you spellcheck :3
kenos1 Jan 16, 2024
70938ef
Update kbar.md
sawq375 Jan 17, 2024
bd90816
Create maul.md
sawq375 Jan 17, 2024
6bf0ac1
Merge pull request #40 from sawq375/patch-3
kenos1 Jan 17, 2024
08f6362
Merge pull request #41 from sawq375/patch-2
kenos1 Jan 17, 2024
0c1183a
Create seax.md
sawq375 Jan 17, 2024
15f6d21
Merge pull request #42 from sawq375/patch-4
kenos1 Jan 17, 2024
4c8b1f3
lint: pnpm lint and fix spellchecker
kenos1 Jan 17, 2024
fa2ba42
enhance: improve grenade crate article
1092384 Jan 17, 2024
9a87158
Add git hook tip to developing guide
kenos1 Jan 17, 2024
5c4816f
correction of git hook command
kenos1 Jan 17, 2024
6399fda
Create basic_vest.md
sawq375 Jan 17, 2024
182d787
Create tactical_vest.md
sawq375 Jan 17, 2024
9541178
Merge pull request #44 from sawq375/patch-6
kenos1 Jan 17, 2024
35c861e
Update basic_vest.md
sawq375 Jan 17, 2024
b8b6041
Update tactical_vest.md
sawq375 Jan 17, 2024
585d2e6
Create basic_helmet.md
sawq375 Jan 17, 2024
5e1a534
Merge pull request #43 from sawq375/patch-5
kenos1 Jan 17, 2024
a8b9903
Create regular_helmet.md
sawq375 Jan 17, 2024
63c28fb
Merge pull request #46 from sawq375/patch-8
kenos1 Jan 17, 2024
f06c567
Merge pull request #45 from sawq375/patch-7
kenos1 Jan 17, 2024
3a8d675
Create tactical_helmet.md
sawq375 Jan 17, 2024
8a11bb5
Update regular_helmet.md
sawq375 Jan 17, 2024
f5b37c0
Merge pull request #47 from sawq375/patch-9
kenos1 Jan 17, 2024
1c8e2c4
Update tactical_helmet.md
sawq375 Jan 17, 2024
6f5f097
Create bag.md
sawq375 Jan 17, 2024
e0b646c
Create basic_pack.md
sawq375 Jan 17, 2024
99f8c28
Create regular_pack.md
sawq375 Jan 17, 2024
cc764a3
Create tactical_pack.md
sawq375 Jan 17, 2024
63471ad
why didn't we do this before
kenos1 Jan 17, 2024
8bfae7f
Merge pull request #48 from sawq375/patch-10
kenos1 Jan 17, 2024
e906154
Merge pull request #51 from sawq375/patch-12
kenos1 Jan 17, 2024
4faccbd
Merge pull request #50 from sawq375/patch-11
kenos1 Jan 17, 2024
6b8fdc2
Merge pull request #52 from sawq375/patch-13
kenos1 Jan 17, 2024
840dc11
Merge pull request #53 from sawq375/patch-14
kenos1 Jan 17, 2024
438a85d
fix: fix the inconsistent equipment articles
1092384 Jan 18, 2024
cce13dd
fix: oil_tanker_ship_tanks are not a thing
Compositr Jan 18, 2024
9ba0b40
Merge branch 'main' of https://github.com/hasangergames/suroi-wiki
Compositr Jan 18, 2024
6f8b763
style: one space
Compositr Jan 18, 2024
8e57a0d
fix: fix the melee articles the other guy made btw other guy work on …
1092384 Jan 18, 2024
054ed3b
fix: massive 109 moment
1092384 Jan 18, 2024
6cb5f73
wip: stub fences article
Compositr Jan 18, 2024
ced2abd
enhance: add tear gas side effect to article
1092384 Jan 18, 2024
16c743c
feat: porta potty door stuff in doors article
1092384 Jan 18, 2024
976241b
Added river rock
Viswas-Programs Jan 18, 2024
3c1a008
feat: cabinet article
1092384 Jan 18, 2024
2d692ed
fix: fix outdated info on metal shelf article
1092384 Jan 18, 2024
179fb83
fix: massive 109 moment part 2 :)
1092384 Jan 18, 2024
6f70dab
feat: improve C's fence article
1092384 Jan 18, 2024
19bd4b4
Merge pull request #54 from Viswas-Programs/main
1092384 Jan 18, 2024
4b63ac9
Create button.md
sawq375 Jan 18, 2024
2396312
Update Collapsible.tsx
pythoncat1 Jan 18, 2024
eb51ec3
Create viking_chest.md
sawq375 Jan 18, 2024
6c9b8e7
Update bush.md
sawq375 Jan 18, 2024
c963cc3
Merge pull request #57 from sawq375/patch-17
1092384 Jan 18, 2024
6e816bc
Update button.md
sawq375 Jan 18, 2024
a767359
Update viking_chest.md
sawq375 Jan 18, 2024
2c0408e
Merge pull request #56 from sawq375/patch-15
1092384 Jan 18, 2024
0a6bc10
fix: fix the button article
1092384 Jan 18, 2024
f39bf3d
Merge pull request #55 from sawq375/patch-16
1092384 Jan 18, 2024
4855587
fix: fix the viking CHEST article
1092384 Jan 18, 2024
3af5693
a
SovietNuclearFridgeBomb Jan 19, 2024
33e4cb8
a
SovietNuclearFridgeBomb Jan 19, 2024
3dca162
Create mobile_home_tire.md
SovietNuclearFridgeBomb Jan 19, 2024
3c72b13
enhance: grenade related gallery images
kenos1 Jan 19, 2024
667d884
lint: format collapsible.tsx
kenos1 Jan 19, 2024
0a47e18
enhance: wiki team and contributor section
kenos1 Jan 19, 2024
dcf9bb8
Create mobile_home.md
sawq375 Jan 19, 2024
3e3f579
Update mobile_home.md
sawq375 Jan 19, 2024
fa87522
Update stove.md
SovietNuclearFridgeBomb Jan 20, 2024
31cc84f
Merge branch 'HasangerGames:main' into main
SovietNuclearFridgeBomb Jan 20, 2024
7dcf381
Update armory_meta.md
SovietNuclearFridgeBomb Jan 20, 2024
5439a81
Update containers.md
SovietNuclearFridgeBomb Jan 20, 2024
294e967
Update crane.md
SovietNuclearFridgeBomb Jan 20, 2024
97c7397
Update house.md
SovietNuclearFridgeBomb Jan 20, 2024
14ecaa3
Update port.md
SovietNuclearFridgeBomb Jan 20, 2024
e836e04
Update port_meta.md
SovietNuclearFridgeBomb Jan 20, 2024
90f8878
Update port_warehouse.md
SovietNuclearFridgeBomb Jan 20, 2024
c8ee06d
Update port_shed.md
SovietNuclearFridgeBomb Jan 20, 2024
9d1b7db
Update porta_potty.md
SovietNuclearFridgeBomb Jan 20, 2024
6bbfa44
Update refinery.md
SovietNuclearFridgeBomb Jan 20, 2024
4ab3101
Update ship.md
SovietNuclearFridgeBomb Jan 20, 2024
137b45e
Update small_house.md
SovietNuclearFridgeBomb Jan 20, 2024
058a030
Update warehouse.md
SovietNuclearFridgeBomb Jan 20, 2024
e9369b5
Update basic_helmet.md
SovietNuclearFridgeBomb Jan 20, 2024
248b629
Update basic_vest.md
SovietNuclearFridgeBomb Jan 20, 2024
d593d72
Update regular_helmet.md
SovietNuclearFridgeBomb Jan 20, 2024
a81c2a0
Update regular_vest.md
SovietNuclearFridgeBomb Jan 20, 2024
e231405
Update and rename tactical_helmet.md to tactical_vesta.md
SovietNuclearFridgeBomb Jan 20, 2024
5d47b0d
Update and rename tactical_vest.md to tactical_helmet.md
SovietNuclearFridgeBomb Jan 20, 2024
cdc20f9
Rename tactical_vesta.md to tactical_vest.md
SovietNuclearFridgeBomb Jan 20, 2024
53db26f
Update basic_pack.md
SovietNuclearFridgeBomb Jan 20, 2024
ea61db0
Update regular_pack.md
SovietNuclearFridgeBomb Jan 20, 2024
ead1fcf
Update tactical_pack.md
SovietNuclearFridgeBomb Jan 20, 2024
601083b
Update cola.md
SovietNuclearFridgeBomb Jan 20, 2024
ecbc90a
Update gauze.md
SovietNuclearFridgeBomb Jan 20, 2024
5147e67
Update medikit.md
SovietNuclearFridgeBomb Jan 20, 2024
d0952db
Update tablets.md
SovietNuclearFridgeBomb Jan 20, 2024
6c839d8
Update airdrops.md
SovietNuclearFridgeBomb Jan 20, 2024
75c5f65
Update ammo_crate.md
SovietNuclearFridgeBomb Jan 20, 2024
5638236
Update barrels.md
SovietNuclearFridgeBomb Jan 20, 2024
e3e7b00
Update barrier.md
SovietNuclearFridgeBomb Jan 20, 2024
756a250
Update bollard.md
SovietNuclearFridgeBomb Jan 20, 2024
94f0944
Update bush.md
SovietNuclearFridgeBomb Jan 20, 2024
eec7a25
Update christmas_tree.md
SovietNuclearFridgeBomb Jan 20, 2024
fc88abb
Update crates.md
SovietNuclearFridgeBomb Jan 20, 2024
b2c5219
Update flint_stone.md
SovietNuclearFridgeBomb Jan 20, 2024
e8dbcff
Update fridge.md
SovietNuclearFridgeBomb Jan 20, 2024
ffb4767
Update generator.md
SovietNuclearFridgeBomb Jan 20, 2024
3cdfb3a
Update gold_rock.md
SovietNuclearFridgeBomb Jan 20, 2024
7d700fd
Update gun_mounts.md
SovietNuclearFridgeBomb Jan 20, 2024
739b1c2
Update large_refinery_barrel.md
SovietNuclearFridgeBomb Jan 20, 2024
d71e736
Update m1117.md
SovietNuclearFridgeBomb Jan 20, 2024
3c2312f
Update metal_shelf.md
SovietNuclearFridgeBomb Jan 20, 2024
66fff74
Update oil_tank.md
SovietNuclearFridgeBomb Jan 20, 2024
72740ce
Update pumpkin.md
SovietNuclearFridgeBomb Jan 20, 2024
f02b0e4
Update regular_crate.md
SovietNuclearFridgeBomb Jan 20, 2024
b643d81
Update river_rock.md
SovietNuclearFridgeBomb Jan 20, 2024
a743d98
Update rock.md
SovietNuclearFridgeBomb Jan 20, 2024
06ce87c
Update sandbags.md
SovietNuclearFridgeBomb Jan 20, 2024
c7fe8e2
Update small_refinery_barrel.md
SovietNuclearFridgeBomb Jan 20, 2024
24c33e2
Update smokestack.md
SovietNuclearFridgeBomb Jan 20, 2024
195031b
Update table.md
SovietNuclearFridgeBomb Jan 20, 2024
b1fcbd9
Update tango_crate.md
SovietNuclearFridgeBomb Jan 20, 2024
59d4d9a
Update trees.md
SovietNuclearFridgeBomb Jan 20, 2024
dbb5304
Update tv.md
SovietNuclearFridgeBomb Jan 20, 2024
bba76be
Update viking_chest.md
SovietNuclearFridgeBomb Jan 20, 2024
1a142aa
Update washing_machine.md
SovietNuclearFridgeBomb Jan 20, 2024
60ec15d
Update acr.md
SovietNuclearFridgeBomb Jan 20, 2024
e7d5c3f
Update ak47.md
SovietNuclearFridgeBomb Jan 20, 2024
f32cd18
Update arx160.md
SovietNuclearFridgeBomb Jan 20, 2024
ff0684f
Update aug.md
SovietNuclearFridgeBomb Jan 20, 2024
20c0035
Update barrett.md
SovietNuclearFridgeBomb Jan 20, 2024
035be25
Update cz75a.md
SovietNuclearFridgeBomb Jan 20, 2024
46ec7f5
Update deathray.md
SovietNuclearFridgeBomb Jan 20, 2024
3ca7cb4
Update flues.md
SovietNuclearFridgeBomb Jan 20, 2024
dd42f59
Update g19.md
SovietNuclearFridgeBomb Jan 20, 2024
d6cc607
Update hp18.md
SovietNuclearFridgeBomb Jan 20, 2024
fa477f5
Update lewis_gun.md
SovietNuclearFridgeBomb Jan 20, 2024
8e09824
Update m1895.md
SovietNuclearFridgeBomb Jan 20, 2024
4d563cb
Update m1_garand.md
SovietNuclearFridgeBomb Jan 20, 2024
dc7f498
Update m3k.md
SovietNuclearFridgeBomb Jan 20, 2024
08cf522
Update mini14.md
SovietNuclearFridgeBomb Jan 20, 2024
209bd99
Update model_37.md
SovietNuclearFridgeBomb Jan 20, 2024
fcb3d52
Update mosin.md
SovietNuclearFridgeBomb Jan 20, 2024
920fc3b
Update mp40.md
SovietNuclearFridgeBomb Jan 20, 2024
657cef3
Update radio.md
SovietNuclearFridgeBomb Jan 20, 2024
765cfbc
Update revitalizer.md
SovietNuclearFridgeBomb Jan 20, 2024
3f1e700
Update s_g17.md
SovietNuclearFridgeBomb Jan 20, 2024
e914b7e
Update saf_200.md
SovietNuclearFridgeBomb Jan 20, 2024
0fd32b1
Update sr25.md
SovietNuclearFridgeBomb Jan 20, 2024
b4754c6
Update stoner_63.md
SovietNuclearFridgeBomb Jan 20, 2024
81432e0
Update vector.md
SovietNuclearFridgeBomb Jan 20, 2024
9f12aec
Update vepr12.md
SovietNuclearFridgeBomb Jan 20, 2024
53eb750
Update vss.md
SovietNuclearFridgeBomb Jan 20, 2024
2b4afc6
Update baseball_bat.md
SovietNuclearFridgeBomb Jan 20, 2024
b40c4b2
Update fists.md
SovietNuclearFridgeBomb Jan 20, 2024
f13ec55
Update kbar.md
SovietNuclearFridgeBomb Jan 20, 2024
5d57874
Update maul.md
SovietNuclearFridgeBomb Jan 20, 2024
8bdfdf4
Update seax.md
SovietNuclearFridgeBomb Jan 20, 2024
31c99df
Update seax.md
SovietNuclearFridgeBomb Jan 20, 2024
39026de
Update frag_grenade.md
SovietNuclearFridgeBomb Jan 20, 2024
c28fd3d
Update smoke_grenade.md
SovietNuclearFridgeBomb Jan 20, 2024
33711cb
fix: 109 moment: i named them wrong
1092384 Jan 20, 2024
f9b58c9
fix: 109 moments
1092384 Jan 20, 2024
b5c7510
oil_tanker.md
valdiboi Jan 20, 2024
54d7c7e
enhance: add chrsper website
kenos1 Jan 20, 2024
faed727
Merge pull request #59 from sawq375/patch-18
1092384 Jan 20, 2024
1b33e55
fix: fix the mobile home article
1092384 Jan 20, 2024
962c8cc
feat: articles for the mobile home stuff
1092384 Jan 20, 2024
3941875
chore: add suroiwiki to allowed words
Compositr Jan 21, 2024
18fbe5c
fix: 109 moments & indentation
Compositr Jan 21, 2024
ce6e436
lint: weird apostrophes
Compositr Jan 21, 2024
9ed7324
feat: add isWeapon, export asserts
Compositr Jan 21, 2024
07cb955
chore: add names
Compositr Jan 21, 2024
bca318d
fix: various type errors
Compositr Jan 21, 2024
428d280
Create briefcase.md
SovietNuclearFridgeBomb Jan 21, 2024
f76a967
Create mobile_home_sink.md
SovietNuclearFridgeBomb Jan 21, 2024
99f4eb8
enhance: emerald told me to do it so blame them
1092384 Jan 21, 2024
d8e779b
fml
Katloo24 Jan 21, 2024
a219b38
feat: tire article
1092384 Jan 22, 2024
ca5312f
fix: remove croissant
1092384 Jan 22, 2024
b880576
feat: fat oil tank
1092384 Jan 22, 2024
0b7b16a
Merge pull request #61 from valdiboi/patch-3
1092384 Jan 22, 2024
58fcb40
feat: fat oil tank article (real)
1092384 Jan 22, 2024
c4da088
fix: avacado moments
1092384 Jan 22, 2024
dbb8055
Update drawers.md
valdiboi Jan 22, 2024
af2c2f1
enhance: add frag grenade video from lava
kenos1 Jan 22, 2024
140efe9
enhance: gallery ui
kenos1 Jan 22, 2024
8885b64
feat: throwable explosion killfeed image
kenos1 Jan 22, 2024
8e26ba7
lint: i like to lint it lint it
kenos1 Jan 22, 2024
e445826
bleh
kenos1 Jan 22, 2024
2958f77
Merge pull request #62 from valdiboi/patch-4
1092384 Jan 23, 2024
312134b
feat: briefcase article
1092384 Jan 23, 2024
3cf9016
fix: fixes
1092384 Jan 23, 2024
b7dedc7
feat: image for briefcase
1092384 Jan 23, 2024
cc0edfa
fix: bruh (thanks 5cm dude)
1092384 Jan 23, 2024
550207f
Merge branch 'main' into main
1092384 Jan 24, 2024
f5269d5
Merge pull request #64 from SovietNuclearFridgeBomb/main
1092384 Jan 24, 2024
0591b73
Update flint_stone.md
sawq375 Jan 24, 2024
e3cf839
Merge pull request #65 from sawq375/patch-19
1092384 Jan 25, 2024
1c88a3a
fix: broken vss link
Compositr Jan 25, 2024
78a511d
fix: link goffy
Compositr Jan 25, 2024
8b795d8
mobile home window (#66)
SovietNuclearFridgeBomb Jan 30, 2024
974dbf3
chore: organize imports
kenos1 Jan 30, 2024
9cc59cf
fix: fix the mobile home article
1092384 Jan 30, 2024
1eda14a
fix: katie moment
Compositr Jan 31, 2024
3481784
fix: katie moment number 2
Compositr Jan 31, 2024
48c9184
fix: spelling in code file
Compositr Feb 2, 2024
6124d31
feat: sitemap
Compositr Feb 2, 2024
152e19f
lint: prettier ci complaint
Compositr Feb 2, 2024
1eecfe2
feat: obtaining rates calculator
Zollo757347 Feb 6, 2024
782bbea
chore: add the template to all related pages
Zollo757347 Feb 6, 2024
84ecc1a
feat: display more digits when the drop rate is too low/high
Zollo757347 Feb 6, 2024
7ac7099
chore: prettier
Zollo757347 Feb 6, 2024
3c971d0
style: mb-8
Zollo757347 Feb 6, 2024
0f84cb4
chore: prettier
Zollo757347 Feb 6, 2024
86e2a46
chore: remove components in the articles
Zollo757347 Feb 7, 2024
4d9687e
feat: add location row for sidebars
Zollo757347 Feb 7, 2024
62fd245
chore: reverse some changes in the articles
Zollo757347 Feb 7, 2024
c95f61e
feat: add a link to loot tables
Zollo757347 Feb 7, 2024
9de6ab6
chore: remove unused files
Zollo757347 Feb 7, 2024
116122d
chore: rename title & i forgot armors and backpacks
Zollo757347 Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.gitignore
node_modules
.eslintrc.json
shell.nix
.next
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
pull_request:
push:
workflow_dispatch:

jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Lint
run: pnpm ci:lint
spellcheck:
name: "Spell Check"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Spellcheck
run: pnpm spellcheck
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
/build

# misc
.idea
.vscode/*
!.vscode/tasks.json
!.vscode/extensions.json
.DS_Store
*.pem

Expand All @@ -34,3 +38,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
/.vs
2 changes: 2 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[submodule "vendor/suroi"]
path = vendor/suroi
url = https://github.com/HasangerGames/suroi
branch = master

9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
vendor
.git
.github
.next
.vscode
node_modules
*.md
package.json
pnpm-lock.yaml
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-organize-imports"]
}
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-next",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"streetsidesoftware.code-spell-checker"
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cSpell.words": ["lucide", "Suroi"],
"editor.tabSize": 2
}
31 changes: 31 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Development Server",
"command": ["pnpm", "dev", "--turbo"],
"problemMatcher": []
},
{
"type": "shell",
"label": "Lint",
"command": ["pnpm", "lint"],
"problemMatcher": []
},
{
"type": "shell",
"label": "Build",
"command": ["pnpm", "build"],
"group": "build",
"problemMatcher": []
},
{
"type": "shell",
"label": "Production Server",
"command": ["pnpm", "start"],
"group": "build",
"problemMatcher": []
}
]
}
54 changes: 54 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM node:20-alpine AS base

### Rebuild deps only when needed ###
FROM base AS deps

RUN apk add --no-cache libc6-compat git

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack prepare pnpm@latest --activate

WORKDIR /app

COPY package.json pnpm-lock.yaml ./
RUN pnpm i

### Rebuild source only when needed ###
FROM base AS builder

RUN corepack enable
RUN corepack prepare pnpm@latest --activate

WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

RUN git submodule init
RUN git submodule update --remote
RUN pnpm build

### Production image ###
FROM base AS runner

# Set correct permissions
RUN addgroup nodejs
RUN adduser -SDH nextjs
RUN mkdir .next
RUN chown nextjs:nodejs .next

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/public ./public

USER nextjs

EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"

CMD ["node", "server.js"]

35 changes: 35 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pipeline {
agent {
docker {
image 'node:20-slim'
args '-u root:root'
}
}

stages {
stage('Setup pnpm') {
steps {
sh 'corepack enable'
sh 'corepack prepare --activate pnpm@8'
}
}

stage('Install dependencies') {
steps {
sh 'pnpm i'
}
}

stage('Check spelling') {
steps {
sh 'pnpm spellcheck'
}
}

stage('Build') {
steps {
sh 'pnpm build'
}
}
}
}
Loading