Skip to content

Commit

Permalink
test workspace
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Apr 17, 2023
1 parent c549c13 commit 77e87a4
Show file tree
Hide file tree
Showing 81 changed files with 264 additions and 82 deletions.
22 changes: 22 additions & 0 deletions __scripts/name.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import path from "node:path";

import PackageJson from "@npmcli/package-json";
import fse from "fs-extra";

const entries = await fse.readdir(process.cwd(), { withFileTypes: true });
const examples = entries
.filter((entry) => entry.isDirectory())
.map((entry) => entry.name)
.filter((entry) =>
fse.existsSync(path.join(process.cwd(), entry, "package.json"))
);

for (const example of examples) {
const pkgJson = await PackageJson.load(example);
pkgJson.update({
name: path.basename(path.join(process.cwd(), example)),
version: "0.0.0",
...pkgJson.content,
});
await pkgJson.save();
}
4 changes: 3 additions & 1 deletion __template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "__template",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion _official-blog-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,7 @@
},
"prisma": {
"seed": "ts-node --require tsconfig-paths/register prisma/seed.ts"
}
},
"name": "_official-blog-tutorial",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion _official-jokes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@
},
"prisma": {
"seed": "node --require esbuild-register prisma/seed.ts"
}
},
"name": "_official-jokes",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion _official-realtime-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "_official-realtime-app",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion _official-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "_official-tutorial",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "basic",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion bullmq-task-queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "bullmq-task-queue",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion catch-boundary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "catch-boundary",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion chakra-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "chakra-ui",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion client-only-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "client-only-components",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion client-side-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "client-side-validation",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion collected-notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "collected-notes",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion combobox-resource-route/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "combobox-resource-route",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion dark-mode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "dark-mode",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion dataloader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "dataloader",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion emotion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "emotion",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion file-and-cloudinary-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "file-and-cloudinary-upload",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion file-and-s3-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "file-and-s3-upload",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@
},
"engines": {
"node": ">=16"
}
},
"name": "firebase",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion form-to-notion-db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "form-to-notion-db",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion framer-motion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "framer-motion",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion framer-route-animation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "framer-route-animation",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion gdpr-cookie-consent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "gdpr-cookie-consent",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion google-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "google-analytics",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion graphql-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "graphql-api",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion image-resize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
},
"engines": {
"node": ">=16"
}
},
"name": "image-resize",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion infinite-scrolling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "infinite-scrolling",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion io-ts-formdata-decoding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "io-ts-formdata-decoding",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion ioredis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "ioredis",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion leaflet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "leaflet",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion mantine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "mantine",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion msw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
},
"engines": {
"node": ">=16"
}
},
"name": "msw",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion multiple-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "multiple-forms",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion multiple-params/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "multiple-params",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion newsletter-signup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "newsletter-signup",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion nprogress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "nprogress",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion on-demand-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "on-demand-hydration",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion outlet-form-rerender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "outlet-form-rerender",
"version": "0.0.0"
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "remix-examples",
"private": true,
"license": "MIT",
"workspaces": [
"/!(yarn-pnp)"
],
"scripts": {
"format": "prettier --write . && yarn lint:fix",
"lint": "eslint .",
Expand Down
4 changes: 3 additions & 1 deletion pathless-routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "pathless-routes",
"version": "0.0.0"
}
4 changes: 3 additions & 1 deletion picocss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
},
"engines": {
"node": ">=14"
}
},
"name": "picocss",
"version": "0.0.0"
}
Loading

0 comments on commit 77e87a4

Please sign in to comment.