aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-08-25 17:56:06 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-08-25 17:56:06 -0700
commit454160646923e98f00e53df025e324d3d2c585d0 (patch)
tree731c5243ac48077ffa1f974dcf46f3bc176792b6 /examples
parent039bf6ecdb0be85ca78045b647de01bd176823c6 (diff)
downloadbun-454160646923e98f00e53df025e324d3d2c585d0.tar.gz
bun-454160646923e98f00e53df025e324d3d2c585d0.tar.zst
bun-454160646923e98f00e53df025e324d3d2c585d0.zip
latest
Former-commit-id: f5600d123d3710e7ea80ff2b7c66d13382462420
Diffstat (limited to 'examples')
-rw-r--r--examples/css-stress-test/pages/_app.tsx2
-rw-r--r--examples/hello-next/babel.js.REMOVED.git-id1
-rw-r--r--examples/hello-next/bun-framework-next/package.json3
-rw-r--r--examples/hello-next/bun-mimalloc.REMOVED.git-id1
-rw-r--r--examples/hello-next/components/subtitle.tsx1
-rw-r--r--examples/hello-next/next.config.js9
-rw-r--r--examples/hello-next/package.json6
-rw-r--r--examples/hello-next/pages/index.tsx5
-rw-r--r--examples/hello-next/styles/2.css3
-rw-r--r--examples/hello-next/styles/Home.module.css2
-rw-r--r--examples/hello-next/tsconfig.json2
-rw-r--r--examples/lotta-modules/index.js9
-rw-r--r--examples/lotta-modules/package.json1
13 files changed, 34 insertions, 11 deletions
diff --git a/examples/css-stress-test/pages/_app.tsx b/examples/css-stress-test/pages/_app.tsx
index 43d6a776a..47b7ffa56 100644
--- a/examples/css-stress-test/pages/_app.tsx
+++ b/examples/css-stress-test/pages/_app.tsx
@@ -1,4 +1,4 @@
-import "../src/index.css";
+// import "../src/index.css";
import App from "next/app";
diff --git a/examples/hello-next/babel.js.REMOVED.git-id b/examples/hello-next/babel.js.REMOVED.git-id
new file mode 100644
index 000000000..c6e41fc71
--- /dev/null
+++ b/examples/hello-next/babel.js.REMOVED.git-id
@@ -0,0 +1 @@
+e2e5ce1979cde7a27f105fc408e375bbc6a9d78d \ No newline at end of file
diff --git a/examples/hello-next/bun-framework-next/package.json b/examples/hello-next/bun-framework-next/package.json
index 9f12a57a3..fbe7a1d60 100644
--- a/examples/hello-next/bun-framework-next/package.json
+++ b/examples/hello-next/bun-framework-next/package.json
@@ -1,8 +1,7 @@
{
"name": "bun-framework-next",
- "version": "0.0.0-8",
+ "version": "0.0.0-9",
"description": "",
- "main": "package.json",
"framework": {
"static": "public",
"assetPrefix": "_next/",
diff --git a/examples/hello-next/bun-mimalloc.REMOVED.git-id b/examples/hello-next/bun-mimalloc.REMOVED.git-id
new file mode 100644
index 000000000..d81da2b9a
--- /dev/null
+++ b/examples/hello-next/bun-mimalloc.REMOVED.git-id
@@ -0,0 +1 @@
+1cfda0305a0e23d0aaf4459029f0b97424d0f22d \ No newline at end of file
diff --git a/examples/hello-next/components/subtitle.tsx b/examples/hello-next/components/subtitle.tsx
index 347d97a4d..1fda3db60 100644
--- a/examples/hello-next/components/subtitle.tsx
+++ b/examples/hello-next/components/subtitle.tsx
@@ -1,3 +1,4 @@
+
export default function Hey() {
return <div>!!yep</div>;
}
diff --git a/examples/hello-next/next.config.js b/examples/hello-next/next.config.js
index 0d6071006..c161436ab 100644
--- a/examples/hello-next/next.config.js
+++ b/examples/hello-next/next.config.js
@@ -1,3 +1,10 @@
module.exports = {
reactStrictMode: true,
-}
+ typescript: {
+ // !! WARN !!
+ // Dangerously allow production builds to successfully complete even if
+ // your project has type errors.
+ // !! WARN !!
+ ignoreBuildErrors: true,
+ },
+};
diff --git a/examples/hello-next/package.json b/examples/hello-next/package.json
index fd803c98a..77ce7b80e 100644
--- a/examples/hello-next/package.json
+++ b/examples/hello-next/package.json
@@ -5,9 +5,15 @@
"license": "MIT",
"dependencies": {
"next": "^11.1.0",
+ "parcel": "2.0.0-rc.0",
"path": "^0.12.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"whatwg-url": "^9.1.0"
+ },
+ "devDependencies": {
+ "@babel/standalone": "^7.15.3",
+ "@types/react": "^17.0.19",
+ "typescript": "^4.3.5"
}
}
diff --git a/examples/hello-next/pages/index.tsx b/examples/hello-next/pages/index.tsx
index b87c67a84..dab661672 100644
--- a/examples/hello-next/pages/index.tsx
+++ b/examples/hello-next/pages/index.tsx
@@ -3,11 +3,12 @@ import Image from "next/image";
import styles from "../styles/Home.module.css";
import Link from "next/link";
import { useRouter } from "next/router";
-
import Title from "../components/Title";
+import React from "react";
export default function Home() {
const router = useRouter();
+
return (
<div className={styles.container}>
<Head>
@@ -20,7 +21,7 @@ export default function Home() {
<main className={styles.main}>
<h1 className={styles.title}>
- Welcome to <a href="https://nextjs.org">Next.js!</a>
+ asdasdasd to <a href="https://nextjs.org">Next.js!</a>
</h1>
<p className={styles.description}>
diff --git a/examples/hello-next/styles/2.css b/examples/hello-next/styles/2.css
new file mode 100644
index 000000000..1e30d2166
--- /dev/null
+++ b/examples/hello-next/styles/2.css
@@ -0,0 +1,3 @@
+* {
+ background-color: red;
+}
diff --git a/examples/hello-next/styles/Home.module.css b/examples/hello-next/styles/Home.module.css
index 35454bb74..167d5f75b 100644
--- a/examples/hello-next/styles/Home.module.css
+++ b/examples/hello-next/styles/Home.module.css
@@ -1,3 +1,4 @@
+@import url("./2.css");
.container {
min-height: 100vh;
padding: 0 0.5rem;
@@ -7,7 +8,6 @@
align-items: center;
height: 100vh;
}
-
.main {
padding: 5rem 0;
flex: 1;
diff --git a/examples/hello-next/tsconfig.json b/examples/hello-next/tsconfig.json
index 679268d71..b423bb201 100644
--- a/examples/hello-next/tsconfig.json
+++ b/examples/hello-next/tsconfig.json
@@ -18,6 +18,6 @@
"path": ["node_modules/path-browserify"]
}
},
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "pages/index.tsx"],
"exclude": ["node_modules"]
}
diff --git a/examples/lotta-modules/index.js b/examples/lotta-modules/index.js
index 12c99a7a7..4968cac4b 100644
--- a/examples/lotta-modules/index.js
+++ b/examples/lotta-modules/index.js
@@ -1,7 +1,7 @@
import "lodash/_DataView.js";
import "lodash/_Hash.js";
import "lodash/_LazyWrapper.js";
-import "lodash/_ListCache.js";
+import "lodash/_ListCache";
import "lodash/_LodashWrapper.js";
import "lodash/_Map.js";
import "lodash/_MapCache.js";
@@ -631,8 +631,11 @@ import "lodash/xorWith.js";
import "lodash/zip.js";
import "lodash/zipObject.js";
import "lodash/zipObjectDeep.js";
-import "lodash/zipWith.js";
+import "lodash/_setToString";
import "lodash";
+import "lodash/lodash";
import "underscore";
-import "three.js";
+import "three";
+
+// import "@babel/standalone/babel.js";
diff --git a/examples/lotta-modules/package.json b/examples/lotta-modules/package.json
index 6168008db..6688548da 100644
--- a/examples/lotta-modules/package.json
+++ b/examples/lotta-modules/package.json
@@ -4,6 +4,7 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
+ "@babel/standalone": "^7.15.3",
"lodash": "^4.17.21",
"three.js": "^0.77.1",
"underscore": "^1.13.1"