Skip to content

Commit

Permalink
build: Upstream to Next.js 15.0.0
Browse files Browse the repository at this point in the history
- Rebase package from ground up.
- Dropped eslint-airbnb config.
  • Loading branch information
Bhanu1776 committed Oct 26, 2024
1 parent 9de8cca commit 15d6dcb
Show file tree
Hide file tree
Showing 23 changed files with 10,931 additions and 3,088 deletions.
66 changes: 0 additions & 66 deletions .cz-config.js

This file was deleted.

3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": [
"next/core-web-vitals",
"airbnb",
"airbnb-typescript",
"next/typescript",
"plugin:prettier/recommended"
],
"parserOptions": {
Expand Down
19 changes: 8 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage
Expand All @@ -24,20 +29,12 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
# env files (can opt-in for commiting if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# PWA Files
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/sw.js.map
**/public/workbox-*js.map
**/public/worker-*.js.map
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@bhanu1776:registry=https://npm.pkg.github.com
@bhanu1776:registry=https://npm.pkg.github.com
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"tabWidth": 2,
"semi": true,
"useTabs": false,
"singleQuote": true,
"printWidth": 80,
"jsxSingleQuote": false,
"plugins": ["prettier-plugin-tailwindcss"]
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
//* For eslint-airbnb
//* For eslint
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

> October 26, 2024_
- Version 3.0.0
- Ships with latest Nextjs 15
- Build from ground up
- Removed airbnb eslint config

> October 3, 2024_
- Version 2.2.14
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Next.js 14 Starter Template
# Next.js 15 Starter Template

<p align='center'>
<a href="https://starter-website-sigma.vercel.app/">Live Demo</a>
</p>

## Features ✨

- ⚡️ [Next 14](https://nextjs.org/docs) - with app router
- ⚡️ [Next 15](https://nextjs.org/docs) - with app router
- 🦾 [TypeScript](https://www.typescriptlang.org/), of course
- 🎨 [Tailwindcss](https://tailwindcss.com/) - next generation utility-first CSS
- 💡 [Eslint](https://eslint.org/) - with Airbnb config
Expand All @@ -31,7 +31,7 @@

### GitHub Template <img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" height=20 width=20 />

[Create a repo from this template on GitHub](https://github.com/Bhanu1776/Nextjs14-Starter-Template/generate).
[Create a repo from this template on GitHub](https://github.com/Bhanu1776/Nextjs15-Starter-Template/generate).

## Checklist ✅

Expand Down Expand Up @@ -69,6 +69,6 @@ Therefore, I created this template for myself to make creating apps easier, alon
<hr>

© 2023 Bhanu Sunka
This project is licensed under the [**MIT license**](https://github.com/Bhanu1776/Nextjs14-Starter-Template/blob/master/LICENSE).
This project is licensed under the [**MIT license**](https://github.com/Bhanu1776/Nextjs15-Starter-Template/blob/master/LICENSE).

[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
16 changes: 7 additions & 9 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env node

const { execSync } = require('child_process');
const { execSync } = require("child_process");

const runCommand = (command) => {
try {
execSync(`${command}`, { stdio: 'inherit' });
execSync(`${command}`, { stdio: "inherit" });
} catch (err) {
console.error(err);
return false;
Expand All @@ -13,24 +13,22 @@ const runCommand = (command) => {
};

const repoName = process.argv[2];
const gitCheckoutCommand = `git clone https://github.com/Bhanu1776/Nextjs14-Starter-Template.git ${repoName}`;
const gitCheckoutCommand = `git clone https://github.com/Bhanu1776/Nextjs15-Starter-Template.git ${repoName}`;
const installDepsCommand = `cd ${repoName} && rm -rf bin .github && rm .npmrc CHANGELOG.md && npm install `;

console.log(`Init project '${repoName}' ✨`);
const checkedOut = runCommand(gitCheckoutCommand);
if (!checkedOut) process.exit(-1);

console.log('Installing dependencies...🔥');
console.log("Installing dependencies...🔥");
const installDeps = runCommand(installDepsCommand);
if (!installDeps) process.exit(-1);

console.log(
'SaxX! You are ready. Follow the following commands to start 🚀'
);
console.log('');
console.log("SaxX! You are ready. Follow the following commands to start 🚀");
console.log("");
console.log(`Make sure you follow below steps to start fresh:`);
console.log(`- Rename 'name' and 'author' fields in package.json`);
console.log(`- Change the author name in "LICENSE"`);
console.log(`- Change the title and description in "layout.tsx"`);
console.log(`- Modify the 'manifest' in public folder`);
console.log(`- Clean up the "README.md"`);
console.log(`- Clean up the "README.md"`);
12 changes: 7 additions & 5 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
/** @type {import('next').NextConfig} */
/* eslint-disable */
import type { NextConfig } from "next";

const runtimeCaching = require("next-pwa/cache");
const withPWA = require("next-pwa")({
dest: "public",
register: true,
skipWaiting: true,
runtimeCaching,
disable: process.env.NODE_ENV === 'development',
disable: process.env.NODE_ENV === "development",
});

const nextConfig = withPWA({
const nextConfig: NextConfig = withPWA({
eslint: {
dirs: ['app'],
dirs: ["src"],
ignoreDuringBuilds: true,
},
});
module.exports = nextConfig;

export default nextConfig;
Loading

0 comments on commit 15d6dcb

Please sign in to comment.