Skip to content

Commit 1ec4ef7

Browse files
committed
Update to latest tooling + nextra + dependencies
1 parent 0a1e5ae commit 1ec4ef7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+440
-10986
lines changed

.eslintrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,19 @@ jobs:
2424
with:
2525
fetch-depth: 0
2626

27-
- name: Setup Node
28-
uses: actions/setup-node@v3
29-
with:
30-
node-version: "16"
27+
- name: Set up Bun
28+
uses: oven-sh/setup-bun@v2
3129

32-
- name: Setup Pages
30+
- name: Set up GitHub Pages
3331
uses: actions/configure-pages@v3
3432
with:
3533
static_site_generator: next
3634

3735
- name: Install dependencies
38-
run: npm install
36+
run: bun install
3937

4038
- name: Build
41-
run: npm run build
39+
run: bun run build
4240

4341
- name: Upload artifact
4442
uses: actions/upload-pages-artifact@v2

.justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Installs development tooling for documentation
22
install-dev-tools:
3-
aftman install
4-
npm install
3+
rokit install
4+
bun install
55
cargo binstall moonwave
66

77
# Extract documentation from the main repository using moonwave
@@ -16,8 +16,8 @@ generate-documentation:
1616

1717
# Builds and generates a static site directory
1818
build:
19-
npm run build
19+
bun run build
2020

2121
# Starts a local development server for the docs site
2222
dev:
23-
npm run dev
23+
bun run dev

.luaurc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"aliases": {
3+
"lune": "~/.lune/.typedefs/0.10.0/"
4+
}
5+
}

.lune/download.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if commit ~= nil and #commit > 0 then
1212
name = commit
1313
else
1414
print("Looking for the latest tag")
15-
local tagsResult = process.spawn("git", {
15+
local tagsResult = process.exec("git", {
1616
"ls-remote",
1717
"--tags",
1818
"--sort=-v:refname",
@@ -45,7 +45,7 @@ assert(downloaded.ok, downloaded.statusMessage)
4545

4646
fs.writeFile("temp/download.zip", downloaded.body)
4747

48-
local unzipResult = process.spawn("unzip", {
48+
local unzipResult = process.exec("unzip", {
4949
"temp/download.zip",
5050
"-d",
5151
"temp/download",

.lune/extract.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
end
1919

2020
-- Run moonwave to parse typedef files and extract documentation, write to file
21-
local moonwaveResult = process.spawn("moonwave-extractor", { "extract", sourceDir })
21+
local moonwaveResult = process.exec("moonwave-extractor", { "extract", sourceDir })
2222
assert(moonwaveResult.ok and #moonwaveResult.stderr <= 0, moonwaveResult.stderr)
2323
fs.writeFile("temp/moonwave.json", moonwaveResult.stdout)
2424

.lune/generate.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fs.writeFile(`pages/api-reference/_meta.json`, meta)
6767

6868
-- Finally, call out to prettier to ensure that our
6969
-- generated markdown files are formatted properly
70-
process.spawn("prettier", {
70+
process.exec("prettier", {
7171
"--write",
7272
"pages/api-reference/",
7373
})

.prettierrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

aftman.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)