Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nextjs sample #3627

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"node/no-unsupported-features/es-syntax": ["off"]
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
}
}
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"generate-ci": "node .github/workflows/utils/generate.js"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"c8": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"c8": "^9.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0-alpha.1",
"gts": "^5.0.1",
"mocha": "^10.2.0",
"eslint-plugin-prettier": "^5.1.3",
"gts": "^5.2.0",
"mocha": "^10.3.0",
"nunjucks": "^3.2.4",
"prettier": "^3.0.3",
"typescript": "^5.0.4"
"prettier": "^3.2.5",
"typescript": "^5.3.3"
},
"dependencies": {
"commander": "^11.0.0",
"eslint": "^8.53.0"
"commander": "^12.0.0",
"eslint": "^8.56.0"
}
}
21 changes: 21 additions & 0 deletions run/nextjs-helloworld/app/layout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.;

export default function RootLayout({children}) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
17 changes: 17 additions & 0 deletions run/nextjs-helloworld/app/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

export default function Page() {
return <h1>Hello, Next.js!</h1>;
}
20 changes: 20 additions & 0 deletions run/nextjs-helloworld/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "helloworld",
"description": "Hello world sample in Next.js",
"version": "1.0.0",
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"start": "next start"
},
"engines": {
"node": ">=20.0.0"
},
"author": "Google LLC",
"license": "Apache-2.0",
"dependencies": {
"next": "14.1.0",
"react": "18.2.0",
"react-dom": "18.2.0"
}
}
Loading