GitHub

Original file line numberDiff line numberDiff line change

@@ -17,4 +17,7 @@ nextjs-file-routing/my-app/_posts/*.md

1717

astro-with-mdx/my-astro-site/dist

1818

astro-with-mdx/my-astro-site/src/pages/posts/*.md

1919
20+

mastro/dist

21+

mastro/posts/*.md

22+
2023

# Prereleases

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,23 @@

1+

cd mastro

2+
3+

mkdir -p ./posts/

4+
5+

rm -rf dist

6+

rm -rf ./posts/*.md

7+

echo "[bench] Clean complete"

8+
9+

if [ -z "$1" ]

10+

then count="1000"

11+

else

12+

count="$1"

13+

fi

14+

cp ../_markdown-samples/$count/* ./posts/

15+

echo "[bench] Setup complete $count pages"

16+
17+

time deno task generate

18+

echo "[bench] Build complete $count pages"

19+
20+

# echo "[bench] Framework version"

21+
22+

rm -rf ./posts/*.md

23+

echo "[bench] Posts cleanup complete"

Original file line numberDiff line numberDiff line change

@@ -25,3 +25,9 @@ cd ../../nextjs-file-routing/my-app

2525

rm -rf node_modules && rm -rf package-lock.json

2626

npm cache clean --force # For benchmarking cold npm install

2727

time npm install

28+
29+

echo "[bench] Install mastro"

30+

cd ../../mastro

31+

rm -rf deno.lock

32+

deno clean # For benchmarking cold deno install

33+

time deno install

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,9 @@

1+

{

2+

"tasks": {

3+

"start": "deno serve --watch=. --allow-read --allow-env jsr:@mastrojs/mastro@0.1.2/server",

4+

"generate": "deno eval \"import 'mastro/generate';\""

5+

},

6+

"imports": {

7+

"mastro": "jsr:@mastrojs/mastro@0.1.2"

8+

}

9+

}

Read the original on github.com ↗