Skip to content

Commit

Permalink
Bump deps in @gel/create base and Next.js recipes (#1190)
Browse files Browse the repository at this point in the history
Working through our new work-in-progress quickstart tutorial, so will be
fixing things and bumping dependencies to match the latest versions for
our tooling.
  • Loading branch information
scotttrinh authored Feb 20, 2025
1 parent 9227d96 commit 400d8e6
Show file tree
Hide file tree
Showing 11 changed files with 238 additions and 236 deletions.
2 changes: 1 addition & 1 deletion packages/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"/dist"
],
"bin": "dist/cli.js",
"peerDependencies": {},
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/node": "^20.12.13",
Expand All @@ -31,6 +30,7 @@
"debug": "^4.3.4",
"picocolors": "^1.0.1",
"read-pkg": "^9.0.1",
"shell-quote": "^1.8.2",
"write-package": "^7.0.1"
},
"scripts": {
Expand Down
24 changes: 0 additions & 24 deletions packages/create/src/recipes/_base/template/eslint.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions packages/create/src/recipes/_base/template/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);
18 changes: 9 additions & 9 deletions packages/create/src/recipes/_base/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"gel": "1.x"
"gel": "^2.0.0"
},
"devDependencies": {
"@gel/generate": "0.x",
"@typescript-eslint/eslint-plugin": "6.x",
"@typescript-eslint/parser": "6.x",
"@eslint/eslintrc": "2.x",
"eslint": "8.x",
"eslint-config-prettier": "9.x",
"prettier": "3.x",
"typescript": "5.x"
"@gel/generate": "^0.6.0",
"@eslint/js": "^9.19.0",
"@types/node": "^22.12.0",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.0",
"prettier": "^3.4.0",
"typescript": "^5.7.0",
"typescript-eslint": "^8.22.0"
}
}
14 changes: 9 additions & 5 deletions packages/create/src/recipes/nextjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ const recipe: Recipe<NextjsOptions> = {
},
dependencies: {
...(useGelAuth ? { "@gel/auth-nextjs": "^0.1.0" } : {}),
gel: "^1.4.1",
react: "^18",
"react-dom": "^18",
next: "14.0.4",
gel: "^2.0.0",
react: "^19.0.0",
"react-dom": "^19.0.0",
next: "^15.1.0",
},
devDependencies: {
...(useTS
Expand All @@ -113,7 +113,11 @@ const recipe: Recipe<NextjsOptions> = {
}
: {}),
...(useTailwind
? { autoprefixer: "^10.0.1", postcss: "^8", tailwindcss: "^3.3.0" }
? {
postcss: "^8.5.0",
tailwindcss: "^4.0.0",
"@tailwindcss/postcss": "^4.0.0",
}
: {}),
},
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
"@tailwindcss/postcss": {},
},
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
"@tailwindcss/postcss": {},
},
};
5 changes: 3 additions & 2 deletions packages/create/src/recipes/nextjs/template/ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
".next/types/**/*.ts",
"eslint.config.mjs"
],
"exclude": [
"node_modules"
]
}
}
3 changes: 2 additions & 1 deletion packages/create/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import fs from "node:fs/promises";
import { type Dirent } from "node:fs";
import path from "node:path";
import { spawn, type SpawnOptionsWithoutStdio } from "node:child_process";
import { quote } from "shell-quote";

type PkgManager = "npm" | "yarn" | "pnpm" | "bun";

Expand Down Expand Up @@ -177,7 +178,7 @@ export class PackageManager {
args: string[] = [],
options?: SpawnOptionsWithoutStdio,
): Promise<{ stdout: string; stderr: string }> {
const command = `${this.runner} ${binName} ${args.join(" ")}`;
const command = quote([this.runner, binName, ...args]);
return execInLoginShell(command, options);
}
}
Loading

0 comments on commit 400d8e6

Please sign in to comment.