Skip to content

Commit

Permalink
Fix concurrently in idx
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed Sep 11, 2024
1 parent 4a388c1 commit be3151a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
8 changes: 4 additions & 4 deletions nextjs-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "concurrently -r -k -P \"npm:dev:next -- {@}\" npm:dev:sw --",
"dev": "npx -y concurrently -r -k -P \"npm:dev:next -- {@}\" npm:dev:sw --",
"dev:next": "next dev",
"dev:sw": "npm run build:sw -- --watch",
"build": "next build",
"build:sw": "esbuild auth-service-worker.js --bundle --minify --main-fields=webworker,browser,module,main --outfile=public/auth-service-worker.js",
"build:sw": "npx -y esbuild auth-service-worker.js --bundle --minify --main-fields=webworker,browser,module,main --outfile=public/auth-service-worker.js",
"prebuild": "npm run build:sw",
"start": "next start",
"lint": "concurrently -r \"npm:lint:next\" \"npm:lint:prettier\"",
"lint": "npx -y concurrently -r \"npm:lint:next\" \"npm:lint:prettier\"",
"lint:next": "next lint",
"lint:prettier": "prettier --check --ignore-path .gitignore .",
"lint:fix": "concurrently -r \"npm:lint:next -- --fix\" \"npm:lint:prettier -- --write\""
"lint:fix": "npx -y concurrently -r \"npm:lint:next -- --fix\" \"npm:lint:prettier -- --write\""
},
"dependencies": {
"@google/generative-ai": "^0.10.0",
Expand Down
11 changes: 11 additions & 0 deletions nextjs-start/idx-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "FriendlyEats NextJS (finished)",
"description": "Something something codelab",
"categories": ["Web", "Firebase", "Google Codelabs"],
"icon": "https://www.gstatic.com/monospace/231115/logo_react-native.svg",
"publisher": "Google LLC",
"host": {
"virtualization": true
},
"params": []
}
11 changes: 11 additions & 0 deletions nextjs-start/idx-template.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ pkgs, packageManager ? "npm", ... }: {
packages = [
pkgs.nodejs_20
pkgs.j2cli
pkgs.nixfmt
];
bootstrap = ''
npx -y giget gh:firebase/friendlyeats-web/nextjs-start#jamesdaniels_fixServiceWorkers "$WS_NAME"
mv "$WS_NAME" "$out"
'';
}
8 changes: 4 additions & 4 deletions nextjs-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "concurrently -r -k -P \"npm:dev:next -- {@}\" npm:dev:sw --",
"dev": "npx -y concurrently -r -k -P \"npm:dev:next -- {@}\" npm:dev:sw --",
"dev:next": "next dev",
"dev:sw": "npm run build:sw -- --watch",
"build": "next build",
"build:sw": "esbuild auth-service-worker.js --bundle --minify --main-fields=webworker,browser,module,main --outfile=public/auth-service-worker.js",
"build:sw": "npx -y esbuild auth-service-worker.js --bundle --minify --main-fields=webworker,browser,module,main --outfile=public/auth-service-worker.js",
"prebuild": "npm run build:sw",
"start": "next start",
"lint": "concurrently -r \"npm:lint:next\" \"npm:lint:prettier\"",
"lint": "npx -y concurrently -r \"npm:lint:next\" \"npm:lint:prettier\"",
"lint:next": "next lint",
"lint:prettier": "prettier --check --ignore-path .gitignore .",
"lint:fix": "concurrently -r \"npm:lint:next -- --fix\" \"npm:lint:prettier -- --write\""
"lint:fix": "npx -y concurrently -r \"npm:lint:next -- --fix\" \"npm:lint:prettier -- --write\""
},
"dependencies": {
"@google/generative-ai": "^0.10.0",
Expand Down

0 comments on commit be3151a

Please sign in to comment.