aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-11-02 23:43:20 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-11-02 23:43:20 -0700
commita5181c8ed14cfe779299e9086fbac3c729d21a98 (patch)
tree8cd67d6275e97e7c2ed3e642da60f364dc0c6ee9
parentaa545ac0dc5260c001858126c302f738db7f6664 (diff)
downloadbun-a5181c8ed14cfe779299e9086fbac3c729d21a98.tar.gz
bun-a5181c8ed14cfe779299e9086fbac3c729d21a98.tar.zst
bun-a5181c8ed14cfe779299e9086fbac3c729d21a98.zip
[examples] Display Next.js version in example
-rw-r--r--examples/next/package.json8
-rw-r--r--examples/next/pages/index.tsx5
-rw-r--r--examples/react/package.json2
-rw-r--r--package.json6
4 files changed, 12 insertions, 9 deletions
diff --git a/examples/next/package.json b/examples/next/package.json
index 654fff104..c4513988c 100644
--- a/examples/next/package.json
+++ b/examples/next/package.json
@@ -1,11 +1,11 @@
{
"name": "@bun-examples/next",
- "version": "0.0.39",
+ "version": "0.0.42",
"main": "index.js",
"dependencies": {
- "next": "11.1.2",
- "react": "^17.0.2",
- "react-dom": "^17.0.2",
+ "next": "12.0.2",
+ "react": "alpha",
+ "react-dom": "alpha",
"react-is": "^17.0.2"
},
"devDependencies": {
diff --git a/examples/next/pages/index.tsx b/examples/next/pages/index.tsx
index 237ec2604..3d58a2707 100644
--- a/examples/next/pages/index.tsx
+++ b/examples/next/pages/index.tsx
@@ -2,7 +2,7 @@ import Head from "next/head";
import Link from "next/link";
import React from "react";
import styles from "../styles/Home.module.css";
-
+import nextPackage from "next/package.json";
export async function getStaticProps(ctx) {
return {
props: {},
@@ -20,7 +20,8 @@ export default function Home({}) {
<main className={styles.main}>
<h1 className={styles.title}>
- Welcome to <a href="https://nextjs.org">Next.js!</a>
+ Welcome to <a href="https://nextjs.org">Next.js!</a> v
+ {nextPackage.version}
</h1>
<p className={styles.description}>
diff --git a/examples/react/package.json b/examples/react/package.json
index c23ce9536..d5e516e16 100644
--- a/examples/react/package.json
+++ b/examples/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@bun-examples/react",
- "version": "0.0.34",
+ "version": "0.0.37",
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
diff --git a/package.json b/package.json
index bab443f2b..563000fa7 100644
--- a/package.json
+++ b/package.json
@@ -1,11 +1,13 @@
{
"dependencies": {
+ "cli-highlight": "^2.1.11",
+ "highlight.js": "^11.3.1",
"moment": "^2.29.1",
"peechy": "0.4.20",
+ "prettier": "latest",
"puppeteer": "^10.2.0",
"react": "^17.0.2",
- "react-dom": "^17.0.2",
- "prettier": "latest"
+ "react-dom": "^17.0.2"
},
"scripts": {
"build-runtime": "esbuild --target=esnext --bundle src/runtime/index.ts --format=iife --platform=browser --global-name=BUN_RUNTIME > src/runtime.out.js; cat src/runtime.footer.js >> src/runtime.out.js",